Skip to content

Instantly share code, notes, and snippets.

View ejemba's full-sized avatar

Epo Jemba ejemba

  • Kametic
  • France
View GitHub Profile
@ejemba
ejemba / database.go
Created October 7, 2015 16:41
Getting started with Cayley + Go API
package main
import (
"errors"
"fmt"
"os"
"github.com/google/cayley"
"github.com/google/cayley/graph"
_ "github.com/google/cayley/graph/bolt"
[os:children]
os-masters
os-nodes
[os:vars]
ansible_ssh_user=root
openshift_use_openshift_sdn=True
openshift_debug_level=4
openshift_deployment_type=origin
@ejemba
ejemba / meetup.go
Last active August 29, 2015 14:06 — forked from temoto/meetup.go
// Meetup is a micro proxy program that enables to connect two endpoints via TCP sockets.
// Either of endpoint may listen or connect.
//
// Example usage:
// - you have a faulty PHP application and you want to debug it with xdebug
// - xdebug can connect to your machine:9000, but you are behind NAT
// - so you run `meetup -listen1=:9000 -listen2=:9001` on the application server
// - and another `meetup -connect1=appserver:9001 -connect=localhost:9000` on your machine
// First instance listens two ports and when a connection arrives on both, it creates
// a bidirectional buffered pipe between the two. The other instance connects to