Skip to content

Instantly share code, notes, and snippets.

@evanesoteric
evanesoteric / artix-linux-rescue-recovery.sh
Created June 3, 2025 01:54
Artix linux rescue/recovery instructions.
## Identify drives and partitions
# lsblk # List block devices in tree format
# lsblk -f # List with filesystem information
# blkid # Display block device attributes (UUID, filesystem type, etc.)
# Unlock the encrypted LUKS partition
cryptsetup open /dev/nvme0n1p1 luksroot
# - /dev/nvme0n1p1: The encrypted partition (NVMe SSD, first partition)
# - luksroot: Name for the decrypted device mapper (/dev/mapper/luksroot)
@jonathanschilling
jonathanschilling / GrapheneOS_Pixel8Pro.md
Last active January 30, 2026 12:41
Installing GrapheneOS on a Pixel 8 Pro

Installing GrapheneOS on a Pixel 8 Pro (husky)

First try: CLI

prerequisites

  • instructions: https://grapheneos.org/install/cli
  • using Arch Linux (officially supported by CLI installer method) on a Lenovo W510
  • updated device: Settings -> System -> Software updates -> System update -> Check for update -> "Your system is up to date"

enable OEM lunlocking

@samoshkin
samoshkin / toggle_keybindings.tmux.conf
Last active January 20, 2026 00:20
tmux.conf excerpt to toggle on/off session keybindings and prefix handling
bind -T root F12 \
set prefix None \;\
set key-table off \;\
set status-style "fg=$color_status_text,bg=$color_window_off_status_bg" \;\
set window-status-current-format "#[fg=$color_window_off_status_bg,bg=$color_window_off_status_current_bg]$separator_powerline_right#[default] #I:#W# #[fg=$color_window_off_status_current_bg,bg=$color_window_off_status_bg]$separator_powerline_right#[default]" \;\
set window-status-current-style "fg=$color_dark,bold,bg=$color_window_off_status_current_bg" \;\
if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
refresh-client -S \;\
bind -T off F12 \
@max-mapper
max-mapper / bibtex.png
Last active November 19, 2025 13:01
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@and3rson
and3rson / installation.md
Created March 3, 2017 16:06
Brutal Doom
@jasonkeene
jasonkeene / python_scripting.rst
Last active November 14, 2024 11:18
Get started with writing your own python scripts to automate system tasks.

Python for System Admins / Operators

Installing Python

Most Unix/Linux systems come with python pre-installed:

$ python -V
@joergschiller
joergschiller / a2dp_sink_ubuntu_linux.md
Created January 24, 2012 23:05
A2DP Sink on Ubuntu Linux with bluez (streaming bluetooth stereo audio from smartphone to pc)

Howto Enable and Use A2DP Sink on Ubuntu Linux with Bluez

  1. Add Enable=Source to /etc/bluetooth/audio.conf right after [General].

  2. Find address in form XX:XX:XX:XX:XX:XX of phone with hcitool scan.

  3. Pair and trust smartphone with sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX and sudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes.

  4. Create loopback in pulseaudio connection bluetooth a2dp source with alsa sink: