Skip to content

Instantly share code, notes, and snippets.

View nesquena's full-sized avatar

Nathan Esquenazi nesquena

View GitHub Profile
@nesquena
nesquena / postfix_setup.md
Last active September 23, 2015 13:38
Postfix Mail Delivery
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
@nesquena
nesquena / Uniform Setup.md
Created August 3, 2010 22:30
Uniform Server Setup

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

@nesquena
nesquena / custom.cnf
Created August 3, 2010 22:21
MySQL Configuration
[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
#
@nesquena
nesquena / mac_setup.txt
Last active February 10, 2019 17:58
Setup Local Mac
- 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
@nesquena
nesquena / compile_redis_ubuntu.txt
Created July 26, 2010 22:05
Redis installation instructions
# 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
@nesquena
nesquena / .gemrc
Created July 26, 2010 20:58
Gem RC file
---
: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
@nesquena
nesquena / base.conf
Last active February 28, 2020 11:35
nginx configuration
include mime.types;
default_type application/octet-stream;
access_log logs/access.log;
sendfile on;
keepalive_timeout 65;
tcp_nodelay on;
tcp_nopush on;
@nesquena
nesquena / dj_multi.god
Last active December 5, 2019 17:41
god configuration
# 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"
@nesquena
nesquena / .bash_profile
Created July 1, 2010 21:16
Git Config .gitconfig file
# 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'
@nesquena
nesquena / autotest_install
Created June 30, 2010 22:23
Autotest Instructions
# 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"