Skip to content

Instantly share code, notes, and snippets.

@btoone
btoone / compile_image_magick.txt
Created Aug 21, 2012 — forked from rgo/compile_image_magick.txt
Compile latest ImageMagick version (useful for old distros)
View compile_image_magick.txt
## From http://johannes.jarolim.com/blog/2011/11/21/extreme-slow-imagemagick-on-vps-with-ubuntu/
#
# Execute as root
apt-get update
apt-get install build-essential
apt-get build-dep imagemagick
cd /usr/local/src
VERSION = "6.7.9-0"
@btoone
btoone / unicorn_example.sh
Created Aug 20, 2012 — forked from tualatrix/unicorn_example.sh
An example of unicorn init script for Ubuntu
View unicorn_example.sh
#!/bin/sh
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the unicorn web server
# Description: starts unicorn
@btoone
btoone / nginx_rails_3_1
Created Aug 19, 2012 — forked from shapeshed/nginx_rails_3_1
Nginx Config for Rails 3.1 with Unicorn and Asset Pipeline
View nginx_rails_3_1
upstream app {
server unix:/srv/app/current/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {
listen 80;
server_name www.app.com;
rewrite ^/(.*) http://app.com/$1 permanent;
}
server {
You can’t perform that action at this time.