Skip to content

Instantly share code, notes, and snippets.

View michaelkeevildown's full-sized avatar

Michael Down michaelkeevildown

View GitHub Profile
@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 / 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 / ssh-tunnel.md
Last active June 24, 2018 14:05
Plex SSH Tunnel