Skip to content

Instantly share code, notes, and snippets.

View gmvi's full-sized avatar

George Matter gmvi

  • Greater Seattle Area
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gmvi on github.
  • I am 6eorge (https://keybase.io/6eorge) on keybase.
  • I have a public key whose fingerprint is 1D8B 84F1 090E AEB4 6194 E304 D9BA 5EC1 84D6 5E3A

To claim this, I am signing this object:

@gmvi
gmvi / client.conf
Last active July 19, 2017 09:20
OpenVPN setup (these live in /etc/openvpn)
client
dev tun
proto udp
remote nl.privateinternetaccess.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/ca.crt
tls-client
@gmvi
gmvi / sublime_user_keymap.js
Last active September 15, 2015 22:00
Sublime User Keymap
[
// The following mappings standardize certain actions across windows and mac to facilitate muscle memory
{ "keys": ["alt+w"], "command": "close" },
{ "keys": ["alt+t"], "command": "new_file" },
{ "keys": ["alt+shift+t"], "command": "reopen_last_file" },
{ "keys": ["alt+y"], "command": "redo" },
{ "keys": ["alt+o"], "command": "prompt_open_file" },
{ "keys": ["alt+]"], "command": "indent" },
{ "keys": ["alt+["], "command": "unindent" },
{ "keys": ["alt+shift+]"], "command": "next_view" },
@gmvi
gmvi / Vera-Website-Tasks.md
Last active August 29, 2015 14:05
Task List for migrating theveraproject.org to wordpress

Custom Theme (structure and styling)

  • style main-content text
    • evaluate how current styling and header-tags interact
    • disable unused header tags in editor
    • set editor styling to match
  • create search page

Code for Custom Theme

  • gallery shows
  • get do206 to fix their caching issues
@gmvi
gmvi / LastFMPirate.user.js
Created May 27, 2014 07:02
Adds The Pirate Bay search links to the buy buttons in Last.FM
// ==UserScript==
// @name Last.fm Pirate Search
// @author MadhATTER6
// @description Adds Pirate Bay search links to the buy buttons in Last.FM
// @version 2.2
// @updateURL https://userscripts.org/scripts/source/138251.user.js
// @match http://last.fm/*
// @match http://www.last.fm/*
// ==/UserScript==
@gmvi
gmvi / promise_nodeify.js
Created March 17, 2014 00:41
Promise.nodeify(callback) to let promise-based libraries also accept callbacks
Promise.prototype.nodeify = function nodeify(fn) {
return this.then(function nodeify_resolve(result) {
fn(null, result);
return result;
}, function nodeify_reject(err) {
fn(err);
throw err;
});
}
## You can use hide_arg_tooltip(func) to get an object which will act like a
## function, but will not have an argument tooltip in IDLE. The docstring will
## still be shown, however. This is similar to how the default help and quit
## objects work.
##
## You can also use it as a function decorator
def hide_arg_tooltip(func): return _function(func)
class _function:
@gmvi
gmvi / vendttp_guest_login.txt
Last active December 22, 2015 06:49
guest login patch for vendttp client-server communication
VendTTP Client-Server Communication
(guest-login patch based on revision 3.2)
=========================================
new guest log-in request:
{
"type" : "guest"
}
no confirmation response
@gmvi
gmvi / vendttp_usernames_and_pins.md
Last active December 21, 2015 11:09
usernames and PINs ideas for github.com/jizzyjugs/VendTTP

###login types:

  • username with pin
  • username with pin linked to srnd account
  • srnd-linked rfid
  • srnd-linked rfid with pin
  • guest account (special username 'guest'; not entered into database)

##sqlite create table statement

CREATE TABLE accounts (id integer primary key, username text unique, srnd text unique, pin text, pin_on_rfid boolean, balance real,
@gmvi
gmvi / vendttp_comm_specs.txt
Last active December 21, 2015 05:18
Specs for VendTTP Client-to-Server Communication
Specs for VendTTP Client-to-Server Communication
revision 3.3
==============================================================
Notes:
* <"asdf"|"uiop"> means either "asdf" or "uiop"
* ( ) means attibute may be null
* ~ prefix means non-literal placeholder value
* all requests should be shorter than 512 characters (this may be removed in the future)
* the client should not send a request before receiving the response to a previous non-stand-alone request