Skip to content

Instantly share code, notes, and snippets.

View Zitrax's full-sized avatar
👽

Daniel Bengtsson Zitrax

👽
View GitHub Profile
@Zitrax
Zitrax / gist:3857270
Created October 9, 2012 08:01
Find unused perl functions
#!/bin/bash
# Note this requires git compiled with USE_LIBPCRE
# to be able to use -P to git grep.
# And currently for some reason the regexp causes a segmentation fault
# when searching for some functions.
NCORES=`grep -c ^processor /proc/cpuinfo`
import time
import sqlite3
import sqlalchemy
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
Base = declarative_base()
DBSession = scoped_session(sessionmaker())