Skip to content

Instantly share code, notes, and snippets.

Avatar

Dror Weiss dror-weiss

View GitHub Profile
@greenbrian
greenbrian / approle.sh
Created Apr 5, 2019
Vault CLI testing AppRole
View approle.sh
#!/bin/bash
# start vault
VAULT_UI=true vault server -dev -dev-root-token-id=root -dev-listen-address=127.0.0.1:8200
# 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
styblope / docker-api-port.md
Last active Feb 19, 2021
Enable TCP port 2375 for external connection to Docker
View docker-api-port.md

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://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    
@bradp
bradp / setup.sh
Last active Feb 17, 2021
New Mac Setup Script
View setup.sh
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
@staltz
staltz / introrx.md
Last active Feb 24, 2021
The introduction to Reactive Programming you've been missing
View introrx.md
@bradmontgomery
bradmontgomery / dummy-web-server.py
Last active Feb 25, 2021
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
View dummy-web-server.py
#!/usr/bin/env python
"""
Very simple HTTP server in python (Updated for Python 3.7)
Usage:
./dummy-web-server.py -h
./dummy-web-server.py -l localhost -p 8000
Send a GET request: