I hereby claim:
- I am grega on github.
- I am gregannandale (https://keybase.io/gregannandale) on keybase.
- I have a public key ASCDzb6kC0NcSF1tA7O9hbR9lZIKd3PydfLwm05JNbJ3WQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
require "rubygems" | |
require "twitter" | |
# get these from apps.twitter.com | |
CONSUMER_KEY = "foo" | |
CONSUMER_SECRET = "bar" | |
OAUTH_TOKEN = "blee" | |
OAUTH_TOKEN_SECRET = "baz" | |
TWITTER_USER = "your_username" # needs to be the one associated with keys above |
#!/bin/bash | |
machines=() | |
for machine in `VBoxManage list runningvms|cut -d" " -f 1`; do | |
machines+=("$machine") | |
done | |
if [ ${#machines[@]} -eq 1 ]; then | |
machinename=$(echo ${machines[@]} | cut -d'_' -f 1) |
from __future__ import with_statement | |
from fabric.api import env, local, settings, abort, run, cd, sudo | |
from fabric.contrib.console import confirm | |
# Hosts | |
def stage(): | |
env.user = 'deploy_user' | |
env.hosts = ['xxx.xxx.xxx.xxx:22'] | |
global code_dir | |
code_dir = '/var/www/stage.website.com' # no trailing slash |
<?php | |
function array_push_assoc($array, $key, $value){ | |
$array[$key] = $value; | |
return $array; | |
} | |
$opts = array( | |
'template'=>'schedule.html', | |
'page'=>'/page.php', | |
'skip-template'=>true |