Skip to content

Instantly share code, notes, and snippets.

View ajlanghorn's full-sized avatar
🍕

Andrew L. ajlanghorn

🍕
View GitHub Profile
@ajlanghorn
ajlanghorn / forkbomb.py
Created March 1, 2015 21:47
Forkbombs.
#!/usr/bin/env python
import "os"
while True:
os.fork()
@ajlanghorn
ajlanghorn / bob-walker.rb
Last active August 29, 2015 14:07
spec/bob-walker.rb
!/usr/bin/env/ruby
loop do
puts "beard"
puts "beer"
puts "pie"
case ARGV[0]
when "-s"
puts "rugby"
puts "cricket"
@ajlanghorn
ajlanghorn / update_vbga.sh
Created August 26, 2014 16:19
Updating VBoxGuestAdditions between minor versions is a pain. So here's a lovely shell script... yay!!!1! (Boo!)
#!/bin/bash
#
# Upgrade VirtualBox Guest Additions
#
# This script removes VirtualBox Guest Additions v4.2.6 from the mirror
# machines when brought up using Vagrant, and installs v4.3.6 instead. This
# makes the version of VirtualBox being used in this repository the same as
# is used in the off-site backup and main Puppet repositories.
set -ex
@ajlanghorn
ajlanghorn / homebrew-errors
Created April 18, 2014 16:39
Homebrew errors
bash-3.2$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
==> The following directories will be made group writable:
/usr/local/.
/usr/local/bin
/usr/local/etc
/usr/local/share