Skip to content

Instantly share code, notes, and snippets.

View suenot's full-sized avatar
🕸️
Deep

Eugen Soloviov suenot

🕸️
Deep
View GitHub Profile
@suenot
suenot / install_sublime.sh
Created October 21, 2012 16:27
Install Sublime Text 2 in Debian
sudo echo "deb http://ppa.launchpad.net/webupd8team/sublime-text-2/ubuntu lucid main" >> /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
sudo apt-get update && sudo apt-get install sublime-text
@suenot
suenot / nginx_rails_3_1
Created July 12, 2012 18:46 — forked from shapeshed/nginx_rails_3_1
Nginx Config for Rails 3.1 with Unicorn and Asset Pipeline
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 {
@suenot
suenot / 0. nginx_setup.sh
Created July 12, 2012 09:02 — forked from mikhailov/0. nginx_setup.sh
Nginx+Unicorn (production-ready setup)
# Nginx optimal congifuration guide.
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies.
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module
$ cd /usr/src
$ wget http://nginx.org/download/nginx-1.2.2.tar.gz
$ tar xzvf ./nginx-1.2.2.tar.gz && rm -f ./nginx-1.2.2.tar.gz
$ wget http://zlib.net/zlib127.zip