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
| start on startup | |
| chdir /app/current | |
| script | |
| eval $(cat /proc/1/environ | tr "\000" "\n" | sed 's/=/="/' | sed 's/$/"/' | while read env; do echo export $env; done) | |
| bundle exec unicorn -c ./config/unicorn_config.rb | |
| end script |
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
| $ cat test.go | |
| package main | |
| import ( | |
| "log" | |
| "math/rand" | |
| ) | |
| func main() { | |
| log.Print(rand.Int()) |
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
| class Indexer | |
| def initialize(clazz) | |
| @clazz = clazz | |
| end | |
| def index(line) | |
| i = @clazz.new | |
| i.parse(line) | |
| i | |
| end |
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 ( | |
| "net/http" | |
| "os" | |
| "syscall" | |
| ) | |
| func main() { | |
| var proto string |
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
| $ jb | |
| USAGE | |
| jb backups create id Create manual backup from box | |
| jb backups list List all running boxes | |
| jb distributions list | |
| jb plans list | |
| jb servers clone id | |
| --plan-id DEFAULT: "20" Plan id | |
| --name DEFAULT: "" Name of the new box | |
| jb servers create Create new JiffyBox |
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
| command! Gotags :call Gotags() | |
| function! Gotags() | |
| exec ':silent !gotags $(find . -name "*.go" | grep -v "/test/" | xargs) 2> /dev/null > tags.tmp && mv tags.tmp tags' | |
| redraw! | |
| endfunction |
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
| Committed_AS: 3607224 kB | |
| Committed_AS: 3872632 kB | |
| Committed_AS: 3607156 kB |
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 | |
| RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl build-essential git-core | |
| RUN if [ ! $(grep universe /etc/apt/sources.list) ]; then sed 's/main$/main universe/' -i /etc/apt/sources.list && apt-get update; fi | |
| RUN DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-6-jdk | |
| RUN mkdir -p /opt/downloads && cd /opt/downloads && curl -SsfLO "http://www.apache.org/dist/hbase/hbase-0.94.10/hbase-0.94.10.tar.gz" | |
| RUN cd /opt && tar xvfz /opt/downloads/hbase-0.94.10.tar.gz | |
| RUN mkdir -p /data/hbase | |
| RUN mkdir -p /root/.profile.d | |
| RUN mkdir -p /root && echo Zm9yIHByb2ZpbGVfcGF0aCBpbiAkKGZpbmQgL3Jvb3QvLnByb2ZpbGUuZC8gLXR5cGUgZik7IGRvIHNvdXJjZSAkcHJvZmlsZV9wYXRoOyBkb25lCg== | base64 -d > /tmp/wunderscale.e4e4b9a9fbb0a7813a4707407606ccb195999effc1d27eac75a879113a4a017b && mv /tmp/wunderscale.e4e4b9a9fbb0a7813a4707407606ccb195999effc1d27eac75a879113a4a017b /root/.profile | |
| RUN mkdir -p /root/.profile.d && echo ZXhwb3J0IEpBVkFfSE9NRT0vdXNyL2xpYi9qdm0vamF2YS02LW9wZW5qZGstYW1kNjQK | base64 -d > /tmp/wundersc |
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
| default: | |
| @go get code.google.com/p/go.crypto/ssh | |
| go build -o bin/test_ssh_client *.go |