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
| diff --git i/bitmapist.go w/bitmapist.go | |
| index 0e22f2c..345ae31 100644 | |
| --- i/bitmapist.go | |
| +++ w/bitmapist.go | |
| @@ -18,10 +18,11 @@ import ( | |
| func main() { | |
| args := struct { | |
| - Addr string `flag:"addr,address to listen"` | |
| - File string `flag:"db,path to database file"` |
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
| ~ ¶ cat .bin/org.acme.kill_distnoted.plist | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>org.acme.kill_distnoted</string> | |
| <key>Program</key> | |
| <string>/Users/artyom/.bin/checkdistnoted</string> | |
| <key>ProgramArguments</key> |
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 ( | |
| "bufio" | |
| "bytes" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "log" |
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
| __pschar () { | |
| IFS=':' read -ra PDIRS <<< "$GOPATH" | |
| for P in "${PDIRS[@]}" ; do | |
| test "${1#$P}" = "$1" || { | |
| printf "" | |
| return | |
| } | |
| done | |
| printf "¶" | |
| } |
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
| processor : 0 | |
| vendor_id : GenuineIntel | |
| cpu family : 6 | |
| model : 63 | |
| model name : Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz | |
| stepping : 2 | |
| microcode : 0x25 | |
| cpu MHz : 2400.078 | |
| cache size : 30720 KB | |
| physical id : 0 |
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" | |
| "os" | |
| "time" | |
| "golang.org/x/net/icmp" | |
| "golang.org/x/net/ipv4" |
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 rest | |
| import ( | |
| "flag" | |
| "io/ioutil" | |
| "net/url" | |
| "github.com/artyom/autoflags" | |
| ) |
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 ( | |
| "flag" | |
| "io" | |
| "log" | |
| "os" | |
| "github.com/artyom/autoflags" |
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
| admin@ip-172-16-38-251:~$ free -h | |
| total used free shared buffers cached | |
| Mem: 7.8G 7.7G 132M 284K 788K 10M | |
| -/+ buffers/cache: 7.7G 143M | |
| Swap: 49G 40G 9.3G | |
| admin@ip-172-16-38-251:~$ redis-cli | |
| 127.0.0.1:6379> info memory | |
| # Memory | |
| used_memory:48507306184 | |
| used_memory_human:45.18G |
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 -eu | |
| deps () { | |
| # format is "key path repo branch" | |
| cat <<-"EOF" | |
| dep1 libs/dep1 git@github.com:User/lib1.git master | |
| EOF | |
| } | |
| SEL=${1:-} |