Run the two commands below one at a time to get Samba 3 installed and to have it run on boot.
Install Samba with Homebrew
sh < <(curl https://raw.github.com/gist/1938575/df254d9a2ac83dddb04fcc7f9b634b65708aa477/
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
BLUE="\[\033[0;34m\]" | |
LIGHT_RED="\[\033[1;31m\]" | |
LIGHT_GREEN="\[\033[1;32m\]" | |
WHITE="\[\033[1;37m\]" | |
LIGHT_GRAY="\[\033[0;37m\]" | |
COLOR_NONE="\[\e[0m\]" |
group :assets do | |
gem 'sass-rails', '~> 3.1.0' | |
gem 'coffee-rails', '~> 3.1.0' | |
gem 'uglifier' | |
gem 'compass' | |
end |
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |
Run the two commands below one at a time to get Samba 3 installed and to have it run on boot.
sh < <(curl https://raw.github.com/gist/1938575/df254d9a2ac83dddb04fcc7f9b634b65708aa477/
require 'yaml' | |
namespace :pg do | |
namespace :mac do | |
def conf | |
@conf ||= YAML.load_file("#{Rails.root}/config/database.yml") | |
end | |
def username |
/** | |
* Return a timestamp with the format "m/d/yy h:MM:ss TT" | |
* @type {Date} | |
*/ | |
function timeStamp() { | |
// Create a date object with the current time | |
var now = new Date(); | |
// Create an array with the current month, day and time |
require "rspec/core/formatters/progress_formatter" | |
class ApplauseFormatter < RSpec::Core::Formatters::ProgressFormatter | |
def initialize(output) | |
super(output) | |
unless File.exists? "/tmp/applause.mp3" | |
p "Downloading applause for awesomeness" | |
system "wget http://www.soundjay.com/human/applause-1.mp3 -O /tmp/applause.mp3" | |
end | |
end |
June 7-8, 2013
Web site: http://reddotrubyconf.com/ Twitter: http://twitter.com/reddotrubyconf
Ping me @cheeaun on Twitter if you found some awesome stuff for #rdrc. This gist will be updated whenever there's new stuff.
Previously, on RedDotRubyConf 2012
# SSH Connection pooling for faster additional connections to a machine | |
ControlMaster auto | |
ControlPath /tmp/ssh_mux_%h_%p_%r | |
# This makes subsequent connections go faster | |
ControlPersist 2h | |
# Make it so ssh-ing from one server to another passes keys around automagically | |
Host * | |
ForwardAgent yes |
git clone --bare git@github.com:jonlong/<repo>.git
tar -czf <repo>.git.tar.gz <repo>.git
Create a new private repository on the target account:
curl -F 'login=' -F 'token=' -F 'name=jonlong/' -F 'public=0' http://github.com/api/v2/json/repos/create