Skip to content

Instantly share code, notes, and snippets.

@numberten
numberten / copycat.py
Last active September 30, 2015 11:51
A python script for generating shellcode that copies argv[1] to argv[2].
#!/usr/bin/python
import sys
"""
Takes an absolute path and generates x86-32 shellcode for copying the file
at that location to /tmp/outfile
"""
if len(sys.argv) != 3:
@numberten
numberten / xmonad.hs
Created June 2, 2014 04:51
my xmonad config
import System.IO (hPutStrLn)
import XMonad
import XMonad.Actions.SpawnOn
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Layout.NoBorders
import XMonad.Util.EZConfig(additionalKeys)
import XMonad.Util.Run(spawnPipe)
@numberten
numberten / gist.pl
Created October 17, 2013 06:16
A compact perl script for gisting files from the command line.
#!/usr/bin/perl
use Getopt::Long;
#Parse flags using Getopt::Long.
my $desc = '';
my $public = 0;
my $user = '';
my $verbose = 0;
GetOptions ('desc:s' => \$desc,
'public' => \$public,