- How what happens
- Affects someone
- In pursuit of a difficult goal
- How he or she changes
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 | |
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
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"io/ioutil" | |
"time" | |
) | |
type QueryResponse struct { |
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
## Fill in the areas with the [custom] label. | |
#user nobody; | |
worker_processes 1; | |
error_log [custom]/error.log; | |
events { | |
worker_connections 1024; | |
} |
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
alt-, => cmd-, do not remapped modifier | |
al-1 => Unicode char ¡ so that in emacs I can bind cmd-1 to neotree-toggle | |
c-shift-b => M-f forward-word | |
c-shift-f => M-b backward-word | |
alt-b => C-b forward-char | |
alt-i => M-i other-window -1 | |
alt-o => M-o other-window +1 | |
alt-k => M-k kill-buffer | |
alt-tab => cmd-tab do not remap modifier |
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
;;; go-template-mode.el --- Major mode for Go template language | |
;;; Commentary: | |
;; 1) Copy this file somewhere in your Emacs `load-path'. To see what | |
;; your `load-path' is, run inside emacs: C-h v load-path<RET> | |
;; | |
;; 2) Add the following to your .emacs file: | |
;; | |
;; (require 'go-template-mode) |