This file contains 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 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 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 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 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 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 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 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
mount: block device /dev/shm is write-protected, mounting read-only | |
mount: cannot mount block device /dev/shm read-only | |
dpkg: error processing initscripts (--configure): | |
subprocess installed post-installation script returned error exit status 1 | |
dpkg: dependency problems prevent configuration of ifupdown: | |
ifupdown depends on initscripts (>= 2.88dsf-13.3); however: | |
Package initscripts is not configured yet. | |
dpkg: error processing ifupdown (--configure): | |
dependency problems - leaving unconfigured | |
dpkg: dependency problems prevent configuration of procps: |
This file contains 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/bash | |
aws cloudformation create-stack --stack-name test-vpc --template-body file://vpc.json |