30.11.2020: Updated with the new patchseries and instructions for Windows
02.12.2020: Added tweaks
08.12.2020: Updated with patchseries v4
31.01.2020: Updated with patchseries v6
package main | |
import ( | |
"crypto/x509" | |
"encoding/pem" | |
"errors" | |
"fmt" | |
"golang.org/x/crypto/ssh" | |
"io/ioutil" | |
"net" |
shopt -s globstar | |
alias get-checksum='cd $1; find -type f -exec md5sum {} + | tee $2; cd -' | |
function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; } | |
alias speedtest='wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip' | |
alias fixvpn="sudo route -n flush && sudo networksetup -setv4off Wi-Fi && sudo networksetup -setdhcp Wi-Fi" |
https://webhook.site |
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 |
#!/bin/sh | |
# use either option below | |
echo ruok | nc zksvr 2181 | |
echo srvr | nc zksvr 2181 |
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 | |
# see https://github.com/docker/docker/issues/1143 |
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 | |
```bash | |
$ ssh -A vm | |
$ git config --global url."[email protected]:".insteadOf "https://github.com/" | |
$ cat ~/.gitconfig | |
[url "[email protected]:"] | |
insteadOf = https://github.com/ | |
$ go get github.com/private/repo && echo Success! | |
Success! | |
``` |