I hereby claim:
- I am zeisss on github.
- I am zeisss (https://keybase.io/zeisss) on keybase.
- I have a public key ASBmYeTfh_UmZt2E_LnUuot3iOBPzO-HHQlK55dyoen49wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Run with | |
// | |
// $ GODEBUG=http2debug=2 go test . -v | |
// | |
// for debug output | |
package main | |
import ( | |
"crypto/tls" | |
"fmt" |
/* | |
find_ip search a local copy of https://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.html#aws-ip-download for a specific IP and prints the prefix. | |
*/ | |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"net" | |
"os" |
FROM golang:1.6 | |
RUN go get github.com/nlopes/slack | |
COPY main.go /go/src/main.go | |
CMD ["go", "run", "/go/src/main.go"] |
#!/bin/sh | |
# Create the interested streams by touching: | |
# $ touch somafm_groovesalad.m3u | |
# $ touch somafm_covers.m3u | |
for x in somafm_*.m3u | |
do | |
PLAYLIST_FILE=$x | |
STREAM=$(echo $PLAYLIST_FILE | sed -e 's/^somafm_//' -e 's/\.m3u$//') | |
echo Checking $STREAM |
type Args struct { | |
Values []string `json:values` | |
} | |
type Service int | |
// {"id": 1, "method": "echo2.Echo2", "params": {"values": ["hello", "world"]}} | |
func (this *Service) Echo2(params *Args, response *string) error { | |
*response = "Hello World" | |
return nil |
// {"id": 1, "method": "echo2.Echo", "params": ["hello", "world"]} | |
package main | |
import ( | |
"log" | |
"fmt" | |
"net" | |
"net/rpc" | |
"net/rpc/jsonrpc" | |
) |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
BOX_NAME = ENV['BOX_NAME'] || "ubuntu" | |
BOX_URI = ENV['BOX_URI'] || "http://files.vagrantup.com/precise64.box" | |
VF_BOX_URI = ENV['BOX_URI'] || "http://files.vagrantup.com/precise64_vmware_fusion.box" | |
AWS_REGION = ENV['AWS_REGION'] || "us-east-1" | |
AWS_AMI = ENV['AWS_AMI'] || "ami-d0f89fb9" | |
FORWARD_DOCKER_PORTS = ENV['FORWARD_DOCKER_PORTS'] |
{application, <App Name>, | |
[{description, "<App Description>"}, | |
{vsn, "<App Version>"}, | |
{modules, [<Module List>]}, | |
{registered, [<Registered Modules]}, | |
{applications, [<Dependency List>]}, | |
{mod, {<Application Behaviour Module>, []}}]}. |
-module(editor). | |
-include_lib("eunit/include/eunit.hrl"). | |
-export([edit/2, edits/2]). | |
-type command() :: delete | {add, char()} | {insert, char()} | | |
skip | {replace, char()}. | |
%% Applies the list of commands to the given Input string and returns the resulting |