Skip to content

Instantly share code, notes, and snippets.

@kpopper
kpopper / setup_machine.sh
Last active November 13, 2018 13:35
Laptop setup
#!/bin/sh
read -p "Have you set up FileVault on both accounts? <y/N> " prompt
if ! [[ $prompt =~ [yY](es)* ]]
then
echo "Come back when you have!"
exit 2
read -p "Have you installed all App Store apps? <y/N> " prompt
if ! [[ $prompt =~ [yY](es)* ]]
then
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew update
brew doctor
## Install ###################################################################
@kpopper
kpopper / ci.rake
Created January 23, 2012 16:46
Rake file contents for running ci builds
namespace :ci do
desc "Set the environment to Test"
task :set_env do
RAILS_ENV = ENV['RAILS_ENV'] = 'test'
end
task :configure_database => ['db:drop', 'db:create', 'db:schema:load'] do
end
desc "Run all required tasks to perform our build"
@kpopper
kpopper / gist:1620344
Created January 16, 2012 11:16
Git & RVM shell prompt stuff
##################################################
### This goes in your .bashrc or .bash_profile or whatever
###
### RVM-specific command line (PS1): show current rvm and gemset, git branch (if any)
### and put "(svn)" before folder name if in svn folder
###
### You may need to manually create the __git_ps1 function here:
### http://effectif.com/git/config
function __git_dirty {