Skip to content

Instantly share code, notes, and snippets.

View juniovitorino's full-sized avatar
🏠
Working from home

Junio Vitorino juniovitorino

🏠
Working from home
View GitHub Profile
@juniovitorino
juniovitorino / gist:4642436
Last active December 11, 2015 18:38
Rails: Postgres database connection in Rails 3
development:
adapter: postgresql
encoding: unicode
database: your_database_name
pool: 5
username: your_username
password: your_password
# Connect on a TCP socket. Omitted by default since the client uses a
# domain socket that doesn't need configuration. Windows does not have
@juniovitorino
juniovitorino / gist:4642417
Last active December 11, 2015 18:38
Rails: SQLite database connection in Rails 3
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
@juniovitorino
juniovitorino / gist:4642403
Last active December 11, 2015 18:38
Rails: MySQL database connection in Rails 3
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: your_database_name
pool: 5
username: your_username
password: your_password
socket: /tmp/mysql.sock
@juniovitorino
juniovitorino / gist:4252111
Last active October 13, 2015 20:37
CSS: WordPress default style.css
/*
Theme Name:
Theme URI: http://
Description:
Author:
Author URI: http://
Version:
Tags:
License:
#!/bin/bash
OUTPUT_PATH='~/app/webroot/files/depoimentos/flv'
MOVIES_PATH='~/app/webroot/files/depoimentos/videos'
ORIGINAL_PATH='~/app/webroot/files/depoimentos/videos_originais'
cd $MOVIES_PATH
for filename in *.*
do
if [ -e $filename ]; then