Skip to content

Instantly share code, notes, and snippets.

Doing stuff

Alexandre Dulaunoy adulau

Doing stuff
View GitHub Profile
adulau /
Created Oct 2, 2017 — forked from anonymous/
Backscatter analysis - North Korea
adulau / MySQL Dump Tables
Created Nov 25, 2012 — forked from stupergenius/MySQL Dump Tables
Bash script that dumps all the tables of a given database, each table to its own file.
View MySQL Dump Tables
if [ "$1" == "" ]; then
echo "Usage: $0 [output-path]"
exit 1
TABLES=`mysql -B -N -e "select TABLE_NAME from information_schema.TABLES where TABLE_SCHEMA='$1'"`
adulau /
Created Sep 18, 2012 — forked from piscisaureus/
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url =

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

adulau /
Created Feb 11, 2011 — forked from maxcountryman/
Generates a string from a randomly generated tabula recta that is hopefully secure.
#! /usr/bin/env python
import sys
import json
import argparse
from string import uppercase, digits, letters, punctuation
from random import SystemRandom
FULL_MAP = letters + digits + punctuation