Skip to content

Instantly share code, notes, and snippets.

View diegueus9's full-sized avatar

Diego Andres Sanabria Martin diegueus9

View GitHub Profile
@diegueus9
diegueus9 / pg2mysql.py
Created December 15, 2011 22:49
Python script for migrate database from postgres to mysql
#! /usr/bin/env python
import os
import psycopg2
import MySQLdb
PG = {
'name' : 'moodle_rvt_sociales',
'user' : 'diegueus9',
'pass' : 'fuseki',
'host' : 'localhost',
@diegueus9
diegueus9 / genpass.py
Created March 9, 2016 19:01
A password generator in python
import string
import sys
from random import choice
def __main__(*args, **kwargs):
try:
size = args[0][1]
choiceable = string.letters*2 + string.digits*3 + string.punctuation