Skip to content

Instantly share code, notes, and snippets.

Adhip Gupta adhipg

Block or report user

Report or block adhipg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
adhipg /
Created Mar 20, 2017 — forked from rskelley9/
Workaround: Connect your Chromecast to a Hotel Wireless Network


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

View Contract Killer

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 / .gitignore
Created Jan 22, 2015
Ignore everything but a certain subdirectory
View .gitignore
View gist:24fb315103941950923d
"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 ( 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:

View tmux.conf
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
View json_comments.json
"email": "Some email address documentation",
"email": "",
"age": "some documentation about age",
"age": 23
adhipg / toggl.js
Created Feb 10, 2013
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`
View toggl.js
#!/usr/bin/env node
var https = require('https');
var options = {
hostname: '',
path: '/api/v6/time_entries.json',
headers: {
'Content-Type': 'application/json'
auth: "YOUR_API_TOKEN:api_token"
adhipg / gist:3818038
Created Oct 2, 2012
Delete all branches that have already been merged into currently checked out branch
View gist:3818038
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
You can’t perform that action at this time.