These are some notes on infrastructure & deployment.
This file contains hidden or 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/sh | |
# Fetch and install the latest Chromium mac nightly build, but only | |
# if it's different from the currently installed version. An existing | |
# Chromium.app is backed up to .Chromium.app in the same directory. | |
# | |
# Install with: | |
# $ curl -L http://bit.ly/night-chrome > ~/bin/nightly-chromium | |
# $ chmod +x ~/bin/nightly-chromium | |
# | |
# To upgrade to latest chromium version: |
This file contains hidden or 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
#!/usr/bin/env bash | |
# | |
# install all of http://github.com/phuibonhoa's TM bundles (OS X only) | |
# | |
echo "Installing bundles..." | |
# backup dir | |
if [ -d ~/desktop/_tm_bundle_backups ]; then rm -rf ~/desktop/_tm_bundle_backups; fi |
This script is a replacement for livereload server component designed for working with Rails. It watches the filesystem with FS Events (Mac OS X) rather than with EventMachine. This is better for large projects for wich EventMachine fails with "too many open files" exception.
Sass is supported; .sass files can also be stored in "app/styles/" directory. Compass is detected if "config/compass.rb" file exists.
Download this script to somewhere in your PATH and make it executable. You can name it something different than "livereload" if you want to try this and the official gem executable in parallel.
This file contains hidden or 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 | |
TMP_DIR=/tmp/chromedownload | |
BASE_URL=http://build.chromium.org/f/chromium/snapshots/chromium-rel-mac | |
rm -rf $TMP_DIR | |
mkdir $TMP_DIR | |
cd $TMP_DIR | |
curl $BASE_URL/LATEST -o $TMP_DIR/LATEST --silent && LATEST=`cat $TMP_DIR/LATEST` | |
echo "Latest build # $LATEST" | |
echo "downloading from: $BASE_URL/$LATEST/chrome-mac.zip" | |
curl $BASE_URL/$LATEST/chrome-mac.zip -o $TMP_DIR/chrome-mac.zip |
This file contains hidden or 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
# install git | |
sudo apt-get install g++ curl libssl-dev apache2-utils | |
sudo apt-get install git-core | |
# download the Node source, compile and install it | |
git clone https://github.com/joyent/node.git | |
cd node | |
./configure | |
make | |
sudo make install | |
# install the Node package manager for later use |
This file contains hidden or 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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAtq4sV9zglIqqkqCvhwdiOTZ2a6D3xhmBAJulHVLMrsD1QL0662R84iCi4VdMlvviKo1W0zk98pjvnQC4Q1KZJ1xmPPyq97pbZAipZR15MNqOS5R82Oo8+cpdQsJwdQBhA47OxpOKrju6AqxWg8Tz3m7Lda0iDa4woXNG8eMwIGCZ31iBFOMuz/aSWc92KZ3p6lqJw2C3H2H1h6291AfYRSnShF5wfYCQDjLupkhX6jq90u4cGcFrWJBgRPLs0Xkl4azNTlo4/dFMaI1jYI363K9ERk33tUsh4hqHTt8saDNo4+c+46Lv/5dmznsxkcei46yD9fTuB85pQMEFWILB0w== [email protected] |
This file contains hidden or 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
# Based on Dave Bollinger`s work | |
class Spaceship | |
constructor: (@size = 5) -> | |
@ship = ( solid: [], cockpit: [], body: [] ) | |
# map the ship | |
{ empty, solid, cockpit, body } = @map this |
This file contains hidden or 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
# Run this: | |
# ruby < <(curl -s https://gist.githubusercontent.com/ambethia/1429621/raw/life.rb) | |
require 'curses' | |
class Life | |
extend Curses | |
CELL_CHAR = "*" |
OlderNewer