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 / 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 and Thunderbird.md
Last active August 29, 2025 22:54
Use Native File Chooser in Firefox and Thunderbird

Use Native File Chooser in Firefox

  • Browse to about:config
  • Set widget.use-xdg-desktop-portal.file-picker to 1
  • Optionally: Set widget.use-xdg-desktop-portal.location to 1
  • Optionally: Set widget.use-xdg-desktop-portal.mime-handler to 1

Use Native File Chooser in Thunderbird

  • Open Thunderbird Settings
@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
@questionlp
questionlp / firefox-pinch-zoom-settings.md
Last active August 31, 2024 00:10
Firefox Pinch Zoom Settings

Firefox Pinch Zoom Settings

Windows

Disable Pinch Zoom

  1. Go to about:config
  2. Set browser.gesture.pinch.in to a blank value
  3. Set browser.gesture.pinch.out to a blank value
  4. Set browser.gesture.pinch.in.shift to a blank value
@questionlp
questionlp / enable-wayland-for-specific-flatpaks.md
Last active June 13, 2024 05:05
Enable Wayland for Specific Flatpaks

Discord

flatpak override --user --socket=wayland com.discordapp.Discord

Slack

flatpak override --user --socket=wayland com.slack.Slack
@questionlp
questionlp / vial-keyboard-debian.md
Created June 9, 2024 05:40
Vial Keyboard + Debian
sudo apt install python3 python3-tk tk-dev build-essential zlib1g-dev libffi-dev libssl-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev libncurses-dev libusb-dev libusb-1.0-0-dev git curl
curl https://pyenv.run | bash
git clone https://github.com/vial-kb/vial-gui.git
cd vial-gui
pyenv install 3.6.15
pyenv virtualenv 3.6.15 vial
pyenv activate vial
pip install -r requirements.txt
fbs run
@questionlp
questionlp / mastodon_ibm-plex_forced-dark-code.css
Created May 27, 2024 19:44
Mastodon IBM Plex Web Font CSS (Forced Dark Mode)
/* 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 / change-wifi-cloned-mac-address-permanent-address-ssid.md
Last active May 2, 2024 17:02
Change WiFi Cloned MAC Address to Permanent Address for an SSID

Change WiFi Cloned MAC Address to Permanent Address for an SSID

The following command is required to set the MAC address for a wireless interface for a given wireless network profile (which is named after the corresponding SSID) to the permanent address.

This is in response to a change introduced in Fedora 40 as documented in the Fedora Wiki: Changes/StableSSIDMACAddress

nmcli connection modify {ssid} wifi.cloned-mac-address permanent