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 | |
| # | |
| # A theme based on Steve Losh's Extravagant Prompt with vcs_info integration. | |
| # | |
| # Screenshots: | |
| # http://i.imgur.com/HyRvv.png | |
| function prompt_simple_earthy_code_precmd { | |
| # Check for untracked files or updated submodules since vcs_info does not. | |
| if [[ -n $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then |
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" | |
| "net/http/httptest" | |
| ) | |
| func main() { | |
| m := mongo{} | |
| h := handler{d: m} |
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
| # Install Homebrew (http://brew.sh) | |
| # and then install brew bundle, `brew tap Homebrew/bundle`, | |
| # and finally run `brew bundle`! | |
| # Golang | |
| brew 'glide' | |
| brew 'go' | |
| brew 'godep' | |
| brew 'graphviz' | |
| brew 'gnuplot' |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <!-- saved from url=(0013)http://cb.vu/ --> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <title>[[email protected]]~></title> | |
| <link rel="icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAQAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AOBfLwBbX14AWxgYABg8RwC/g14AGBgYAL9OJAB8KhgAfHFeAOCDUgC/g0cAGCo7AOCDXgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
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/bash | |
| # kftopic performs several Kafka utility commands on a particular running Kafka | |
| # container. See usage. | |
| function kftopic { | |
| case "_$1" in | |
| _create) | |
| docker exec $2 /bin/bash -c "\$KAFKA_HOME/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 3 --topic $3" ;; | |
| _describe) | |
| docker exec $2 /bin/bash -c "\$KAFKA_HOME/bin/kafka-topics.sh --describe --zookeeper localhost:2181 --topic $3" ;; |
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/bash | |
| # GO | |
| export GOPATH=~/developments/go | |
| export PATH=$PATH:/usr/local/opt/go/libexec/bin:$GOPATH/bin | |
| # Go vendor feature. | |
| export GO15VENDOREXPERIMENT=1 | |
| devgo() { | |
| cd ~/developments/go/src/github.com/$@ |
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/bash | |
| # Docker Machine | |
| # dmls lists all available Docker machines. | |
| dmls() { | |
| docker-machine ls | |
| } | |
| # dmclean cleans all Docker containers, dangling imeages, and dangling volumes. |
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
| [alias] | |
| ci = commit | |
| cm = commit -am "squash!" | |
| co = checkout | |
| b = branch | |
| cob = checkout -b | |
| s = status | |
| dg = difftool -t intellij -d | |
| tree = log --graph --decorate --oneline | |
| [color] |
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" | |
| import "reflect" | |
| import "encoding/json" | |
| func main() { | |
| fmt.Println("Hello, playground") | |
| f([]byte(`{"P":123,"Q":"abc"}`), A{}) | |
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 status | |
| import ( | |
| "expvar" | |
| "net/http" | |
| "encoding/json" | |
| ) | |
| // Status method dumps application variables and their values in JSON format. | |
| func Status(writer http.ResponseWriter, request *http.Request) { |
NewerOlder