Skip to content

Instantly share code, notes, and snippets.

View thiagopnts's full-sized avatar
☕
phew

Thiago Pontes thiagopnts

☕
phew
View GitHub Profile
@thiagopnts
thiagopnts / omarchy-surface7.md
Created October 29, 2026 13:47
Notes on getting omarchy running on a surface laptop 7(Snapdragon X Elite)

Omarchy on Surface Laptop 7 hardware notes

The trackpad works through a locally built Arch package and an enabled systemd service. Wi-Fi now connects after repairing its board firmware and adding the missing device-tree rfkill setting.

Why the trackpad did not work

The original kernel input-device list contained the Surface keyboard but no trackpad. The running device tree lacked the trackpad node and left its SPI controller and GPI DMA controller disabled.

The installed kernel included generic SPI-HID support, but it lacked the working Romulus-specific quad-SPI transport stack used by the ELLX community kernel. iptsd, which processes the touchpad's raw reports into normal input events, was also absent.

@thiagopnts
thiagopnts / hyprrecord
Created August 24, 2025 02:07
bind = $mainMod SHIFT, R, exec, hyprrecord
#!/usr/bin/env bash
set -euo pipefail
OUTDIR="${HOME}/Videos"
PIDFILE="${XDG_RUNTIME_DIR:-/tmp}/hyprrecord.pid"
notify() {
if command -v notify-send >/dev/null 2>&1; then
notify-send -a "hyprrecord" "$@"
fi
@thiagopnts
thiagopnts / day1-1.rs
Last active December 1, 2021 20:03
Advent of Code 2021
// rustc day1-1.rs && ./day1-1 < input.txt
use std::io::{self, BufRead};
fn main() {
println!(
"{}",
io::stdin()
.lock()
.lines()
.take_while(|line| line.is_ok())
const direction = this.viewer.camera.getWorldDirection();
const theta = Math.atan2(direction.x, direction.z);
const angle = (theta * 180 / Math.PI + 90) * -1;
this.$compass.style.transform = `rotate(${angle}deg)`;
import { h, Component } from 'preact';
import {connect} from 'preact-redux';
import { bindActionCreators } from 'redux';
import * as actions from './actions';
let ProgressBuffer = ({progress = 0}) => {
let progressBufferStyle = {
position: 'relative',
width: `${progress}%`,
backgroundColor: 'gray',
let MutedVolumeIcon = () => <svg version="1.1" id="facebook" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 20.219 14.182" style="enable-background:new 0 0 20.219 14.182;" xmlSpace="preserve">
<g>
<path fill="currentColor" d="M11.885,10.627V7.186v0.006v-0.02v0.004V3.736l0,0V2.604l0,0V0.182h-1l-4,4h-3c-0.55,0-1,0.449-1,1
v4c0,0.549,0.45,1,1,1h3l4,4h1V11.76l0,0V10.627L11.885,10.627z"/>
</g>
<g>
<defs>
<rect id="SVGID_1_" x="-677.281" y="-349.079" width="1024" height="1024"/>
</defs>
General
Complete name : starwars.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 13.3 MiB
Duration : 56s 275ms
Overall bit rate : 1 980 Kbps
Movie name : 870749099641279
Encoded date : UTC 1904-01-01 00:00:00

Keybase proof

I hereby claim:

  • I am thiagopnts on github.
  • I am thiagopontes (https://keybase.io/thiagopontes) on keybase.
  • I have a public key whose fingerprint is E674 3D52 FE13 85C5 D810 148F F074 0B8B 4EF5 BF1B

To claim this, I am signing this object:

diff --git a/libavfilter/Makefile b/libavfilter/Makefile
index 65a831e..7b507b9 100644
--- a/libavfilter/Makefile
+++ b/libavfilter/Makefile
@@ -275,6 +275,7 @@ OBJS-$(CONFIG_TELECINE_FILTER) += vf_telecine.o
OBJS-$(CONFIG_THUMBNAIL_FILTER) += vf_thumbnail.o
OBJS-$(CONFIG_TILE_FILTER) += vf_tile.o
OBJS-$(CONFIG_TINTERLACE_FILTER) += vf_tinterlace.o
+OBJS-$(CONFIG_TRANSFORM_FILTER) += vf_transform.o
OBJS-$(CONFIG_TRANSPOSE_FILTER) += vf_transpose.o
#![feature(no_std, lang_items, start, core_intrinsics, asm)]
#![crate_type = "staticlib"]
#![no_std]
const GPIO_BASE: u32 = 0x20200000;
const TIMER_BASE: u32 = 0x20003000;
const LED_GPFSEL: isize = 4;
const LED_GPFBIT: isize = 21;
const LED_GPSET: isize = 8;