start new:
tmux
start new with session name:
tmux new -s myname
package main | |
import ( | |
"io" | |
"log" | |
"mime/multipart" | |
"net/http" | |
"os" | |
"path/filepath" | |
"runtime" |
package main | |
import "net" | |
import "fmt" | |
func main() { | |
fmt.Println(IsPrivateIP("111.11.191.17")) | |
fmt.Println(IsPrivateIP("192.168.0.100")) | |
fmt.Println(IsPrivateIP("10.0.8.100")) | |
} |
@import url(http://fonts.googleapis.com/css?family=Raleway:700,800); | |
html, body { margin: 0; } | |
:focus { outline: none; } | |
::-webkit-input-placeholder { color: #DEDFDF; } | |
::-moz-placeholder { color: #DEDFDF; } | |
:-moz-placeholder { color: #DEDFDF; } | |
::-ms-input-placeholder { color: #DEDFDF; } |
My name is {{.Name}} and I'm {{.Age}} years old!! |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
package main | |
import ( | |
"myapp/webserver/app/common" | |
"github.com/golang/glog" | |
"github.com/gorilla/mux" | |
"encoding/json" | |
"strconv" | |
"flag" | |
"fmt" |
[General] | |
# warning, notify, info, verbose | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local | |
bypass-tun = 0.0.0.0/8, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
loglevel = notify | |
# 默认 IP 和端口,不修改的话系统网络 HTTP 和 HTTPS 代理设置中就是 127.0.0.1:6152 | |
interface = 0.0.0.0 | |
port = 6152 |