Skip to content

Instantly share code, notes, and snippets.

View questionlp's full-sized avatar
🐍
Wait Wait Statsing

Linh Pham questionlp

🐍
Wait Wait Statsing
View GitHub Profile
@questionlp
questionlp / Simple RFC 2324 Implementation in NGINX.md
Last active January 30, 2025 07:06
Simple RFC 2324 Implementation in NGINX

Simple RFC 2324 Implementation in NGINX

server {
  # Usual site configuration stuff here
  
  location / {
    # Add any other configuration for the main location here
    
 if ($request_method = BREW) {
@questionlp
questionlp / Updating pacman and archinstall while booting off of live ISO.md
Created January 28, 2025 15:26
Updating pacman and archinstall while booting off of live ISO

Updating pacman and archinstall while booting off of live ISO

 pacman -Sy
 pacman -S archlinux-keyring
 pacman -S archinstall 
@questionlp
questionlp / Installing FreeBSD on a Steam Deck.md
Last active January 20, 2025 20:05
Installing FreeBSD on a Steam Deck

Installing FreeBSD 14.2 on a Steam Deck

Update: A full write-up has been posted on my blog at: https://blog.linh.social/2025/01/11/installing-running-freebsd-on-steam-deck/. The post also includes some corrections and new learnings since creating this gist.

Installing onto the internal NVMe SSD

  1. Download and burn a FreeBSD 14.2 amd64 installer ISO from FreeBSD.org
  2. Burn the installer ISO on to a USB drive, or use a multi-boot tool like IODD or Ventoy
  3. Use a USB dock or hub (Anker PowerExpand or 543 6-in-1 USB hub is what I've been using) with USB power delivery pass-through to connect the following devices:
  4. USB-C power adapter
@questionlp
questionlp / Mastodon- TangerineUI Purple + IBM Plex.css
Created November 17, 2024 22:02
Mastodon Custom Theme: TangerineUI + IBM Plex
/* IBM Plex Mono */
@font-face {
font-family: mastodon-font-monospace;
src: local("IBM Plex Mono Italic"), url(/packs/media/fonts/ibm-plex/IBMPlexMono-Italic.woff2) format("woff2"), url(/packs/media/fonts/ibm-plex/IBMPlexMono-Italic.woff) format("woff"), url(/packs/media/fonts/ibm-plex/IBMPlexMono-Italic.ttf) format("truetype");
font-weight: 400;
font-display: swap;
font-style: italic
}
@font-face {
@questionlp
questionlp / Debian-Ubuntu- Dependencies for Building Ruby.md
Last active October 22, 2024 04:17
Debian/Ubuntu: Dependencies for Building Ruby

Installing required packages in order to build Ruby using rbenv:

apt-get install autoconf patch build-essential rustc libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libgmp-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev uuid-dev

Source:

@questionlp
questionlp / Iosevka Termina and Termina Plex - private-build-plans.toml
Last active October 18, 2024 02:10
Iosevka Termina and Termina Plex Custom Build
[buildPlans.IosevkaTermina]
family = "Iosevka Termina"
spacing = "term"
serifs = "sans"
noCvSs = true
exportGlyphNames = false
[buildPlans.IosevkaTermina.variants]
inherits = "ss14"
@questionlp
questionlp / Use Native File Chooser in Firefox.md
Last active March 19, 2025 15:36
Use Native File Chooser in Firefox
@questionlp
questionlp / export-spc-to-wav-using-vspcplay.md
Last active September 18, 2024 04:34
Export SPC to WAV Using vspcplay

Export SPC to WAV Using vspcplay

vspcplay Git Repo: https://github.com/raphnet/vspcplay

Fedora Package Requirements

sudo dnf install sdl12-compat sdl12-compat-devel SDL2 SDL-devel

Building vspcplay

@questionlp
questionlp / flatpak-override-gtk-css.md
Created September 10, 2024 03:44
Flatpak: Override GTK 3 and 4 CSS

Flatpak: Override GTK 3 and 4 CSS

GTK 3

flatpak -u override --filesystem=xdg-config/gtk-3.0

GTK 4

@questionlp
questionlp / firefox-ctrl-mousewheel-scroll-zoom.md
Created September 2, 2024 01:34
Firefox Ctrl+Mouse Wheel to Scroll or Zoom

Firefox Ctrl+Mouse Wheel to Scroll or Zoom

Set Ctrl+Mouse Wheel to Scroll

  1. Go to about:config
  2. Set mousewheel.with_control.action to 1

Set Ctrl+Mouse Wheel to Zoom

  1. Go to about:config