Skip to content

Instantly share code, notes, and snippets.

View iurisilvio's full-sized avatar

Iuri de Silvio iurisilvio

View GitHub Profile
@ramalho
ramalho / on the bash shell...
Created November 21, 2011 21:23
from 0 to Web in 35 lines
luciano@vogon:~$ sudo easy_install bottle
[sudo] password for luciano:
Searching for bottle
Reading http://pypi.python.org/simple/bottle/
Reading http://bottlepy.org/
[...]
Reading http://github.com/defnull/bottle
Best match: bottle 0.9.7
Downloading http://pypi.python.org/packages/source/b/bottle/bottle-0.9.7.tar.gz#md5=eb4faa6a519251928e4bb737db4217ae
Processing bottle-0.9.7.tar.gz
@starenka
starenka / .gitignore
Created September 18, 2011 20:02
fabfile to deploy flask app to nginx/supervisor/uwsgi stack
.idea/*
*.pyc
@ssbarnea
ssbarnea / mysql-convert-utf8.py
Created July 6, 2011 18:48
Script to convert a a database to use utf8 encoding
#! /usr/bin/env python
import MySQLdb
host = "localhost"
passwd = ""
user = "root"
dbname = "mydbname"
db = MySQLdb.connect(host=host, user=user, passwd=passwd, db=dbname)
cursor = db.cursor()
@elivz
elivz / wordpress-w3tc-site.conf
Created March 20, 2011 18:06
Nginx configuration for WordPress with W3 Total Cache plugin. See http://elivz.com/blog/single/wordpress_with_w3tc_on_nginx/
server {
# Redirect yoursite.com to www.yoursite.com
server_name yoursite.com;
rewrite ^(.*) http://www.yoursite.com$1 permanent;
}
server {
# Tell nginx to handle requests for the www.yoursite.com domain
server_name www.yoursite.com;