Skip to content

Instantly share code, notes, and snippets.

View jtimberman's full-sized avatar
🚀

Joshua Timberman jtimberman

🚀
View GitHub Profile
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
[user]
name = Joshua Timberman
email = joshua@housepub.org
[color]
ui = true
diff = true
status = true
branch = true
interactive = true
[core]
@jtimberman
jtimberman / nginx.conf
Created November 30, 2014 17:03
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 :(
# 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"
}
@fujin
fujin / ebs_raid6_provider.rb
Created May 8, 2011 03:20
aws_ebs_raid6 lwrp
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
@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
@jonlives
jonlives / gist:1486734
Created December 16, 2011 16:30
Bootstrap Manifest for Chef on OS X
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 "/"
@fnichol
fnichol / README.md
Created December 28, 2011 17:41
Vagrantify: Create a chef-solo enabled Vagrant virtual machine for development

Installation

gem install thor
mkdir -p ~/vagrants && cd ~/vagrants
curl -LO https://raw.github.com/gist/1528832/vagrantify
chmod 755 vagrantify

Usage

./vagrantify init webserver

@miketheman
miketheman / set_environment.rb
Created December 29, 2011 16:12 — forked from nstielau/set_environment.rb
A Knife plugin to set node environment
## 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