I hereby claim:
- I am mapkyca on github.
- I am mapkyca (https://keybase.io/mapkyca) on keybase.
- I have a public key ASCIDBawC_Ho4zeR5v42rPJrp_ZfMg9Q-lCpE8-InQBScwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
curl -L https://example.com/key.pgp | gpg --import |
curl http://localhost/~marcus/awstats/domain/month/awstats.localhost.downloads.html | grep 'http://your.domain/you/are/interested/in' | sed -ne 's/.*\(http[^"]*\).*/\1/p' >> /tmp/files.csv | |
cat /tmp/files.csv | sort | uniq > /tmp/sorted.csv |
wget --spider -o wget.log -e robots=off -w 1 -r -p URL |
import re | |
def callback(match): | |
return "<a href=\"http://github.com/%s>%s</a>" % (match.group(0), match.group(0)) | |
string = "this is a #test #32345 dfsdf" | |
print re.sub('#[0-9]+', callback, string) |
swaks -a -tls -q HELO -s <SERVER> -au <USER> -ap '<>' |
/** | |
* Support loading of direct checkout. | |
*/ | |
spl_autoload_register(function($class) { | |
$class = str_replace('\\', DIRECTORY_SEPARATOR, $class); | |
$segments = explode(DIRECTORY_SEPARATOR, $class); | |
$PLUGIN_NAME = $segments[1]; | |
$basedir = dirname(dirname(dirname(__FILE__))) . '/'; |
To create a patch to upload to a server via ftp/scp, containing modified files rather than a diff patch.
git diff --name-only master | xargs -i{} cp --parents {} /tmp/mypatch/
<?php | |
preg_match('/([0-9]{4}-?[0-9]{2}-?[0-9]{2}T[0-9]{2}:?[0-9]{2}:?[0-9]{2}[+-Z]?([0-9]{2,4}:?([0-9]{2})?)?)/',$text, $matches); |
#!/usr/bin/python | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |