Skip to content

Instantly share code, notes, and snippets.

View perryh's full-sized avatar
🌮

Perry Huang perryh

🌮
View GitHub Profile
@perryh
perryh / build.yml
Last active April 3, 2026 04:59
Example GitHub Action workflow to build an Expo iOS app locally (on the runner) and upload to TestFlight.
name: Deploy iOS to TestFlight
on:
workflow_dispatch:
jobs:
build:
runs-on: macos-26
steps:
- name: Checkout Repository

Looking Glass B7 + GPU Passthrough on CachyOS (Hyprland/Wayland)

A complete guide to running a Windows 11 VM with GPU passthrough and Looking Glass on an Arch-based Linux system with a Wayland compositor. This setup allows you to run Windows-only software like Fusion 360 in a native-feeling window on your Linux desktop, with near-zero latency and no compression artifacts.

This guide was written from a real setup session, including every issue encountered and how it was resolved. If you're running into problems, there's a good chance the answer is in here.


System Specifications

@shawnyeager
shawnyeager / opencode-systemd-tailscale.md
Last active June 3, 2026 19:58
Run OpenCode as a persistent systemd service with Tailscale access

OpenCode Web Server Setup

Run OpenCode as a persistent background service, accessible from any device via Tailscale.

Why?

  • Access from anywhere — Start a task from your phone, check results from your laptop
  • Sessions persist — Close the browser, come back later, your session is still there
  • Multiple clients — Terminal TUI and browser can connect to the same session simultaneously
  • Survives crashes — systemd restarts the server automatically
@prologic
prologic / LearnGoIn5mins.md
Last active March 23, 2026 03:33
Learn Go in ~5mins
@lxe
lxe / goes16-rtlsdr.md
Last active April 6, 2026 17:29
Receive GOES-16 and GOES-17 Images with a Raspberry Pi and RTL-SDR dongle
carlosedp@ubuntu:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
@amtal
amtal / Hybrids.md
Created January 17, 2017 08:28
Walkthrough of two dupes and an item corruption exploit for Diablo 2 in layman's terms

This is a common-jargon walkthrough of an interesting Diablo 2 exploit. It provides the necessary background information (network protocol and game mechanics) to gain some understanding of the primitives from which it's constructed. Since the exploit is against a black-box network service with no available code, exact details and subtleties remain a mystery. :)

Exploit effects

Diablo 2 items can have a list of properties with various effects. The most common items (normal or "white" ones) have very few possible effects; however, all items can have sockets. Rune and gem-type items can be inserted into sockets. Some sequences of runes are special - inserting them into a white item makes a runeword item with predictable special properties.

Here's an example runeword "Peace" created by inserting Shael, Thul, and Amn runes into a 3-socket Light Plate:

Peace + Enigma hybrid

@StefanoBelli
StefanoBelli / macOS_launcher.sh
Last active July 22, 2025 02:24
Fast OS X launch on QEMU with KVM support enabled. Credits to: https://github.com/kholia, original repository: https://github.com/kholia/OSX-KVM
#!/bin/sh
# qemu-img create -f qcow2 mac_hdd.img 64G
# echo 1 > /sys/module/kvm/parameters/ignore_msrs
#
# Type the following after boot,
# -v "KernelBooter_kexts"="Yes" "CsrActiveConfig"="103"
#
# printf 'DE:AD:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256))
#
@othyn
othyn / factorio_headless_guide.md
Last active February 3, 2026 22:23
How to setup a Factorio Headless Server

[LINUX] Factorio Headless Server Guide

So, with credit to the Factorio wiki and cbednarski's helpful gist, I managed to eventually setup a Factorio headless server. Although, I thought the process could be nailed down/simplified to be a bit more 'tutorialised' and also to document how I got it all working for my future records.

The specific distro/version I'm using for this guide being Ubuntu Server 16.04.1 LTS. Although, that shouldn't matter, as long as your distro supports systemd (just for this guide, not a Factorio headless requirement, although most distros use it as standard now). The version of Factorio I shall be using is 0.14.20, although should work for any version of Factorio 0.14.12 and higher.

Just a note to newcomers: If there are any issues with the installation steps, people in the comments are doing a good job

@kepstin
kepstin / 90-thinkpad-touchpad.conf
Last active December 31, 2015 21:58
Touchpad configuration for Thinkpad T440p (and probably other thinkpads in the same series)
# Drop this file into /etc/X11/xorg.conf.d
# This configures the middle and right-click areas at the *top* of the touchpad
# only. The main and bottom areas are left-click.
# The key setting is that AreaTopEdge is set to prevent you from moving the
# mouse cursor by accident while clicking the trackpoint buttons.
# Inspired by http://who-t.blogspot.ca/2013/12/lenovo-t440-touchpad-button.html
Section "InputClass"