Skip to content

Instantly share code, notes, and snippets.

View donkeybanana's full-sized avatar

Alan Burgoyne donkeybanana

View GitHub Profile
#!/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"
#!/bin/sh
WEBDIR=yourwebdir
WORKSPACE=your/workspace
TEX_FILE_NAME=your_file
echo
echo "**** Pulling changes into Live [Hub's post-update hook]"
echo
@donkeybanana
donkeybanana / mount-docker-machine.sh
Last active August 29, 2015 14:27 — forked from mrbobbytables/init-boot2docker.sh
boot2docker OSX mount helper
#!/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.

About

minimal example of using [phantomjs] with [qunit]

$ phantomjs run-qunit.js file://`pwd`/test.html
'waitFor()' finished in 200ms.
Tests completed in 21 milliseconds.
5 tests of 5 passed, 0 failed.

Installation

#!/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 / keybase.md
Last active November 22, 2017 01:36
Keybase proof

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:

@donkeybanana
donkeybanana / .s2iignore
Created May 14, 2018 08:57
s2iignore assemble
package.json
@donkeybanana
donkeybanana / build.js
Last active June 18, 2018 08:36
stealjs issue with object spread syntax
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 / git-fap.sh
Last active June 23, 2018 10:43
git f(etch) a(apply) p(ush)
git config --global alias.fap '!f() { git pull --rebase; git push; }; f'
@donkeybanana
donkeybanana / ArchLinux_ZFS_LUKS_Setup.sh
Created April 18, 2020 15:43 — 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)
#!/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
#