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 -ex | |
| if [ ! -f /usr/bin/chef-solo ]; then | |
| apt-get update | |
| apt-get -y upgrade |
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
| Jun 12, 2011 6:04:45 AM org.apache.solr.core.SolrDeletionPolicy onInit | |
| INFO: SolrDeletionPolicy.onInit: commits:num=1 | |
| commit{dir=/var/cache/chef/solr/data/index,segFN=segments_1,version=1307850145118,generation=1,filenames=[segments_1] | |
| Jun 12, 2011 6:04:45 AM org.apache.solr.core.SolrDeletionPolicy updateCommits | |
| INFO: newest commit = 1307850145118 | |
| Jun 12, 2011 6:04:45 AM org.apache.solr.update.processor.LogUpdateProcessor finish | |
| INFO: {deleteByQuery=X_CHEF_database_CHEF_X:chef} 0 2 | |
| Jun 12, 2011 6:04:45 AM org.apache.solr.core.SolrCore execute | |
| INFO: [] webapp=/solr path=/update params={} status=0 QTime=2 | |
| Jun 12, 2011 6:04:45 AM org.apache.solr.update.DirectUpdateHandler2 commit |
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
| module Main where | |
| import XMonad | |
| import XMonad.Config.Gnome | |
| main :: IO () | |
| main = xmonad $ gnomeConfig { modMask = mod4Mask } |
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
| Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-server x86_64) | |
| * Documentation: http://www.ubuntu.com/server/doc | |
| Last login: Tue Sep 20 22:20:01 2011 from 10.0.2.2 | |
| vagrant@chef:~$ sudo apt-get install -y python-software-properties | |
| Reading package lists... Done | |
| Building dependency tree | |
| Reading state information... Done | |
| The following NEW packages will be installed: |
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 | |
| 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 |
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
| #-*- mode: ruby; -*- | |
| source :rubygems | |
| group :chef do | |
| gem "chef", "0.10.4" | |
| end | |
| group :vagrant do | |
| gem "vagrant", "0.8.7" ; gem "json", "1.5.2" |
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
| chef ➤ cat Gemfile git:develop* | |
| source :rubygems | |
| gem "chef", "~> 0.10.6" | |
| gem "foodcritic", "~> 0.5.1" | |
| chef ➤ bundle install --path vendor/bundle --binstubs git:develop* | |
| Fetching source index for http://rubygems.org/ | |
| Bundler could not find compatible versions for gem "json": | |
| In Gemfile: | |
| chef (~> 0.10.6) ruby depends on | |
| json (<= 1.6.1, >= 1.4.4) ruby |
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
| ~ ➤ cd Projects/opscode | |
| opscode ➤ git clone https://github.com/opscode/cookbooks.git | |
| Cloning into 'cookbooks'... | |
| remote: Counting objects: 15939, done. | |
| remote: Compressing objects: 100% (5786/5786), done. | |
| remote: Total 15939 (delta 9261), reused 14695 (delta 8459) | |
| Receiving objects: 100% (15939/15939), 6.61 MiB | 666 KiB/s, done. | |
| Resolving deltas: 100% (9261/9261), done. | |
| opscode ➤ cd cookbooks | |
| cookbooks ➤ cat > Gemfile <<EOF source :rubygems |
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
| #!/dev/null | |
| # This 'script' is a set of instructions for preparing and bundling an Arch | |
| # Linux AMI for Amazon's EC2. Bits are to be run on three different | |
| # computers, and there is interaction required, so please follow along and | |
| # run commands individually. | |
| # PROTIP: THESE DON'T ACTUALLY WORK. That's why I'm pasting them here, | |
| # attemping to get some input on what I'm doing wrong. When the instructions | |
| # are ready for prime-time, I'll clean them up and post them to my blog. If | |
| # you're really interested, watch for it there: |
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 -eux | |
| cd /tmp | |
| # mount up encrypted EBS $HOME | |
| sudo apt-get update | |
| sudo apt-get upgrade -y | |
| sudo apt-get install -y cryptsetup | |
| sudo cryptsetup luksOpen /dev/xvdf home | |
| sudo mv /home /tmp && sudo mkdir /home |