Skip to content

Instantly share code, notes, and snippets.

View pojntfx's full-sized avatar
💭
🌅

Felicitas Pojtinger pojntfx

💭
🌅
View GitHub Profile
@pojntfx
pojntfx / build-and-run.sh
Last active August 6, 2025 19:57
Toggle active noise cancelling mode for AirPods on Linux with MagicPodsCore
#!/bin/bash
git clone https://github.com/steam3d/MagicPodsCore.git
cd MagicPodsCore
ls
mkdir -p build
cd build
cmake ..
make -j$(nproc)
./MagicPodsCore
@pojntfx
pojntfx / README.md
Last active July 15, 2025 01:24
Forward multiple Wayland applications via a single `waypipe` connection

Extra QEMU arguments to enable headless virgl/hardware accelerated rendering:

-device vhost-vsock-pci,guest-cid=3 -display egl-headless,gl=on

On client:

rm -f /tmp/socket-local; waypipe -s /tmp/socket-local client # TCP
@pojntfx
pojntfx / README.md
Created July 7, 2025 00:57
Setup Rootful Podman on GNOME OS from within Toolbox

Run on host:

sudo visudo
pojntfx ALL=(ALL) NOPASSWD: /usr/bin/podman

Run inside of Toolbox:

@pojntfx
pojntfx / main.sh
Last active July 5, 2025 17:55
Setup Tailscale on an immutable Linux system (e.g. GNOME OS or Fedora Silverblue)
#!/bin/bash
sudo podman run -d \
--name=tailscaled \
--restart=always \
-v tailscale-data:/var/lib/tailscale \
-v /dev/net/tun:/dev/net/tun \
-v /run:/run \
-v /etc/passwd:/etc/passwd:ro \
-v /etc/group:/etc/group:ro \
@pojntfx
pojntfx / main.sh
Created July 5, 2025 00:29
OCR Linux screen contents on GNOME OS (Wayland and Flatpak), then copy result to clipboard
#!/bin/bash
bash -c 'flatpak run com.github.dynobo.normcap --cli-mode | wl-copy'
@pojntfx
pojntfx / extensions.json
Created July 5, 2025 00:19
Personal VSCodium Settings and Extensions
[
{
"identifier": {
"id": "tomoki1207.pdf",
"uuid": "6db08635-0c6a-45ba-9a4b-8c3e192c63c2"
},
"version": "1.2.2",
"location": {
"$mid": 1,
"path": "/home/pojntfx/.vscode-oss/extensions/tomoki1207.pdf-1.2.2-universal",
@pojntfx
pojntfx / main.sh
Created September 18, 2024 22:04
Connect to SSH server through bastion/jump host
@pojntfx
pojntfx / main.sh
Created September 18, 2024 21:57
Disable automatic suspend for GDM and current user on Fedora
#!/bin/bash
gsettings list-recursively org.gnome.settings-daemon.plugins.power | grep sleep
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0
sudo -u gdm dbus-run-session gsettings list-recursively org.gnome.settings-daemon.plugins.power | grep sleep
sudo -u gdm dbus-run-session gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
sudo -u gdm dbus-run-session gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0
@pojntfx
pojntfx / main.sh
Last active September 4, 2024 05:37
Share Wifi/WLAN to an Ethernet/LAN network using a Linux Desktop
#!/bin/bash
# 1. Go to "Settings → Networks"
# 2. Create a new profile
# 3. Go to "Identity" and set the name to "Shared", and the MAC address to that of your ethernet device (use the dropdown)
# 4. Go to "IPv4" and set the method to "Shared with other computers"
# 5. Go to "IPv6" and set the method to "Shared with other computers"
# 6. Select "Apply" to create the profile
# 7. Enable the profile by clicking on it
# 8. Run the commands below (replace wlp0s20f3 with your WLAN interface and enp0s13f0u3u1c2 with your LAN interface)
@pojntfx
pojntfx / main.sh
Created June 24, 2024 16:43
Download latest GNOME OS `systemd-sysupdate` image
#!/bin/bash
wget https://os.gnome.org/download/latest/gnome_os_sysupdate_installer.iso