sudo apt-get update
sudo apt-get install postfix mailutils
sudo mkfifo /var/spool/postfix/public/pickup
sudo /etc/init.d/postfix restart
sudo touch /var/mail/deploy
sudo chown deploy:deploy /var/mail/deploy
sudo reboot
Enable universe repository:
# /etc/apt/sources.list
## main & restricted repositories
deb http://us.archive.ubuntu.com/ubuntu/ jaunty main restricted universe
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty main restricted universe
deb http://security.ubuntu.com/ubuntu jaunty-security main restricted universe
deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted universe
This file contains hidden or 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
[mysqld] | |
# | |
# * Networking | |
# | |
# Instead of skip-networking the default is now to listen only on | |
# localhost which is more compatible and is not less secure. | |
bind-address = 192.168.xxxx.xxxx | |
# |
This file contains hidden or 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
- Run software update | |
- Install Purchased Apps from App Store | |
- Disable caps lock key (Sys Pref => Keyboard => Modifier Keys) | |
- System Pref -> Expose -> Setup corners for spaces and expose | |
+ System Pref -> Security -> Sleep Password | |
- Setup Dropbox to Get Files | |
- Install 1Password | |
- Use dropbox synced file for keychain | |
- Install browser extension for chrome | |
- Install Prey |
This file contains hidden or 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
# http://antonio.ognio.com/2010/07/28/installing-redis-on-linux-and-mac-os-x/ | |
wget http://redis.googlecode.com/files/redis-2.2.2.tar.gz | |
tar -xzvf redis-2.2.2.tar.gz | |
cd redis-2.2.2 && sudo make && sudo make install | |
Five binaries will be installed to /usr/local/bin, redis-server, redis-benchmark, redis-cli, redis-check-dump and redis-check-aof. You’ll have to manually copy the Redis configuration file to /etc like this: | |
sudo mkdir /etc/redis | |
sudo cp redis.conf /etc/redis/redis.conf |
This file contains hidden or 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
--- | |
:update_sources: true | |
:sources: | |
- http://gems.rubyforge.org/ | |
- http://gems.github.com | |
:benchmark: false | |
:bulk_threshold: 1000 | |
:backtrace: false | |
:verbose: true | |
gem: --no-ri --no-rdoc |
This file contains hidden or 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 mime.types; | |
default_type application/octet-stream; | |
access_log logs/access.log; | |
sendfile on; | |
keepalive_timeout 65; | |
tcp_nodelay on; | |
tcp_nopush on; |
This file contains hidden or 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
# delayed job priority ranges. Higher values represent lower priority. | |
PRIORITY_RANGES = [(0..9), (10..19)] | |
2.times do |num| | |
God.watch do |w| | |
w.name = "dj-#{num}" | |
w.group = 'dj' | |
w.interval = 30.seconds | |
w.start = "rake -f #{RAILS_ROOT}/Rakefile RAILS_ENV=production MIN_PRIORITY=#{PRIORITY_RANGES[num].first} MAX_PRIORITY=#{PRIORITY_RANGES[num].last} jobs:work" | |
w.log = "/var/log/god/god.log" |
This file contains hidden or 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
# brew install git bash-completion | |
# Completion | |
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
# Editor | |
export EDITOR='mate -w' |
This file contains hidden or 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
# http://ph7spot.com/musings/getting-started-with-autotest | |
$ gem install redgreen autotest-standalone autotest-fsevent autotest-growl autotest-rails-pure | |
$ mate ~/.autotest | |
require 'redgreen/autotest' | |
require 'autotest/timestamp' | |
require 'autotest/growl' | |
require 'autotest/fsevent' | |
require "autotest/restart" |