Skip to content

Instantly share code, notes, and snippets.

View jrouleau's full-sized avatar

Jon Rouleau jrouleau

  • Halifax, NS, Canada
View GitHub Profile
bwbaugh / server-name-wordlist-mnemonic.txt
Last active May 18, 2023 11:09
Server name wordlist (mnemonic)
View server-name-wordlist-mnemonic.txt
# Original blog post: <>
# Original word list: <>
# Sample usage: `curl <gist> | tail --lines +4 | shuf | head --lines 1`

Folder Structure

Please note

While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.

Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.

mattiaslundberg / arch-linux-install
Last active September 17, 2023 00:03
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
View arch-linux-install
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide ( contains a more verbose description.
# Download the archiso image from
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
branneman /
Last active September 26, 2023 22:28
Better local require() paths for Node.js

Better local require() paths for Node.js


When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions