Skip to content

Instantly share code, notes, and snippets.

View gist:8087c4288d22aaa7db25
import porc
# Create client with your API key
client = porc.Client("YOUR_API_KEY")
# Example Data
collection = "users"
key = "test"
data = {
"tax_id": "",
View socket_server.rb
require 'celluloid/io'
require 'json'
# require 'celluloid/autostart'
class TestServer
include Celluloid::IO
finalizer :shutdown
def initialize(host, port)
puts "*** Starting echo server on #{host}:#{port}"
View socket_server.rb
require 'celluloid/io'
require 'json'
# require 'celluloid/autostart'
class TestServer
include Celluloid::IO
finalizer :shutdown
def initialize(host, port)
puts "*** Starting echo server on #{host}:#{port}"
View socket_server.rb
require 'celluloid/io'
require 'json'
# require 'celluloid/autostart'
class TestServer
include Celluloid::IO
finalizer :shutdown
def initialize(host, port)
puts "*** Starting echo server on #{host}:#{port}"
View keybase.md

Keybase proof

I hereby claim:

  • I am roder on github.
  • I am roder (https://keybase.io/roder) on keybase.
  • I have a public key whose fingerprint is 811C 6F2C 76FA D983 DE9D A29E 45A4 4308 4142 CD52

To claim this, I am signing this object:

View gist:6641650
{
"results":[
{
"path" : {
"collection":"people",
"key":"james",
"ref":"28f29fc9dae6372c"
},
"value":{"msg":"hello world"},
"score":0.15,
@roder
roder / gist:5428312
Created Apr 21, 2013
quick and dirty function for JSON REST APIs for your shell.
View gist:5428312
function jurl() {
case `echo $1 | tr '[a-z]' '[A-Z]'` in
"PUT"|"POST")
curl -vs -H "Content-Type: application/json" -X $1 -d "${2}" $3 | python -mjson.tool
;;
"GET"|"DELETE")
curl -vs -H "Content-Type: application/json" -X $1 $2 | python -mjson.tool
;;
*)
echo "Error: Please use of the following HTTP methods: GET, POST, PUT, DELETE."
View gist:1488602
ssh-dss AAAAB3NzaC1kc3MAAACBAOJba+6pCO6cKl3MvDctH1EQwKd+qpLtI3NhEzB3TZLDTDZ59mbThWWdeTAyFiutryysDozUeR50G0OSF0iXfCzQ++ntM/VNrUJDn72IsfEFXv24YAOVhBeM0Voq2hl34Sdcy/UdBxBWRDRbRPp/BaLrQa9ERq030TTLS4FNBG19AAAAFQCJLc5UDT0J+LayGBEhCg8gI1Gz9QAAAIAQL3q7smp3CkB6SpVHyRw4Y4GHCyiMu7qhfEz9lFhDa3OJIyPXgOV4dnIIokCze3YB97hg7cNp3tB4/istRhyoXeQ7/dr1wNCg/5pkOfq9eJJNAt0C6XiVAx7ydAKDG1HW3BU1vEoCaABzJR9S8Z5BOD9MKEPPdeuADpNXsYrbMQAAAIAoOnf+VQC2IHj5yGdMJ8jdeG3u9a8t1UTqTNfl8VwOA1sG6QLiS7HmY1SICLwLZu/7pkTOKK1wkaMPem8WoNabb1oe3ezK/VFgy5P8WifAeTWuESk7j7K65RvfUcb9yjSWf9sqZA439vJssQtC9pYUi/zlAkToC4IzvmtjXUzMxQ== jtran@ubuntu
@roder
roder / gist:1478299
Created Dec 14, 2011
Matt Heitzenroder SSH Public Key
View gist:1478299
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuvp4DliG7bRgSKEFywMLcIFefxa9h7ThH13Gp3ZnmjkwedC6KFvqVEYWMK7MO9HXYa8eLS389Cq1tPrUXnC2z9AkvFReGfg+SID+zkY+1vP5j4gJSR6RD9DxCgdT13ncUzgtoC/q76OAVImH7actvNZ9KjLH3gft3tbBMC3Xpiwhjirh+BY+ObJ4QjRK/DWyWUv7pn13wWt1jo+6lfUv4gqSzmthubWI7oUPjTyRqpSuAQf2CFPsV3s51k6JveixaS+tJ/jaCv4usZCyTTLviyh8fLCpVojYEU9S67PLqrWhjWUGuW+B2ietPMEaq5WZFyZvOVXpASeQY9PB3umgUQ== Matt Heitzenroder <mheitzenroder at gmail dot com>
View gist:1274310
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuvp4DliG7bRgSKEFywMLcIFefxa9h7ThH13Gp3ZnmjkwedC6KFvqVEYWMK7MO9HXYa8eLS389Cq1tPrUXnC2z9AkvFReGfg+SID+zkY+1vP5j4gJSR6RD9DxCgdT13ncUzgtoC/q76OAVImH7actvNZ9KjLH3gft3tbBMC3Xpiwhjirh+BY+ObJ4QjRK/DWyWUv7pn13wWt1jo+6lfUv4gqSzmthubWI7oUPjTyRqpSuAQf2CFPsV3s51k6JveixaS+tJ/jaCv4usZCyTTLviyh8fLCpVojYEU9S67PLqrWhjWUGuW+B2ietPMEaq5WZFyZvOVXpASeQY9PB3umgUQ== matt@RoderGo.local