gem install thor
mkdir -p ~/vagrants && cd ~/vagrants
curl -LO https://raw.github.com/gist/1528832/vagrantify
chmod 755 vagrantify
./vagrantify init webserver
| ּ_בּ | |
| בּ_בּ | |
| טּ_טּ | |
| כּ‗כּ | |
| לּ_לּ | |
| מּ_מּ | |
| סּ_סּ | |
| תּ_תּ | |
| ٩(×̯×)۶ | |
| ٩(̾●̮̮̃̾•̃̾)۶ |
| [user] | |
| name = Joshua Timberman | |
| email = joshua@housepub.org | |
| [color] | |
| ui = true | |
| diff = true | |
| status = true | |
| branch = true | |
| interactive = true | |
| [core] |
| # Gist for archival purposes, via the wayback machine, | |
| # https://web.archive.org/web/20131222092914/http://brainspl.at/nginx.conf.txt | |
| # - brainspl.at seems to be offline :( | |
| # | |
| # View other versions at https://web.archive.org/web/*/http://brainspl.at/nginx.conf.txt | |
| # | |
| # user and group to run as | |
| user ez ez; | |
| # number of nginx workers |
| save-last-command() { | |
| last_command=$(fc -nl 0) | |
| command_name="$1" | |
| read -r -d '' new_fun <<EOF | |
| ${command_name}() { | |
| $last_command | |
| } | |
| EOF | |
| eval "$new_fun" | |
| } |
| include Chef::Mixin::Command | |
| action :create do | |
| size = new_resource.size | |
| volumes = new_resource.volumes.times.map{|i| (i == 0 ? "/dev/sdf" : "/dev/sdf#{i}") } | |
| setra = new_resource.blockdev_setra | |
| volume_group = new_resource.volume_group | |
| logical_volume = new_resource.name | |
| mdadm_device = new_resource.mdadm_device | |
| mount_point = new_resource.mount_point |
| #!/bin/bash | |
| for cookbook in $(find * -type d -maxdepth 0); do | |
| git clone ./ ../${cookbook} | |
| cd ../${cookbook} | |
| git remote rm origin | |
| git filter-branch --subdirectory-filter ${cookbook} -- --all | |
| git gc --aggressive | |
| done |
| bash -c ' | |
| cd ~/Desktop | |
| curl -O http://joncowie.local/xcode.tar.gz | |
| tar -zxf xcode.tar.gz | |
| installer -pkg ~/Desktop/Install\ Xcode.app/Contents/Resources/Xcode.mpkg -target "/" |
| ## Knife plugin to set node environment | |
| # See http://wiki.opscode.com/display/chef/Environments | |
| # | |
| ## Install | |
| # Place in .chef/plugins/knife/set_environment.rb | |
| # | |
| ## Usage | |
| # Nick-Stielaus-MacBook-Pro:chef-repo nstielau$ knife node set_environment mynode.net my_env | |
| # Looking for mynode.net | |
| # Setting environment to my_env |
| # via Jay Feldblum on chef@lists.opscode.com: | |
| name "base" | |
| description "Base role applied to all nodes." | |
| all = [ | |
| "recipe[apt]", | |
| "recipe[build-essential]", | |
| "recipe[git]", | |
| "recipe[zsh]", |