Skip to content

Instantly share code, notes, and snippets.

Avatar

Randall Mason ClashTheBunny

View GitHub Profile
@ClashTheBunny
ClashTheBunny / meta-data
Last active Sep 30, 2020 — forked from DieterReuter/user-data-wifi.yml
cloud-init configuration for RPi4 debian64pi Client
View meta-data
instance-id: debian-pi4
local-hostname: debian-rpi64
View debug-github-actions.sh
#!/bin/bash
if [[ -z "$NGROK_TOKEN" ]]; then
echo "Please set 'NGROK_TOKEN'"
exit 2
fi
if [[ -z "$USER_PASS" ]]; then
echo "Please set 'USER_PASS' for user: $USER"
@ClashTheBunny
ClashTheBunny / .vimrc_local
Last active Sep 27, 2019
Edit YAML in VIM by converting to EDN
View .vimrc_local
augroup YAML
au!
au BufReadPost *.yaml %!yaml2edn
au BufReadPost *.yaml set ft=clojure
au BufWritePre *.yaml %!edn2yaml
au BufWritePost *.yaml %!yaml2edn
au BufWritePost *.yaml set nomod
augroup END
View 0001-Add-option-to-bind-early-in-ldappasswd.patch
From d55d963af8f42fe4caa4dac1d39968aad7864437 Mon Sep 17 00:00:00 2001
From: Randall Mason <randall@mason.ch>
Date: Mon, 20 Aug 2018 19:16:32 -0500
Subject: [PATCH] Add option to bind early in ldappasswd
ldappasswd is slightly different from a standard passwd workflow in that it
requests an old password, then a new password, then the old password
again. This confuses people who are used to the unix passwd tool as
well as people who use password manager. I've seen quite a few people
who have generated a new password, overwriting the old one, and then
View keybase.md

Keybase proof

I hereby claim:

  • I am clashthebunny on github.
  • I am clashthebunny (https://keybase.io/clashthebunny) on keybase.
  • I have a public key ASB4pXOZrlfT6DAIrkcV0EvxydsyrUESlEn_CIO3JYjcawo

To claim this, I am signing this object:

@ClashTheBunny
ClashTheBunny / .gitignore
Last active Mar 4, 2017
A map of Papua New Guinea with a plane animation.
View noflo.json
{
"id": "ti6yn",
"project": "",
"properties": {
"name": "photobooth",
"environment": {
"runtime": "html",
"src": "preview/iframe.html",
"width": 300,
"height": 300,
@ClashTheBunny
ClashTheBunny / deployTahoeTestGrid.sh
Last active Dec 14, 2015
Running this script will create any number of tahoe nodes with an introducer on a single computer where tahoe is set up. Run it quickly like this: wget -q -O - https://raw.github.com/gist/5070115/deployTahoeTestGrid.sh | bash
View deployTahoeTestGrid.sh
#!/bin/bash
# Run by doing:
# wget -q -O - https://raw.github.com/gist/5070115/deployTahoeTestGrid.sh | bash
####### Change stuff here:
# somewhere with a little bit of space, with tahoe's defaults you need at least 1GB to upload anything:
directoryWithSpace="$HOME/tahoeTest/"
@ClashTheBunny
ClashTheBunny / verify.sh
Last active Dec 5, 2015
Verify checksums of Ubuntu or Debian files.
View verify.sh
#!/bin/bash
# Install the keys for the distribution (apt-cache search keyring | grep -i pg | grep -i keyring):
# e.g. (Ubuntu): apt-get install debian-archive-keyring debian-keyring ubuntu-keyring ubuntu-extras-keyring
# e.g. (Debian): apt-get install debian-archive-keyring debian-keyring ubuntu-archive-keyring
# Download all of the *SUMS and *SUMS.gpg from the mirror that you use and check them by running verify.sh <file-to-verify>:
# I wanted to verify netboot.tar.gz, so I ran "verify.sh netboot.tar.gz" and got:
# sh ./588e8ff9ca5123edd019/verify.sh netboot.tar.gz
# MD5SUMS.gpg
You can’t perform that action at this time.