netstat
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
http://www.getautoma.com/ | |
http://www.sikuli.org/ | |
http://www.sikulix.com/ | |
http://stackoverflow.com/questions/11497613/what-better-tool-than-sikuli-to-use-for-screen-automation-on-windows-7-or-prefe | |
# Using govendor fetch and sync -- needs go-imports meta tag | |
https://groups.google.com/forum/#!topic/golang-nuts/AURCoVLjNyc | |
https://github.com/kardianos/govendor | |
https://github.com/golang/go/blob/0104a31b8fbcbe52728a08867b26415d282c35d2/src/cmd/go/discovery.go#L38 |
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" | |
"net/http" | |
"io/ioutil" | |
"time" | |
) | |
type QueryResponse struct { |
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
Installing Go | |
- Install Go | |
- Make these dirs: | |
- ~/Projects/Go | |
- ~/Projects/Go/{src,bin,pkg,src} | |
- Export in .bashrc these variables | |
- export GOPATH=~/Projects/Go | |
- export PATH=$GOPATH/bin:$GOPATH | |
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 | |
GOROOT=/opt/go1.6 | |
source "colors.sh" | |
function go_install() { | |
go install | |
if [ "$?" != "0" ]; then | |
echo "repository doesn't compile." |
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
#!/usr/bin/env bash | |
red=31 ; green=32 ; brown=33 ; blue=34 | |
purple=35 ; cyan=36 ; light_gray=37 | |
function _a() { | |
echo -e -n "\033[$1m${@:2}\033[0m " | |
} | |
function _rd() { | |
_a $red $* |
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 | |
git stash -q --keep-index | |
go test --race ./... | |
RESULT=$? | |
git stash pop -q | |
if [ $RESULT -ne 0 ] ; then | |
echo "pre-commit tests failed." | |
exit 1 |
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" | |
"net/http" | |
"os" | |
) | |
func main() { | |
dir := "." |
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
Supported escape sequences: | |
~. - terminate session | |
~B - send a BREAK to the remote system | |
~R - Request rekey (SSH protocol 2 only) | |
~# - list forwarded connections | |
~? - this message | |
~~ - send the escape character by typing it twice | |
(Note that escapes are only recognized immediately after newline.) | |
Reference: |