Skip to content

Instantly share code, notes, and snippets.

View lonelycode's full-sized avatar

Martin Buhr lonelycode

View GitHub Profile
### Prerequisites:
1. You must have a client set up in Auth0, make sure you know the client ID
2. You must have a user set up in Auth0
### Step 1: Log in
Point your browser at the Auth0 login URL, it will be something like the below, let's make sure we are also including all the details needed for the first leg of the OAuth leg:
```
@lonelycode
lonelycode / servers.xml
Created June 1, 2016 11:13
XML transform templates / Dot-notation Demo
<?xml version="1.0" encoding="utf-8"?>
<servers version="1">
<server>
<serverName>Shanghai_VPN</serverName>
<serverIP>127.0.0.1</serverIP>
</server>
<server>
<serverName>Beijing_VPN</serverName>
<serverIP>127.0.0.2</serverIP>
</server>
@lonelycode
lonelycode / pie_master_exampe_with_python.go
Created May 28, 2015 09:24
Pie demo master using pie_python_plugin.py as it's plugin
package main
import (
"fmt"
"log"
"net/rpc"
"net/rpc/jsonrpc"
"os"
"time"
@lonelycode
lonelycode / pie_python_plugin.py
Last active August 29, 2015 14:22
A sample asynchronous RPC server plugin over STDIO in python for use with natefinch/pie Golang Plugin library.
#!/usr/bin/python
# Description: A sample asynchronous RPC server plugin over STDIO in python
from __future__ import print_function
import sys
import time
import pyjsonrpc
import threading
import Queue
@lonelycode
lonelycode / pie_python_plugin.py
Last active August 29, 2015 14:21
A plugin example for pie written in Python. Note: pyjsonrpc doesn;t work well with ID's of 0, needed to mod source to get it to work.
#!/usr/bin/python
from __future__ import print_function
import sys
import time
import pyjsonrpc
# pyjsonrpc has a bug in that it does not support id's of 0, you will need to modify it to work, change lines 214 in rpclib.py from:
```
@lonelycode
lonelycode / tyk_quickstart.sh
Last active December 28, 2022 14:52
Tyk Demo Setup Script
#! /bin/bash
# This script will set up a full tyk environment on your machine
# and also create a demo user for you with one command
# USAGE
# -----
#
# $> ./tyk_quickstart.sh {IP ADDRESS OF DOCKER VM}
@lonelycode
lonelycode / keybase.md
Created September 22, 2014 14:55
keybase.md

Keybase proof

I hereby claim:

  • I am lonelycode on github.
  • I am martinbuhr (https://keybase.io/martinbuhr) on keybase.
  • I have a public key whose fingerprint is 7BCD 04EC B127 891A 7B39 3BE7 858A 438A DCB9 52A0

To claim this, I am signing this object:

@lonelycode
lonelycode / gist:7022336
Last active December 25, 2015 18:39
gdb output of segfault for positioning a screen outside the bounds of external primary monitor on OSX 10.8.3
sh-3.2$ gdb-kivy tethered.py
GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb 6 22:51:23 UTC 2013)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ... done
(gdb) run