Skip to content

Instantly share code, notes, and snippets.

@carloe
Created November 4, 2012 00:25
Show Gist options
  • Save carloe/4009549 to your computer and use it in GitHub Desktop.
Save carloe/4009549 to your computer and use it in GitHub Desktop.
Use text expander to insert your external ip
#!/usr/bin/env ruby -wKU
require 'open-uri'
print (URI.parse('http://icanhazip.com').read).strip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment