Skip to content

Instantly share code, notes, and snippets.

David Luu daluu

Block or report user

Report or block daluu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View webhooks.txt
https://webhook.site
@daluu
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
daluu / zkcheck.sh
Created Oct 24, 2019
zk status check
View zkcheck.sh
#!/bin/sh
# 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
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
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."git@github.com:".insteadOf "https://github.com/"
$ cat ~/.gitconfig
[url "git@github.com:"]
	insteadOf = https://github.com/
$ go get github.com/private/repo && echo Success!
Success!
@daluu
daluu / git_gh_notes.md
Last active Nov 14, 2019
git and github notes
View git_gh_notes.md
@daluu
daluu / gonotes.txt
Last active Oct 24, 2018
golang notes/tips
View gonotes.txt
alternate registry to fetch packages outside of go get: https://gopm.io/download?pkgname=golang.org/x/oauth2
alternate web sandbox for go: https://goplay.space/
https://medium.com/@nate510/don-t-use-go-s-default-http-client-4804cb19f779
https://github.com/beyondns/gotips
http://moazzam-khan.com/blog/golang-make-http-requests/
@daluu
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 ziggy.jonsson.nyc@gmail.com
// MIT licence
(function() {
d3.legend = function(g) {
g.each(function() {
var g= d3.select(this),
items = {},
svg = d3.select(g.property("nearestViewportElement")),
You can’t perform that action at this time.