Skip to content

Instantly share code, notes, and snippets.

@jayzes
jayzes / bootstrap-chef-client-osx.sh
Created January 19, 2011 19:54
commands to bootstrap chef-client on ubuntu and osx
# Run with bash < <( curl https://gist.github.com/raw/786735/bootstrap-chef-client-osx.sh )
# Switch to system Ruby
if [ -s "$HOME/.rvm/scripts/rvm" ]; then
rvm use system
fi
sudo gem install chef --no-ri --no-rdoc
sudo mkdir -p /etc/chef
sudo scp interactive@chef.factorylabs.com:/etc/chef/validation.pem /etc/chef/validation.pem
@pcreux
pcreux / install_chef_client.sh
Created September 7, 2010 19:06
Bash script to install chef client on blank ubuntu 10.04 - lucid
#/bin/bash
# From http://wiki.opscode.com/display/chef/Package+Installation+on+Debian+and+Ubuntu
# Run: wget http://gist.github.com/raw/568876/install_chef_client.sh && bash install_chef_client.sh
echo "Add the Opscode APT Repository"
echo 'deb http://apt.opscode.com/ lucid main' | sudo tee /etc/apt/sources.list.d/opscode.list
sudo apt-get update
echo "Install curl"
sudo apt-get install curl
@sit
sit / gitproxy-socat
Created January 20, 2009 02:30
A simple wrapper around socat to use as a git proxy command
#!/bin/sh
# Use socat to proxy git through an HTTP CONNECT firewall.
# Useful if you are trying to clone git:// from inside a company.
# Requires that the proxy allows CONNECT to port 9418.
#
# Save this file as gitproxy somewhere in your path (e.g., ~/bin) and then run
# chmod +x gitproxy
# git config --global core.gitproxy gitproxy
#
# More details at http://tinyurl.com/8xvpny