Skip to content

Instantly share code, notes, and snippets.

View zealws's full-sized avatar

Zeal Wierslee zealws

View GitHub Profile
Apr 25 11:30:01 gannon systemd[1]: Starting Say hello...
Apr 25 11:30:01 gannon echo[7929]: Hello, World!
Apr 25 11:30:01 gannon systemd[1]: Started Say hello.
Apr 25 11:30:02 gannon systemd[1]: Starting Say hello...
Apr 25 11:30:02 gannon echo[7988]: Hello, World!
Apr 25 11:30:02 gannon systemd[1]: Started Say hello.
Apr 25 11:30:03 gannon systemd[1]: Starting Say hello...
Apr 25 11:30:03 gannon echo[7994]: Hello, World!
Apr 25 11:30:03 gannon systemd[1]: Started Say hello.
Apr 25 11:30:04 gannon systemd[1]: Starting Say hello...
root@gannon /home/zeal # journalctl -fu say-hello.service
Apr 25 11:18:01 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:01 gannon echo[17543]: Hello, World!
Apr 25 11:18:01 gannon systemd[1]: Started Say hello.
Apr 25 11:18:02 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:02 gannon echo[17597]: Hello, World!
Apr 25 11:18:02 gannon systemd[1]: Started Say hello.
Apr 25 11:18:03 gannon systemd[1]: Starting Say hello...
Apr 25 11:18:03 gannon echo[17602]: Hello, World!
Apr 25 11:18:03 gannon systemd[1]: Started Say hello.
Apr 22 11:51:00 gannon systemd[1]: Starting Say hello...
Apr 22 11:51:00 gannon echo[18503]: Hello, World!
Apr 22 11:51:00 gannon systemd[1]: Started Say hello.
Apr 22 11:51:01 gannon systemd[1]: Starting Say hello...
Apr 22 11:51:01 gannon echo[18559]: Hello, World!
Apr 22 11:51:01 gannon systemd[1]: Started Say hello.
Apr 22 11:51:02 gannon systemd[1]: Starting Say hello...
Apr 22 11:51:02 gannon echo[18565]: Hello, World!
Apr 22 11:51:02 gannon systemd[1]: Started Say hello.
Apr 22 11:51:03 gannon systemd[1]: Starting Say hello...
# systemctl is-enabled say-hello.service
disabled
# systemctl is-enabled say-hello.timer
static
# systemctl status say-hello.service
● say-hello.service - Say hello
Loaded: loaded (/etc/systemd/system/say-hello.service; disabled; vendor preset: disabled)
Active: active (exited) since Tue 2016-04-19 11:26:21 PDT; 19min ago
$ go run test.go google.com
173.194.33.163
$ go run test.go 127.0.0.1
127.0.0.1
$ go run test.go netflix.com
174.129.2.58
$ make -B bin/atc_api
cd src/react && npm run build-js
> [email protected] build-js /home/zeal/go/src/github.com/facebook/augmented-traffic-control/src/react
> browserify -t [ babelify --presets [ es2015 react ] ] jsx/index.js > ../../static/js/index.js
/home/zeal/go/bin/go-bindata -pkg api -o src/api/bindata.go static/...
/usr/bin/go build -o bin/atc_api github.com/facebook/augmented-traffic-control/src/atc_api
$ bin/atcd --help
usage: atcd [<flags>]
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
--iptables=IPTABLES location of the iptables binary
--ip6tables=IP6TABLES location of the ip6tables binary
--wan=WAN name of the WAN interface
--lan=LAN name of the LAN interface
-b, --listen=127.0.0.1:9090 Bind address for the thrift server
@zealws
zealws / gist:f1395880b1a00a24a002
Created November 14, 2015 22:11
knife-solo output pacman --needed
DEBUG: Running processed command sudo -E -p 'knife sudo password: ' pacman --needed -Sy ruby rsync make gcc --noconfirm
DEBUG: sudo -E -p 'knife sudo password: ' pacman --needed -Sy ruby rsync make gcc --noconfirm stdout:
DEBUG: sudo -E -p 'knife sudo password: ' pacman --needed -Sy ruby rsync make gcc --noconfirm stdout: :: Synchronizing package databases...
DEBUG: sudo -E -p 'knife sudo password: ' pacman --needed -Sy ruby rsync make gcc --noconfirm stdout: core is up to date
DEBUG: sudo -E -p 'knife sudo password: ' pacman --needed -Sy ruby rsync make gcc --noconfirm stdout: extra is up to date
DEBUG: sudo -E -p 'knife sudo password: ' pacman --needed -Sy ruby rsync make gcc --noconfirm stdout: community is up to date
DEBUG: sudo -E -p 'knife sudo password: ' pacman --needed -Sy ruby rsync make gcc --noconfirm stdout: warning: ruby-2.2.3-1 is up to date -- skipping
DEBUG: sudo -E -p 'knife sudo password: ' pacman --needed -Sy ruby rsync make gcc --noconfirm stdout: warning: make-4.1-1 is up to date --
import math, copy, time as _time
ingredients = "ingredients"
time = "time"
produces = "produces"
rate = "rate"
total = "total"
feeds = "feeds"
leaf = "leaf"
bldgs = "buildings"
ATCD_WAN=eth0
ATCD_LAN=eth1