Skip to content

Instantly share code, notes, and snippets.

View joelpurra's full-sized avatar
🤷
¯\_(ツ)_/¯

Joel Purra joelpurra

🤷
¯\_(ツ)_/¯
View GitHub Profile
@peterjrichards
peterjrichards / usb-mode.json
Last active May 14, 2026 07:51
Realtek RTL8151/RTL8152/RTL8153 USB Ethernet adapter Mode Switch for OpenWrt on the Raspberry Pi 5
{
"messages": [
"555342431234567800000000000006d0000000000000000000000000000000",
"55534243123456780002000000000a2a000000003300000100000000000000",
"5553424312345678000000000000061b004600000000000000000000000000",
"0f00010142",
"55534243f0298d8124000000800006bc626563240000000000000000000000",
"0902200001010080fa0904000002080650000705010200020007058102000200",
"55534243785634120100000080000601000000000000000000000000000000",
"55534243123456780000000000000616000000000000000000000000000000",
@krisk0
krisk0 / busybox_gost-yescrypt.patch
Last active May 13, 2026 14:20
Patch busybox version 1.36.0 to support password hashing with gost-yescrypt
diff -urN a/include/libbb.h b/include/libbb.h
--- a/include/libbb.h 2023-01-03 17:17:01.000000000 +0300
+++ b/include/libbb.h 2024-07-17 11:28:28.000000000 +0300
@@ -1777,8 +1777,14 @@
* (otherwise we risk having same salt generated)
*/
extern int crypt_make_salt(char *p, int cnt /*, int rnd*/) FAST_FUNC;
+
+#if ENABLE_GOST_YESCRYPT
+/* $gy$j9T$ + salt(16) + NUL */
@russiantux
russiantux / gamescope_4_Ubuntu24-04.md
Last active May 16, 2026 17:57
Build & install gamescope for fresh-install Ubuntu 24.04 (Noble Numbat)

Build & install gamescope for fresh-install Ubuntu 24.04 (Noble Numbat)

Due to what appears to be dependency issues, the gamescope package isn't avalible for Ubuntu 24.04. So here's a guide on how to build and install gamescope for Ubuntu 24.04

  1. Pull latest git of gamescope

$ git clone https://github.com/ValveSoftware/gamescope.git

  1. Install needed dependencies to build gamescope

`$ sudo apt install libbenchmark1.8.3 libdisplay-info1 libevdev-dev libgav1-1 libgudev-1.0-dev libmtdev-dev libseat1 libstb0 libwacom-dev libxcb-ewmh2 libxcb-shape0-dev libxcb-xfixes0-dev libxmu-headers libyuv0 libx11-xcb-dev libxres-dev libxmu-dev libseat-dev libinput-dev libxcb-composite0-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-res0-dev libcap-dev

@isDipesh
isDipesh / pacman-keyring-fix.md
Created August 8, 2022 07:00
Pacman Fix: error: key "..." could not be imported | error: required key missing from keyring

One of the common errors after running updates on your Arch Linux system:

error: key "..." could not be imported
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

Fix:

@bjoern-r
bjoern-r / 103.conf
Last active October 3, 2025 21:08
Proxmox VE (privileged) lxc container for running kodi with GPU, keyboard and sound
arch: amd64
cores: 2
hostname: kodipriv
memory: 2048
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=56:94:2A:9A:8E:1B,ip=dhcp,ip6=auto,type=veth
ostype: ubuntu
parent: before_first_boot
rootfs: encrypted_zfs:subvol-103-disk-0,size=8G
swap: 512
lxc.cgroup2.devices.allow: c 226:* rwm
@weinbrenner
weinbrenner / FixCS.GOinUbuntu21.10.txt
Created January 4, 2022 07:18
Fix CS.GO lib problem in Ubuntu 21.10
# After upgrading Ubuntu to 21.10 CS.GO in Steam for Linux stopped working
# (@see https://github.com/ValveSoftware/csgo-osx-linux/issues/2815
# and https://github.com/ValveSoftware/csgo-osx-linux/issues/2811
# )
# Here is how I fixed it:
# 0) Exit Steam, make sure it is not running anymore
$ ps aux | grep steam
@morfikov
morfikov / a_enable_wireless.sh
Last active December 25, 2025 22:24 — forked from marcfargas/a_enable_wireless.sh
Sample files to enable wireless on Debian initramfs
#!/bin/sh
# this goes into /etc/initramfs-tools/scripts/init-premount/a_enable_wireless
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
@akihikodaki
akihikodaki / README.en.md
Last active May 13, 2026 01:30
Linux Desktop on Apple Silicon in Practice

Linux Desktop on Apple Silicon in Practice

NOTE: Time flies, and it's been almost five years(!) since I wrote this. Beaware the text below is now outdated (e.g., now Asahi Linux has graphics acceleration even better than this). The commands listed are up-to-date.

I bought M1 MacBook Air. It is the fastest computer I have, and I have been a GNOME/GNU/Linux user for long time. It is obvious conclusion that I need practical Linux desktop environment on Apple Silicon.

@izzyleung
izzyleung / README.md
Last active February 18, 2026 14:52
Update your WireGuard public key in Mullvad via its public API

Generate a new pair of keys via wg

$ wg genkey | tee privatekey | wg pubkey > publickey

Rotate your public key via the same logic as in Mullvad's source code:

  • Step 1: Obtaining an access token:
$ curl -fsSL -X POST \
    -H 'Content-Type: application/json' \
@aliicex
aliicex / readme.md
Last active January 18, 2026 23:53
Faux-implementing IPv6 Policy-Based Routing on OpenWRT

Stangri's VPN Policy Routing package is a mainstay of my OpenWRT builds. It works great for IPv4, but I couldn't, for the life of me, get it working with IPv6. Instead, I had to faux-implement PBR as follows.

My VPN provider only gave me a single IP address with a /128 prefix, so I was forced to use NAT6. This left me with a stanza in my firewall config that looks like this; note the masq6 option

config zone
	option name 'wan_vpn'
	option input 'REJECT'
	option output 'ACCEPT'
	option forward 'REJECT'