Skip to content

Instantly share code, notes, and snippets.

View joshbuker's full-sized avatar
✍️
Writing NixOS Documentation

Josh Buker joshbuker

✍️
Writing NixOS Documentation
View GitHub Profile
# Comments removed for brevity
# No need to declare which submodules are in use beforehand
Rails.application.config.sorcery.configure do |config|
config.not_authenticated_action = :not_authenticated
config.save_return_to_url = true
config.cookie_domain = nil
config.remember_me_httponly = true
config.token_randomness = 15
@ageis
ageis / YubiKey-GPG-SSH-guide.md
Last active November 30, 2025 16:23
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate). I've published a Bash function which automates this slightly special key generation process.

@mlanett
mlanett / rails http status codes
Last active November 14, 2025 15:11
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing