Skip to content

Instantly share code, notes, and snippets.

Avatar

Alan Burgoyne donkeybanana

View GitHub Profile
@donkeybanana
donkeybanana / Arch-ZFSRoot-on-dm-crypt-UEFI.md
Created Apr 18, 2020 — forked from kdwinter/Arch-ZFSRoot-on-dm-crypt-UEFI.md
ZFSRoot installation over a dm-crypt volume for Arch Linux (UEFI)
View Arch-ZFSRoot-on-dm-crypt-UEFI.md

Install Arch Linux on root ZFS filesystem

Pre-installation

Download Arch linux

https://archlinux.org

Create bootable USB (don't add partition number!)

@donkeybanana
donkeybanana / ArchLinux_ZFS_LUKS_Setup.sh
Created Apr 18, 2020 — forked from xunil154/ArchLinux_ZFS_LUKS_Setup.sh
ArchLinux install script with ZFS as the root, all sitting on LUKS encryption, using systemd-boot for UEFI (ArchLinux with ZFS Root on LUKS with UEFI)
View ArchLinux_ZFS_LUKS_Setup.sh
#!/bin/sh
SWAPSIZE=3 # IN GB
SYSTEM_NAME=aerozine # Hostname and used in ZFS structure (zroot/sys/${SYSTEM_NAME}/ROOT/default)
USER=xunil # Initial admin user for the system
# Archlinux on ZFS Root on LUKS setup script (v1.0)
#
# USAGE: ./ArchLinux_ZFS_LUKS_Setup.sh /dev/sda
#
@donkeybanana
donkeybanana / build.js
Last active Jun 18, 2018
stealjs issue with object spread syntax
View build.js
var babel = require('babel-core');
var stealTools = require('steal-tools');
const babelOpts = {
sourceMaps: true,
presets: ['env', 'stage-0', 'react'],
plugins: ['transform-object-rest-spread']
};
const result = babel.transformFileSync(__dirname + '/index.js', babelOpts);
@donkeybanana
donkeybanana / .s2iignore
Created May 14, 2018
s2iignore assemble
View .s2iignore
package.json
@donkeybanana
donkeybanana / keybase.md
Last active Nov 22, 2017
Keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am donkeybanana on github.
  • I am donkeybanana (https://keybase.io/donkeybanana) on keybase.
  • I have a public key ASDUdI79AROrpODEDXdL4eic-WkO8RBZZ8EkpoOGnGJXbgo

To claim this, I am signing this object:

View remove-orphan-images.sh
#!/bin/bash
JQPATH=$(which jq)
if [ "x$JQPATH" == "x" ]; then
echo "Couldn't find jq executable." 1>&2
exit 2
fi
set -eu
shopt -s nullglob
@donkeybanana
donkeybanana / mount-docker-machine.sh
Last active Aug 29, 2015 — forked from mrbobbytables/init-boot2docker.sh
boot2docker OSX mount helper
View mount-docker-machine.sh
#!/bin/bash
set -o errexit -o nounset -o pipefail
usage() {
cat << EOF
USAGE:
init-boot2docker.sh -p [path] -u [uid] -g [gid]
-p Path to the working directory you wish to mount.
-u The uid you wish to mount the working directory as.
View latex-hook.sh
#!/bin/sh
WEBDIR=yourwebdir
WORKSPACE=your/workspace
TEX_FILE_NAME=your_file
echo
echo "**** Pulling changes into Live [Hub's post-update hook]"
echo
View debian.sh
#!/bin/bash
##################################################################################
# 1 - Create the base container
SUITE=squeeze
RELEASE=$SUITE
sudo lxc-create -n ${RELEASE}-base -t debian
rootfs="/var/lib/lxc/${RELEASE}-base/rootfs"
@donkeybanana
donkeybanana / git-fap.sh
Last active Jun 23, 2018
git f(etch) a(apply) p(ush)
View git-fap.sh
git config --global alias.fap '!f() { git pull --rebase; git push; }; f'
You can’t perform that action at this time.