Skip to content

Instantly share code, notes, and snippets.

View englishm's full-sized avatar
🦀
Media over QUIC enthusiast, Rustacean

Mike English englishm

🦀
Media over QUIC enthusiast, Rustacean
View GitHub Profile
@englishm
englishm / 0_reuse_code.js
Created May 7, 2014 18:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/bin/bash
# This snippet should hypothetically allow a totally unattended
# installation of Apple's XCode. After prompting for credentials,
# the script simulates a login, begins a download and subsequently
# mounts the disk image and installs XCode to the default location.
echo -n "ADC login: "
read login
echo -n "ADC password: "
require 'yard'
require 'active_support'
require 'set'
class ModelHandler < YARD::Handlers::Ruby::Base
handles :class
def process
return unless statement[1]
sclass = statement[1].source
#rubygems Central conversation
#rubygems-status: The content of the status site
#rubygems-verification: Checking MD5's against S3
#rubygems-aws: Rebuilding the site on a new host
@englishm
englishm / _.md
Created November 30, 2012 08:05 — forked from anonymous/_.md
Step Chart Demo
@englishm
englishm / bootstrap.sh
Created September 4, 2012 02:29 — forked from kuleszaj/bootstrap.sh
Puppet Bootstrap, CentOS
#!/bin/bash
# Update our package manager...
sudo yum check-update -y
# Install dependencies for RVM and Ruby...
sudo yum -y install gcc-c++ patch readline readline-devel zlib zlib-devel libxml2-devel libyaml-devel libxslt-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel git
# Get and install RVM
curl -L https://get.rvm.io | sudo bash -s stable
@englishm
englishm / install_graphite_statsd_ubuntu_precise.sh
Created June 17, 2012 17:43 — forked from bhang/install_graphite_statsd_ubuntu_precise.sh
Install Graphite and statsd on Ubuntu 12.04 LTS (Precise Pangolin)
#!/bin/bash
# node.js using PPA (for statsd)
sudo apt-get --yes install python-software-properties
sudo apt-add-repository --yes ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get --yes install nodejs npm
# Install git to get statsd
sudo apt-get --yes install git