This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |