Skip to content

Instantly share code, notes, and snippets.

View dysinger's full-sized avatar
😅
16 hour days is OK. Right?

Dysinger dysinger

😅
16 hour days is OK. Right?
  • Independent
  • Nearby
View GitHub Profile
@dysinger
dysinger / bootstrap.sh
Created May 13, 2011 08:27
vagrant/ec2 boostrap script
#!/bin/bash -ex
if [ ! -f /usr/bin/chef-solo ]; then
apt-get update
apt-get -y upgrade
@dysinger
dysinger / solr.log
Created June 12, 2011 04:12
Not able to search on chef 0.10
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
@dysinger
dysinger / xmonad.hs
Created August 4, 2011 19:33
Simple XMonad/Gnome Config File ( with windows-key instead of alt-key )
module Main where
import XMonad
import XMonad.Config.Gnome
main :: IO ()
main = xmonad $ gnomeConfig { modMask = mod4Mask }
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:
@dysinger
dysinger / cookbooks.sh
Created November 30, 2011 18:55
Re-write Opscode Cookbooks as individual Git repos
#!/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
#-*- 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"
@dysinger
dysinger / gist:1480120
Created December 15, 2011 06:55
Always with the json conflicts
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
@dysinger
dysinger / foodcritic.txt
Created December 15, 2011 18:14
Food Critic
~ ➤ 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
@dysinger
dysinger / configuring-archlinux-ami.sh
Created January 15, 2012 07:26 — forked from ELLIOTTCABLE/configuring-archlinux-ami.sh
Instructions for building an EC2 AMI for Arch Linux
#!/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:
@dysinger
dysinger / bootstrap.sh
Created January 26, 2012 15:09
Bootstrap on EC2
#!/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