Skip to content

Instantly share code, notes, and snippets.

@JSouthGB
JSouthGB / ssh_sudo.sh
Created March 11, 2025 20:01
Using sudo over ssh
#!/usr/bin/env bash
# This was needed due to a stale NFS mount on a server which had no BMC
# Install `sshpass`
sudo pacman -S sshpass
# Terminal command
sshpass -p 'YOUR_PASSWORD' ssh USERNAME@IP_ADDRESS 'echo YOUR_PASSWORD | sudo -S umount -f -l /path/to/mount'
@JSouthGB
JSouthGB / reflector.sh
Created March 23, 2025 17:06
reflector
reflector --country US --latest 25 --age 24 --protocol https --completion-percent 100 --sort rate --verbose --save /etc/pacman.d/mirrorlist
@JSouthGB
JSouthGB / README.rst
Created April 23, 2025 00:54
Common markup for Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as

@JSouthGB
JSouthGB / node_error.md
Created November 11, 2025 19:20
compiled against a different Node.js version

When receiving an error such as below:

Error: The module '/<project_path>/<project_name>/node_modules/.pnpm/better-sqlite3@12.0.0/node_modules/better-sqlite3/build/Release/better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 137. This version of Node.js requires
NODE_MODULE_VERSION 141. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
adobe-source-han-sans-cn-fonts
adobe-source-han-sans-jp-fonts
adobe-source-han-sans-kr-fonts
adobe-source-han-sans-otc-fonts
adobe-source-han-sans-tw-fonts
adw-gtk-theme
amd-ucode
archlinux-xdg-menu
ark
arp-scan