Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Doing stuff

Alexandre Dulaunoy adulau

👨‍💻
Doing stuff
View GitHub Profile
@adulau
adulau / backscatter.md
Created Oct 2, 2017 — forked from anonymous/backscatter.md
Backscatter analysis - North Korea
View backscatter.md
175.45.176.0/24
175.45.177.0/24
175.45.178.0/24
175.45.179.0/24
@adulau
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
#!/bin/bash
if [ "$1" == "" ]; then
echo "Usage: $0 [output-path]"
exit 1
fi
TABLES=`mysql -B -N -e "select TABLE_NAME from information_schema.TABLES where TABLE_SCHEMA='$1'"`
OUT="$2"
@adulau
adulau / pr.md
Created Sep 18, 2012 — forked from piscisaureus/pr.md
Checkout github pull requests locally
View pr.md

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 = git@github.com:joyent/node.git

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
adulau / tabula_recta.py
Created Feb 11, 2011 — forked from maxcountryman/tabula_recta.py
Generates a string from a randomly generated tabula recta that is hopefully secure.
View tabula_recta.py
#! /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