Skip to content

Instantly share code, notes, and snippets.

@olavmrk
olavmrk / vars.php
Created May 28, 2015 17:33
Dump PHP superglobals
<?php
header('Content-Type: text/plain; charset=utf-8');
foreach (array('_GET', '_POST', '_REQUEST', '_COOKIE', '_SERVER', '_ENV') as $v) {
echo '$' . $v . ' = ' . var_export($$v, TRUE) . ";\n";
}
@olavmrk
olavmrk / phonemes.py
Last active October 23, 2015 10:52
Python script to generate string of phonemes.
#!/usr/bin/env python
#
# Generate a string of phonemes.
#
# Based on the pwgen utility, however this is not
# suitable for creating passwords.
#
# pwgen: http://sourceforge.net/projects/pwgen/
#
@olavmrk
olavmrk / wireshark-remote.sh
Created January 7, 2015 15:59
Run wireshark with remote dump over ssh
wireshark -k -i <(ssh root@dumphost.example.org tcpdump -U -w - host somehost.example.org and port 80)