Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Williams nikdoof

View GitHub Profile
View bugreport.pl
#!/usr/local/bin/perl
# Basic mailer/bug report perl
# Copyright argh@dimension.spodnet.uk.com 1999
require "cgi-lib.pl";
# change this to the location of sendmail on your system
# this should be standard for linux
$SENDMAIL = "/usr/lib/sendmail -t";
View Keys.pub
BEGIN MESSAGE.
NB1sabvmBKIFxW9 9l07JKfovAM0wMT kxKbMt9uYIqyI3E Qz5vOg5Svz9IvKi
jKYhQ9nJWYYwpR1 SqvhAaiucj4TCKq 6Xr2MZHgg6QAepI 8EZA9R5CFdZqjRq
vT1weG9MuSY4iQ6 2KxGqSypvkCg6bm rfBPQV2Djpd3eNQ 4XWdZY0Px6HMjwH
q4ZHVkp6qY8gve0 XJHL4k2COoattuE 7Duug2IP.
END MESSAGE.
View Keybase.md

Keybase proof

I hereby claim:

  • I am nikdoof on github.
  • I am nikdoof (https://keybase.io/nikdoof) on keybase.
  • I have a public key ASDlkYOw93cu3GgMht95n3r6XfL0Ebl9Pb79iaPTTE12AQo

To claim this, I am signing this object:

@nikdoof
nikdoof / pmotd20140307.py
Last active Aug 29, 2015
Problem Of The Day 2014/03/07 - Matrix Rotation
View pmotd20140307.py
# Problem of the Day - 2014/03/07
# http://www.problemotd.com/problem/matrix-rotation/
#
# By Andrew Williams
from datetime import datetime
start = [[1,2,3,4,5],
[6,7,8,9,10],
[11,12,13,14,15],
@nikdoof
nikdoof / pmotd20130306.py
Last active Aug 29, 2015
Brute force solver for Problem Of The Day 2014/03/06
View pmotd20130306.py
# Vigenere Cipher brute forcer
#
# Solution to http://www.problemotd.com/problem/vigenere-cipher/
# By Andrew Williams (github.com/nikdoof)
import itertools, string
alpha = string.ascii_lowercase
def vigenere_encode(text, key):
@nikdoof
nikdoof / sendim.py
Created Oct 8, 2012
Send a IM from Android with SL4A and Python
View sendim.py
import sys, xmpp
import android
droid = android.Android()
# Default configuration options
config = {
'server': ('talk.google.com', 5223),
'IM_PRIORITY': 0,
'IM_TYPE': 'chat',
'IM_STATUS': 'Quick message...',
@nikdoof
nikdoof / mkv2mp4.sh
Created Oct 7, 2012
Script to remux MKVs to MP4s
View mkv2mp4.sh
#!/bin/bash
if [ "$1" == "" ]; then
echo "Usage: $0 <file>"
exit 0
fi
tempdir="/home/torrent/temp"
MKTMP="mktemp -u -p ${tempdir}"
You can’t perform that action at this time.