Skip to content

Instantly share code, notes, and snippets.

@gabrielbauman
Created March 10, 2014 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielbauman/9461433 to your computer and use it in GitHub Desktop.
Save gabrielbauman/9461433 to your computer and use it in GitHub Desktop.
Run this whenever your IP changes to tell unblock.us about your new address. Fixes weird Netflix "internal errors", the Roku android app not signing in properly, and other glitchiness.
#!/bin/bash
# Set this to the email address you use with unblock.us.
UNBLOCKUS_EMAIL="you@domain.com"
curl \
--url http://check.unblock-us.com/ \
--form "validated=1&email=${UNBLOCKUS_EMAIL}&rid=0" \
--user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Fi27.0" -q \
&> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment