Skip to content

Instantly share code, notes, and snippets.

require 'fileutils'
start_time = Time.now
SOURCE_DB = {
:name => 'db_name',
:user => 'db_user',
:password => 'db_pass',
:host => 'localhost'
@ozeias
ozeias / front-end-developer.md
Last active August 29, 2015 14:03
[JOB] Front-end Developer: Backbone, Angular, Node and/or Rails #jobs

About Chute

Chute is a Y Combinator company, and the most comprehensive visual brand engagement platform on the market today, powering everything from billboards to banner ads to native mobile apps with real time content from brands and consumers. We believe the future of brand marketing is visual and our tools to manage, measure and drive engagement have become essential for brand marketers. Chute works with some of the world’s biggest brands and publishers including NBC News, Turner, Condé Nast, the NBA, New York Times, Taylor Made, Samsung and House of Blues Entertainment.

The Chute Studio is our internal startup which helps Chute deliver custom applications and services to our growing customer base.

The Studio are based in Meia Praia, Itapema/SC, minutes away from Balneário Camboriú, Bombinhas and Florianópolis.

To find out more, head to our life at Chute video and see for yourself: https://www.youtube.com/watch?v=Xn1zRE5b3Ic.

@ozeias
ozeias / web-developer.md
Last active August 29, 2015 14:03
[JOB] Web developer: HTML, CSS, PHP, Javascript #jobs

About Chute

Chute is a Y Combinator company, and the most comprehensive visual brand engagement platform on the market today, powering everything from billboards to banner ads to native mobile apps with real time content from brands and consumers. We believe the future of brand marketing is visual and our tools to manage, measure and drive engagement have become essential for brand marketers. Chute works with some of the world’s biggest brands and publishers including NBC News, Turner, Condé Nast, the NBA, New York Times, Taylor Made, Samsung and House of Blues Entertainment.

The Chute Studio is our internal startup which helps Chute deliver custom applications and services to our growing customer base.

The Studio are based in Meia Praia, Itapema/SC, minutes away from Balneário Camboriú, Bombinhas and Florianópolis.

To find out more, head to our life at Chute video and see for yourself: https://www.youtube.com/watch?v=Xn1zRE5b3Ic.

@ozeias
ozeias / gist:47048
Created January 14, 2009 20:23
Nginx requirements
railsbox.org:~ ozeias$ apt-get update
railsbox.org:~ ozeias$ apt-get dist-upgrade
railsbox.org:~ ozeias$ apt-get install build-essential
railsbox.org:~ ozeias$ apt-get install vim
railsbox.org:~ ozeias$ apt-get install zlibc openssl libpcre3 libpcre3-dev libcompress-zlib-perl libpcrecpp0 pcregrep
@ozeias
ozeias / gist:47058
Created January 14, 2009 20:35
Build Nginx
railsbox.org:~ ozeias$ wget http://sysoev.ru/nginx/nginx-0.6.34.tar.gz
railsbox.org:~ ozeias$ tar xvf nginx-0.6.34.tar.gz
railsbox.org:~ ozeias$ ./configure
railsbox.org:~ ozeias$ make
railsbox.org:~ ozeias$ sudo make install
@ozeias
ozeias / nginx.conf
Created January 14, 2009 20:55
nginx.conf
## railsbox.org:~ ozeias$ vim /usr/local/nginx/conf/nginx.conf
user www-data;
worker_processes 4;
error_log /usr/local/nginx/logs/error.log;
pid /usr/local/nginx/logs/nginx.pid;
events {
worker_connections 1024;
}
railsbox.org:~ ozeias$ cd /etc/init.d
railsbox.org:~ ozeias$ sudo update-rc.d spawn-fcgi defaults
@ozeias
ozeias / php-fpm.conf
Created January 15, 2009 16:13
choosing the user php-cgi should run
## railsbox.org:~ ozeias$ sudo vim /usr/local/etc/php-fpm.conf
:63
www-data
:66
www-data
## railsbox.org:~ ozeias$ vim /usr/local/nginx/conf/vhosts/example.com.conf
# This is for a WordPress installed at /var/www/example.com/blog, and accessed at http://example.com/blog
server {
listen 80;
server_name example.com;
root /var/www/example.com;
index index.php;
access_log /usr/local/nginx/logs/example.com.access.log;
@ozeias
ozeias / nginx.sh
Created January 14, 2009 21:04
starts nginx using start-stop-daemon
## railsbox.org:~ ozeias$ vim /etc/init.d/nginx
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server