Skip to content

Instantly share code, notes, and snippets.

View michaelkeevildown's full-sized avatar

Michael Down michaelkeevildown

View GitHub Profile
@michaelkeevildown
michaelkeevildown / ssh-tunnel.md
Last active June 24, 2018 14:05
Plex SSH Tunnel
@michaelkeevildown
michaelkeevildown / ip.py
Created June 9, 2016 12:50
IP to BigInt
def ip_to_bigint(ip):
ip_parts = ip.split('.')
part_1 = int(ip_parts[0]) * 16777216
part_2 = int(ip_parts[1]) * 65536
part_3 = int(ip_parts[2]) * 256
part_4 = int(ip_parts[3])
bigint_ip = part_1 + part_2 + part_3 + part_4
@michaelkeevildown
michaelkeevildown / .gitignore
Created June 13, 2016 10:12
OSX .gitignore
*.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
@michaelkeevildown
michaelkeevildown / stop-itunes.sh
Created June 13, 2016 17:41
Stop iTunes Opening on OSX when hitting Play button on Keyboard
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
# branch_name = New branch not MASTER e.g. new_dev
git checkout {branch_name}
git merge -s ours master
git checkout master
git merge {branch_name}
@michaelkeevildown
michaelkeevildown / finder-cleanup.sh
Created June 13, 2016 17:44
Clean Up Finder's "Open With" Menu
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
@michaelkeevildown
michaelkeevildown / ssl-transmission-nginx.conf
Created June 13, 2016 18:05
SSL Transmission Nginx Config
server {
listen 80 default_server;
server_name domain.com;
rewrite ^ https://$server_name$request_uri? permanent;
}
server {
listen 443 default_server;
server_name domain.com;
@michaelkeevildown
michaelkeevildown / opennlp-trainer.txt
Last active September 15, 2022 23:49
OpenNLP TokenNameFinderTrainer Example
# tested on opennlp 1.5.3
# download here: http://apache.mirror.anlx.net/opennlp/opennlp-1.5.3/apache-opennlp-1.5.3-bin.zip
./bin/opennlp TokenNameFinderTrainer \
-lang en \
-encoding utf-8 \
-iterations 50 \
-type person \
-model names.bin \
-data test-data-names.txt
@michaelkeevildown
michaelkeevildown / alienthreat-api-request.txt
Last active June 15, 2016 08:50
AlienTheat API Example
/api/v1/pulses/activity/?modified_since=2016-04-25T22:49:03.704867&limit=10&page=1
{
"count": 487,
"next": "https://otx.alienvault.com/api/v1/pulses/activity?page=2",
"previous": null,
"results": [
{
"id": "5760336e2957b90134ede223",
"name": "Intrusion into the Democratic National Committee",
@michaelkeevildown
michaelkeevildown / keybase.md
Last active September 20, 2016 16:33
Keybase Public Identity

Keybase proof

I hereby claim:

  • I am michaelkeevildown on github.
  • I am mkd (https://keybase.io/mkd) on keybase.
  • I have a public key whose fingerprint is 8A8A 2964 F4C5 4F97 EC17 7D0E 2E5B 95B6 8D3D 6F7B

To claim this, I am signing this object: