Skip to content

Instantly share code, notes, and snippets.

View TooTallNate's full-sized avatar

Nathan Rajlich TooTallNate

View GitHub Profile
View Makefile
# Hello, and welcome to makefile basics.
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
# Once you're done here, go to
# to learn SOOOO much more.

Stealing WiFi


This will let you access any google owned site. This includes: youtube, google cache, google translate, google search, gmail, google news, etc.

  • Install the HTTPS Everywhere extension
  • Add these rules to your /etc/hosts file
kujohn /
Last active January 21, 2022 02:36
Port forwarding in Mavericks

Port Forwarding in Mavericks

Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.

####1. anchor file Create an anchor file under /etc/pf.anchors/<anchor file> with your redirection rule like:

daniel-j / spotify.js
Last active January 6, 2024 04:19
A simple node.js program to listen to Spotify tracks, albums and playlists
View spotify.js
#!/usr/bin/env node
'use strict';
This is a simple Spotify cli-based client with optional Icecast2/shout support!
It should work for non-premium users, but you must connect your Spotify account to Facebook.
$ node spotify <spotify uris> <playlist uri> <album uri> <track uri> <etc...>
View tcp-raw.js
/* does effectively this, but without all that fancy
* stream mumbo jumbo:
var net = require('net');
var server = net.createServer(function(socket) {
server.listen(PORT, function() {
TooTallNate / node_pointer.h
Last active April 7, 2016 02:03
C helper functions for wrapping and unwrapping Node Buffer instances as "pointers"
View node_pointer.h
* Helper functions for treating node Buffer instances as C "pointers".
#include "v8.h"
#include "node_buffer.h"
* Called when the "pointer" is garbage collected.
TooTallNate / stations.json
Created October 30, 2012 21:59
Icecast radio stations that are good
View stations.json
"Phish Live Radio": "",
"": "",
"4 Ever Floyd": ""
TooTallNate /
Last active October 8, 2015 18:38
Forward port 80 traffic from to port 3000 at bootup on OS X

Copy this file to: /Library/LaunchDaemons/fwd-80-to-3000.plist and then reboot:

$ sudo -s
$ curl -L > /Library/LaunchDaemons/fwd-80-to-3000.plist
$ reboot
piscisaureus /
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url =

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

TooTallNate / index.js
Created August 3, 2012 21:09
The "Kart Randomizer": mode, characters, and levels randomizer for Mario Kart 64
View index.js
var characters = [
'Donkey Kong',