Skip to content

Instantly share code, notes, and snippets.


Dror Weiss dror-weiss

View GitHub Profile
greenbrian /
Created Apr 5, 2019
Vault CLI testing AppRole
# start vault
VAULT_UI=true vault server -dev -dev-root-token-id=root -dev-listen-address=
# login as root - DO NOT DO THIS IN PRODUCTION
vault login root
# write some secrets
vault kv put secret/test color=blue number=eleventeen
styblope /
Last active Feb 19, 2021
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://", "unix:///var/run/docker.sock"]}
bradp /
Last active Feb 17, 2021
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo " \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
staltz /
Last active Feb 24, 2021
The introduction to Reactive Programming you've been missing
bradmontgomery /
Last active Feb 25, 2021
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
Very simple HTTP server in python (Updated for Python 3.7)
./ -h
./ -l localhost -p 8000
Send a GET request: