Skip to content

Instantly share code, notes, and snippets.

View mizhi's full-sized avatar
🦍

Mitch Peabody mizhi

🦍
View GitHub Profile
@mizhi
mizhi / fios-ip.sh
Last active December 20, 2016 16:20
Retrieve public IP address from computer on internal home network on OS X
#! /bin/bash
# The original script was not originally written by me. I found it at rcjhawk's
# blog:
#
# http://hawknotes.blogspot.com/2010/06/finding-your-external-ip-address.html
#
# I had to do a minute of tweaking to get it running on OS X. Specifically, the
# route command on OS X doesn't print out the routing tables as it does on
# Ubuntu - the netstat command is used instead. The -n option for the echo
@mizhi
mizhi / fantasy.py
Created August 27, 2015 19:00
Solution to a silly riddle posed by my younger brother
#!/usr/bin/env python
# A BELL, ah! so sweet its chime
# An outlandish woman lost in time
# Both are key to this fantasy rhyme
# and combined could be useful in crime
#
# ETPPVVJAEHHLCF
import string