Skip to content

Instantly share code, notes, and snippets.

@marcopeg
marcopeg / remote-gist.sh
Last active March 8, 2023 16:12
Download and executes a remote gitst
#/bin/bash
#
# Download and executes a remote GitHub gist
# it will store a local cache to improve performances
#
# run `./script --update` to flush local cache
#
# -- Custom Settings
@marcopeg
marcopeg / docker-setup.sh
Last active October 5, 2016 13:01
Setup Docker on Ubuntu Server
#/bin/bash
#
# wget -O - https://gist.github.com/marcopeg/3e8a5045459816aef64378d7ed2421e3/raw | bash -s my_custom_user
#
PASS=$(date | sha256sum | base64 | head -c 32)
USER=${1:-duser}
# Create Docker User