Instantly share code, notes, and snippets.

View Twilight (SL) (Flake8Lint).tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0">
<dict>
<key>author</key>
<string>Michael Sheets</string>
<key>name</key>
<string>Twilight</string>
<key>settings</key>
<array>
View robinhood_auth_cred_finder.js
// a reference for getting the robinhood API bearer token
// returns a jquery promise. really is this broken...
// in CONSOLE need jquery too..
var __ss = document.createElement("script");__ss.onload=load_example;__ss.src="https://code.jquery.com/jquery-3.3.1.min.js";document.body.appendChild(__ss);
/**
Reference
If you want to hack on RobinHood in the browser, you'll need auth.
View minimal_.js
'use strict';
/**
ATTENTION: This is moved to https://github.com/gtzilla/minimal_.js
minimal_.js
minimal_
Minimal Underscore Template Build System, version 0.0.1
View README.md

Wireless Access Point

The is a collection of files that I used to create a Wireless access point that tunnels traffic through a socks5 proxy using tun2socks, hostapd, dnsmasq. This was done on a debian system, specifically Proxmox VE. The underlying hardware is an Intel Nuc. The wireless card currently only handles wireless G traffic. Testing "a" wireless resulted in the wireless interface not coming up. This could be merely user error. More information on setting hg_mode in hostapd.conf

This took approximately two days to setup corretly. The tutorials that address how-to create an access point, as well as how-to use tun2socks varied considerably. I was finally able to cobble together a working prototype that is able to tunnel traffic from my wireless access point through any SSH connection that can enable socks5 proxy.

View keybase.md

Keybase proof

I hereby claim:

  • I am gtzilla on github.
  • I am gtzilla (https://keybase.io/gtzilla) on keybase.
  • I have a public key ASC0eYdxLw4KSr9EKFTSHJsh46iOPYcY6z7WHp0niACFmgo

To claim this, I am signing this object:

View helpers.js
;(function(window) {
'use strict';
/**
filename: helpers.js
author: gregory tomlinson
license: MIT
Be a "utility" helper method
file that is namespaced to 'helpers'
View Contract Killer 3.md

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

View regex_compile_test2.js
var raw_str_regex = "-([a-zA-Z0-9_]+)$";
var regex = new RegExp(raw_str_regex, "gm");
var lst = [
"this is -not",
"this is -not",
"this is -not",
"this is -not",
"this is -not",
"this is -not"
View regex_compile_test.js
var raw_str_regex = "(?:\\s|^)((?:\!|\-)\\w+)";
var regex = new RegExp(raw_str_regex, "gm");
var lst = [
"this is !not",
View arity_check.js
exports.arity_decorator = function(fun) {
function wrapped() {
if(arguments.length != fun.length)
throw new Error("Y U NO USE RIGHT?!")
fun.apply(this, arguments)
}
return wrapped;
}