Skip to content

Instantly share code, notes, and snippets.


David Luu daluu

View GitHub Profile
View webhooks.txt
daluu / py_env_notes.txt
Last active Nov 14, 2019
python env notes
View py_env_notes.txt
various python related commands to run relating to envs
apt-get -y update && apt-get -y --force-yes --fix-missing install build-essential python-dev
pip install virtualenv
virtualenv --system-site-packages -p python3 venv3
source venv3/bin/activate
. venv3/bin/activate
daluu /
Created Oct 24, 2019
zk status check
# use either option below
echo ruok | nc zksvr 2181
echo srvr | nc zksvr 2181
View docker_notes.txt
docker system prune --volumes
docker run -u`id -u`:`id -g` -v $(pwd):/user/project -v ~/.aws:/user/.aws -v ~/.npmrc:/user/.npmrc -w /user/project -it --entrypoint /bin/bash circleci/node:12
# get compressed size of docker images (after they're pulled locally)
docker save image-name:latest > sizetest.tar
gzip sizetest.tar
ls -lh sizetest.tar.gz
daluu / custom_rf_docker_image_notes.txt
Created Apr 7, 2019
Notes for building custom Robot Framework docker images
View custom_rf_docker_image_notes.txt
Below are various notes to help if building a custom RF docker image that we don't already have publicly available,
e.g. IronPython-based RF docker image, Java/Jython-based RF docker image.
java -jar jython_installer-<version>.jar
# Robot Framework 3.0 supports Jython 2.7 which requires Java 7 or newer.
jython -m ensurepip
jython -m pip install robotframework
daluu / gist:8636544d77e7371d7b9460037a5cd0dd
Created Mar 15, 2019 — forked from dmitshur/gist:6927554
How to `go get` private repos using SSH key auth instead of password auth.
View gist:8636544d77e7371d7b9460037a5cd0dd
$ ssh -A vm
$ git config --global url."".insteadOf ""
$ cat ~/.gitconfig
[url ""]
	insteadOf =
$ go get && echo Success!
daluu /
Last active Nov 14, 2019
git and github notes
daluu / gonotes.txt
Last active Apr 2, 2020
golang notes/tips
View gonotes.txt
alternate registry to fetch packages outside of go get:
alternate web sandbox for go:
daluu / d3.legend.js
Last active Mar 10, 2020 — forked from bunkat/index.html
Sample trendline and linear, polynomial, exponential, logarithmic, and power regression analysis using regression.js
View d3.legend.js
// d3.legend.js
// (C) 2012
// MIT licence
(function() {
d3.legend = function(g) {
g.each(function() {
var g=,
items = {},
svg ="nearestViewportElement")),
You can’t perform that action at this time.