Skip to content

Instantly share code, notes, and snippets.

# Define disk
DISK="/dev/sda"
DISK_BOOT_PARTITION="/dev/sda1"
DISK_NIX_PARTITION="/dev/sda2"
# Undo any previous changes if applicable
set +e
umount -R /mnt
cryptsetup close cryptroot
set -e
#!/bin/sh
wget https://github.com/$USER
mkdir -p /home/$(whoami)/.ssh/
export KEYS=$(cat $KEYS)
echo "$KEYS" >> /home/$(whoami)/.ssh/authorized_keys
chmod 600 /home/$(whoami)/.ssh/authorized_keys

Keybase proof

I hereby claim:

  • I am clangley on github.
  • I am chrislangley (https://keybase.io/chrislangley) on keybase.
  • I have a public key whose fingerprint is 795D 898D 4FBB 8146 B8AB 50F6 0144 5E60 5A13 A649

To claim this, I am signing this object:

@clangley
clangley / main.js
Created May 16, 2012 16:09
Create a simple todo js with agilityjs and firebase
//Enter firebase URL
var firebaseUrl = "";
var dataref = new Firebase(firebaseUrl);
var item = $$({}, '<li><span data-bind="content"/> <button>x</button></li>', '& span { cursor:pointer; }', {
'change':function(){
dataref.push({content:this.model.get('content'), index:this.model.get('index')});
},