Skip to content

Instantly share code, notes, and snippets.

@adhipg
adhipg / how_to.md
Created March 20, 2017 17:13 — forked from rskelley9/how_to.md
Workaround: Connect your Chromecast to a Hotel Wireless Network

About

I recently relocated for new employment. I've been staying in an extended stay hotel for about 3 weeks now. The hotel I'm staying in gives its guests free Wifi access. However, it requires users to accept terms and conditions on a splash page via browser interface before they can use the network. This makes it difficult to use my Chromecast with the network, as it doesn't have a means of accessing tht splash page. While I could call the IT help line, I decided to explore a work-around.

Like many networks, my hotel's network attempts to improve security by using MAC address filtering. Luckily, Mac OS X (10.4 - 10.10) makes it very easy to spoof your network card's MAC address.

Here's how to add a devices like Chromecast, AppleTV, Roku to a wireless network that requires a browser to authenticate and accept terms and conditions.

Before You Start

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@adhipg
adhipg / .gitignore
Created January 22, 2015 14:04
Ignore everything but a certain subdirectory
*
!.gitignore
!/wp-content
/wp-content/*
!/wp-content/themes
/wp-content/themes/*
!/wp-content/themes/raison-winetrust/
{
"491289025" : "ijinshan-kappmarket://",
"301521403" : "fb103361823069955://",
"492178411" : "ils492178411://",
"346142396" : "fb234434003713://",
"310633997" : "whatsapp://",
"370614765" : "com.condenet.newyorker://",
"325058491" : "rnmddisco://",
"382952264" : "epichttp://",
"477048487" : "predictwind://",

Keybase proof

I hereby claim:

  • I am adhipg on github.
  • I am adhipg (https://keybase.io/adhipg) on keybase.
  • I have a public key whose fingerprint is 5E62 8E26 72D6 C581 8F6F 33F5 AFB8 5A15 777F 6EF7

To claim this, I am signing this object:

set -g default-terminal "screen-256color"
set-option -g prefix C-a
unbind C-b
# Ensure that we can send Ctrl-A to other apps
bind C-a send-prefix
set -g status-keys vi
{
"email": "Some email address documentation",
"email": "[email protected]",
"age": "some documentation about age",
"age": 23
}
@adhipg
adhipg / toggl.js
Created February 10, 2013 10:44
Returns a time formatted in H:mm if there is an active timer running in Toggl. I use this to add currently running timers to my `tmux-powerline`
#!/usr/bin/env node
var https = require('https');
var options = {
hostname: 'www.toggl.com',
path: '/api/v6/time_entries.json',
headers: {
'Content-Type': 'application/json'
},
auth: "YOUR_API_TOKEN:api_token"
};
@adhipg
adhipg / gist:3818038
Created October 2, 2012 10:20
Delete all branches that have already been merged into currently checked out branch
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d