This file contains 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
# Install a recent version of the ruby interpreter from ppa:brightbox | |
include_recipe "apt" | |
include_recipe "build-essential" | |
# Add the brightbox ppa | |
apt_repository 'brightbox' do | |
uri 'http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu' | |
distribution node['lsb']['codename'] | |
components ['main'] |
This file contains 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 | |
# Shell script that should be installed on the origin server as post-receive hook | |
export GIT_SOURCE=$PWD | |
# Extract args and set environment variables for each ref pushed | |
while read oldrev newrev ref | |
do | |
export BEFORE=$oldrev |
This file contains 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
Process: iTerm [73050] | |
Path: /Applications/iTerm.app/Contents/MacOS/iTerm | |
Identifier: com.googlecode.iterm2 | |
Version: ??? | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [249] | |
Responsible: iTerm [73050] | |
User ID: 501 | |
Date/Time: 2013-12-09 11:04:57.560 +0100 |
This file contains 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
Prefix Verb URI Pattern Controller#Action | |
new_user_session GET /users/sign_in(.:format) devise/sessions#new | |
user_session POST /users/sign_in(.:format) devise/sessions#create | |
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy | |
user_password POST /users/password(.:format) devise/passwords#create | |
new_user_password GET /users/password/new(.:format) devise/passwords#new | |
edit_user_password GET /users/password/edit(.:format) devise/passwords#edit | |
PATCH /users/password(.:format) devise/passwords#update |
This file contains 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/sh | |
export DISPLAY=:0 | |
export GPU_MAX_ALLOC_PERCENT=100 | |
export GPU_USE_SYNC_OBJECTS=1 | |
export THREAD_CONCURRENCY=7680 | |
export INTENSITY=12 | |
export GPU_THREADS=2 | |
export WORKSIZE=256 | |
export LOOKUP_GAP=2 |
This file contains 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
#include | |
https://gist.github.com/andruby/5571940/raw/cloud-config | |
https://gist.github.com/andruby/5571940/raw/remote.sh |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<sparkleshare> | |
<user> | |
<name>Andrew</name> | |
<email>[email protected]</email> | |
</user> | |
<notifications>True</notifications> | |
<folder> | |
[...] | |
</folder> |
This file contains 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
# postinstall.sh for Ubuntu 12.04 base ami | |
# Online at: https://gist.github.com/andruby/5389159 | |
# Usage: config.vm.provision :shell, :inline => "curl 'https://gist.github.com/andruby/5389159/raw' | sudo sh" | |
if hash chef-client 2>/dev/null; then | |
echo "Chef is already installed" | |
else | |
echo "Chef is not available on the system" | |
echo "Bootstrapping ruby & chef" |
This file contains 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
u = User.find_by_email("[email protected]") | |
u.email = "[email protected]" | |
def u.postpone_email_change?; false; end | |
u.save |