Skip to content

Instantly share code, notes, and snippets.

View bsdlp's full-sized avatar

jon bsdlp

View GitHub Profile
jchen@locke-(master|✔)> GOOS=linux GOARCH=amd64 go build time.go ~/src/github.com/bsdlp/go-sandbox
[126] jchen@locke-(master|✔)> scp time control:~/ ~/src/github.com/bsdlp/go-sandbox
time 100% 2240KB 2.2MB/s 00:01
jchen@locke-(master|✔)> go run time.go ~/src/github.com/bsdlp/go-sandbox
20160608T005827Z
20160608
jchen@locke-(master|✔)> ssh control './time' ~/src/github.com/bsdlp/go-sandbox
20160608T075827Z
20160608
jchen@locke-(master|✔)> cat time.go ~/src/github.com/bsdlp/go-sandbox
#!/usr/bin/env bash
TEAM=$1
docker kill ${TEAM} || true
docker rm -f ${TEAM} || true
rm -rf /opt/urt/${TEAM} || true
#!/usr/bin/env bash
TEAM=$1
URT_PORT=${2:-$(python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()')}
RCON_PASSWORD=$(pwgen -1s)
JOIN_PASSWORD=$(pwgen -1s)
PUBLIC_IPV4=$(curl -s https://ipv4.icanhazip.com)
mkdir -p /opt/urt/${TEAM}
cp /opt/urt/*.cfg /opt/urt/${TEAM}/
#!/usr/bin/env bash
set -e
apt-get update
apt-get upgrade -y
apt-get install wget unzip -y
mkdir -p /opt/urt/

Keybase proof

I hereby claim:

  • I am bsdlp on github.
  • I am jchen (https://keybase.io/jchen) on keybase.
  • I have a public key whose fingerprint is 5A70 750E C479 769E A478 CC63 D948 E315 4448 9BBA

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am bsdlp on github.
  • I am jchen (https://keybase.io/jchen) on keybase.
  • I have a public key whose fingerprint is 2218 7D82 8B68 B56E DB85 94A3 35D9 43F7 134D 1A6D

To claim this, I am signing this object:

@bsdlp
bsdlp / test.md
Created September 30, 2015 07:42

guardiaN

Aug 15 21:50:02 0 systemd[1]: Started etcd2.
Aug 15 21:50:02 0 systemd[1]: Starting etcd2...
Aug 15 21:50:02 0 etcd2[5714]: 2015/08/15 21:50:02 etcdmain: setting maximum number of CPUs to 1, total number of available CPU
Aug 15 21:50:03 0 etcd2[5714]: 2015/08/15 21:50:03 etcdmain: peerTLS: cert = /etc/ssl/etcd/certs/etcd-client.pem, key = /etc/ss
Aug 15 21:50:03 0 etcd2[5714]: 2015/08/15 21:50:03 etcdmain: listening for peers on https://10.2.1.222:2380
Aug 15 21:50:03 0 etcd2[5714]: 2015/08/15 21:50:03 etcdmain: clientTLS: cert = /etc/ssl/etcd/certs/etcd-client.pem, key = /etc/
Aug 15 21:50:03 0 etcd2[5714]: 2015/08/15 21:50:03 etcdmain: listening for client requests on https://0.0.0.0:2379
Aug 15 21:50:03 0 systemd[1]: etcd2.service: Main process exited, code=exited, status=1/FAILURE
Aug 15 21:50:03 0 systemd[1]: etcd2.service: Unit entered failed state.
Aug 15 21:50:03 0 systemd[1]: etcd2.service: Failed with result 'exit-code'.
recursive-exclude node_modules/* dockerfiles/* logs/*
prune node_modules/* dockerfiles/* logs/*
@bsdlp
bsdlp / UserOptions.ini
Last active November 1, 2017 05:31
GAME CONFIGS
[Display]
FullscreenRefresh=0
Maximized=0
FullscreenWidth=1920
FullscreenHeight=1080
WindowedWidth=1366
WindowedHeight=768
Mode=Fullscreen
FullscreenMode=Fullscreen
HDPixelPlus=1.000000