Skip to content

Instantly share code, notes, and snippets.

@mtinman
mtinman / amd64_efi_nonfree.py
Last active March 29, 2021 18:57
Worker class to build a universal AMD64/Intel images with non-free hardware using UEFI.
#
# This file is part of Freedom Maker.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of

Guix on WSL2

(updated versions of this document, plus more, live here)

This will show you how to get Guix running on WSL2.
We're going to go as "minimal" as possible, without starting off one of the readily available WSL2 distros.
Parts of this guide should help with understanding how to set up any custom distro on WSL, not just Guix.

Disclaimer: I'm a Guix nOOb! (hence going through the trouble of installing it on WSL2)

@jacquesbh
jacquesbh / Use Yubikey (GPG key) for SSH.md
Last active January 3, 2024 14:59
Use my Yubikey with GPG keys to SSH with a guest computer (OSX or Windows)
@kristopolous
kristopolous / hn_seach.js
Last active July 24, 2023 04:12
hn job query search
// Usage:
// Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread
// then use as follows:
//
// query(term | [term, term, ...], term | [term, term, ...], ...)
//
// When arguments are in an array then that means an "or" and when they are seperate that means "and"
//
// Term is of the format:
// ((-)text/RegExp) ( '-' means negation )
@jvalleroy
jvalleroy / gist:7441756
Created November 13, 2013 01:01
Step-through of password hashing code in Plinth using passlib's bcrypt.
https://github.com/NickDaly/Plinth/pull/52/files
Storing the password (add_user function in modules/installed/lib/auth.py):
>>> passphrase = "secretpassword"
>>> pass_hash = bcrypt.encrypt(passphrase)
>>> pass_hash
'$2a$12$cGf.hqxlyfTJk7HtyhAtDu48gazW1W8rJZt9choiP9/7Rff18yQeW'
# 2a is the identifying prefix