Skip to content

Instantly share code, notes, and snippets.

View ngbinh's full-sized avatar

Binh Nguyen ngbinh

  • Anduin Transactions Inc
View GitHub Profile
function FindProxyForURL(url, host) {
PROXY = "HTTP 192.168.31.57:8888"
return PROXY
}
@ngbinh
ngbinh / SketchSystems.spec
Created September 13, 2018 12:15
Negotating
Negotating
Empty
investorSign -> OnlyInvestorSigned
companySign -> OnlyCompanySigned
OnlyCompanySigned
companyUnSign -> Empty
investorSign -> Done
OnlyInvestorSigned
companySign -> Done
investorUnSign -> Empty
### Keybase proof
I hereby claim:
* I am ngbinh on github.
* I am ngbinh (https://keybase.io/ngbinh) on keybase.
* I have a public key whose fingerprint is 6D7C CBD8 B27B E8AA 7539 AEC5 23A4 7510 556E 6E20
To claim this, I am signing this object:
@ngbinh
ngbinh / example.suiteA.xml
Created April 30, 2016 11:16
Scalatest fails to report test names in XML JUnit output
<?xml version='1.0' encoding='UTF-8'?>
<testsuite hostname="binh-mbp.local" name="example.SuiteA" tests="6" errors="0" failures="0" time="0.014">
<properties>
<property name="jline.esc.timeout" value="0"/><property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/><property name="sun.boot.library.path" value="/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre/lib"/><property name="java.vm.version" value="25.60-b23"/><property name="gopherProxySet" value="false"/><property name="java.vm.vendor" value="Oracle Corporation"/><property name="java.vendor.url" value="http://java.oracle.com/"/><property name="path.separator" value=":"/><property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/><property name="file.encoding.pkg" value="sun.io"/><property name="user.country" value="US"/><property name="sun.java.launcher" value="SUN_STANDARD"/><property name="sun.os.patch.level" value="unknown"/><property name="java.vm.specification.name" value="J
@ngbinh
ngbinh / sbt compile
Created March 30, 2016 16:31
scala.js occasionally error
[info] Fast optimizing target/build/main/web/js/stargazerjs.js
Error wrapping InputStream in GZIPInputStream: java.io.EOFException
at sbt.ErrorHandling$.translate(ErrorHandling.scala:10)
at sbt.WrapUsing.open(Using.scala:34)
at sbt.Using.apply(Using.scala:23)
at sbt.IO$$anonfun$gzipFileIn$1.apply(IO.scala:863)
at sbt.IO$$anonfun$gzipFileIn$1.apply(IO.scala:862)
at sbt.Using.apply(Using.scala:24)
at sbt.IO$.gzipFileIn(IO.scala:862)
at sbt.Sync$.readUncaught(Sync.scala:88)
@ a := 2
1: a2-->2
0: b2-->1
1: switchMap3-->(2,1)
switchMap3 (2,1)
@ a := 3
// Nothing
@ a := 4
deisctl status registry
● deis-registry@1.service - deis-registry
Loaded: loaded (/run/fleet/units/deis-registry@1.service; linked-runtime; vendor preset: disabled)
Active: active (running) since Wed 2015-04-22 19:21:08 UTC; 7min ago
Process: 25634 ExecStartPre=/bin/sh -c docker inspect deis-registry >/dev/null 2>&1 && docker rm -f deis-registry || true (code=exited, status=0/SUCCESS)
Process: 25600 ExecStartPre=/bin/sh -c IMAGE=`/run/deis/bin/get_image /deis/registry` && docker history $IMAGE >/dev/null 2>&1 || docker pull $IMAGE (code=exited, status=0/SUCCESS)
Process: 25586 ExecStartPre=/usr/bin/etcdctl mkdir /deis/cache >/dev/null 2>&1 (code=exited, status=4)
Main PID: 25644 (sh)
CGroup: /system.slice/system-deis\x2dregistry.slice/deis-registry@1.service
├─25644 /bin/sh -c IMAGE=`/run/deis/bin/get_image /deis/registry` && docker run --name deis-registry --rm -p 5000:5000 -e EXTERNAL_PORT=5000 -e HOST=$COREOS_PRIVATE_IPV4 $IMAGE
fleetctl cat deis-registry@1
[Unit]
Description=deis-registry
[Service]
EnvironmentFile=/etc/environment
TimeoutStartSec=30m
ExecStartPre=-/usr/bin/etcdctl mkdir /deis/cache >/dev/null 2>&1
ExecStartPre=/bin/sh -c "IMAGE=`/run/deis/bin/get_image /deis/registry` && docker history $IMAGE >/dev/null 2>&1 || docker pull $IMAGE"
ExecStartPre=/bin/sh -c "docker inspect deis-registry >/dev/null 2>&1 && docker rm -f deis-registry || true"
etcdctl ls / --recursive
/deis
/deis/migrations
/deis/migrations/data
/deis/migrations/data/0001
/deis/platform
/deis/platform/domain
/deis/platform/sshPrivateKey
/deis/platform/version
/deis/registry
@ngbinh
ngbinh / gist:ae7734f01aa333b9de0d
Created April 22, 2015 19:13
deisctl status deis-registry@1
deisctl status deis-registry@1
● deis-registry@1.service - deis-registry
Loaded: loaded (/run/fleet/units/deis-registry@1.service; linked-runtime; vendor preset: disabled)
Active: active (running) since Wed 2015-04-22 19:02:25 UTC; 9min ago
Process: 12222 ExecStartPre=/bin/sh -c docker inspect deis-registry >/dev/null 2>&1 && docker rm -f deis-registry || true (code=exited, status=0/SUCCESS)
Process: 12169 ExecStartPre=/bin/sh -c IMAGE=`/run/deis/bin/get_image /deis/registry` && docker history $IMAGE >/dev/null 2>&1 || docker pull $IMAGE (code=exited, status=0/SUCCESS)
Process: 12154 ExecStartPre=/usr/bin/etcdctl mkdir /deis/cache >/dev/null 2>&1 (code=exited, status=4)
Main PID: 12231 (sh)
CGroup: /system.slice/system-deis\x2dregistry.slice/deis-registry@1.service
├─12231 /bin/sh -c IMAGE=`/run/deis/bin/get_image /deis/registry` && docker run --name deis-registry --rm -p 5000:5000 -e EXTERNAL_PORT=5000 -e HOST=$COREOS_PRIVATE_IPV4 $IMAGE