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
# Clone rbenv into ~/.rbenv | |
git clone git@github.com:sstephenson/rbenv.git ~/.rbenv | |
# Add rbenv to your PATH | |
# NOTE: rbenv is *NOT* compatible with rvm, so you'll need to | |
# remove rvm from your profile if it's present. (This is because | |
# rvm overrides the `gem` command.) | |
echo 'export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"' >> ~/.bash_profile | |
exec $SHELL |
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
{ | |
"id":"dbauser", | |
"uid":506, | |
"comment":"DBA User", | |
"shell":"/bin/bash", | |
"groups": [ | |
"sysadm", | |
"dba" | |
], | |
"ssh_key": "XXXXXXXXXX" |
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
[test_adhearsion] | |
exten => s,1,AGI(agi://192.168.1.64) | |
[default] | |
;include => test_adhearsion | |
exten => 999,1,GoTo(test_adhearsion|s|1) | |
exten => 999,n,Hangup | |
; |
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
#!/usr/bin/ruby | |
## manage rackspace cloud chef nodes -- w/o error handling for the time being :) | |
require 'rubygems' | |
require 'yaml' | |
require 'fog' | |
def create(name, flavor, image, key, chef_server_url) | |
image_id = image =~ /\A\d+\Z/ ? image : image_id_by_name(image) |
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
current_app_name = File.basename(File.expand_path(root)) | |
run "rm README" | |
run "rm public/index.html" | |
# ---------------------- Git ---------------------- | |
def commit_state(comment) | |
git :add => "." | |
git :commit => "-am '#{comment}'" |