This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"github.com/gorilla/mux" | |
"github.com/gorilla/context" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"net/http" | |
"net/http/httptest" | |
"os" | |
"github.com/gorilla/mux" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
v8 "github.com/voxelbrain/go-v8" | |
) | |
func main() { | |
ctx := v8.NewContext() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Fatal error in HandleScope::HandleScope | |
# Entering the V8 API without proper locking in place | |
# | |
SIGABRT: abort | |
pc: 0x7fff8c1c8212 | |
goroutine 1 [chan receive]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
events { | |
worker_connections 1024; | |
} | |
# http { | |
# server { | |
# listen localhost:8080; | |
# server_name elasticpass.surmair.de; | |
# location / { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script started on Thu Mar 21 13:39:13 2013 | |
[1m[7m%[27m[1m[0m | |
]2;surma@Charlie: ~]1;~ | |
[0m[27m[24m[J[31m┌[[01;37msurma[00m[31m@[01;37mCharlie[00m[31m] [[01;37m/dev/ttys003[00m[31m] | |
[31m└[[01;37m~[00m[31m]>[00m [K | |
bck-i-search: _[K[A[9Dscri[4mp[24mt log.txt[1Bp_[A./Wi[24mneskin.a[4mp[4mp[24m[1Bp_[A[1C[12D [24m [24m [1B | |
[K[A[6CCCC=/usr/bin/clang pip install mitmproxy[1B | |
]2;CC=/usr/bin/clang pip install mitmproxy]1;pipDownloading/unpacking mitmproxy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# X-Start-Before: ssh | |
# Required-Start: $local_fs $network $syslog | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: | |
### END INIT INFO | |
case "$1" in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x.forEach(function(val){ | |
var tmp = val.split(";"); | |
var min = [5000, 5000]; | |
var max = [0, 0]; | |
var idx = 0; | |
tmp[0].split(",").forEach(function(val) { | |
val = parseInt(val); | |
if(val < min[idx]) { | |
min[idx] = val; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Some playing around with ragel. | |
// Install ragel (e.g. `brew install ragel`) | |
// Compile with `ragel -Z json.rl` | |
package main | |
import ( | |
"fmt" | |
) | |
// Ragel expects these variables to be declared in the host program |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
MAINTAINER Alexander Surma <[email protected]> | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get install -y git mercurial bzr wget | |
RUN wget -O - https://go.googlecode.com/files/go1.1.1.linux-amd64.tar.gz | tar xzf - -C /usr/local | |
RUN (echo "export PATH=/usr/local/go/bin:\$PATH"; echo "export GOPATH=$HOME"; cat /etc/bash.bashrc) > /root/tmp |