1. Install nginx
2. Install minio
3. Install mc client
$ mc mb myminio/static
Bucket created successfully ‘myminio/static’.
events { | |
worker_connections 1024; | |
} | |
http { | |
default_type text/html; | |
access_log /dev/stdout; | |
sendfile on; | |
keepalive_timeout 65; |
# Use this script to test that your Telegram bot works. | |
# | |
# Install the dependency | |
# | |
# $ gem install telegram_bot | |
# | |
# Run the bot | |
# | |
# $ ruby bot.rb | |
# |
$HOSTALIASES no longer works with glibc (https://bugs.launchpad.net/debian/+source/glibc/+bug/1483187) | |
For my project, I needed to create a user specifc hosts file. | |
First clone this repo - https://github.com/figiel/hosts.git | |
################ README ##################################### | |
hosts - wrapper for libc which provides defining host aliases in a per-user file |
Install WireGuard via whatever package manager you use. For me, I use apt. | |
$ sudo add-apt-repository ppa:wireguard/wireguard | |
$ sudo apt-get update | |
$ sudo apt-get install wireguard | |
MacOS | |
$ brew install wireguard-tools | |
Generate key your key pairs. The key pairs are just that, key pairs. They can be |
# Show Time (UNIX), Digest (images hash), tag. Sort by time | |
aws ecr describe-images --repository-name "ecr-repository-name" | jq -r '.imageDetails[] | (.imagePushedAt|tostring) + " " + .imageDigest + " " + .imageTags[0]' | sort |
--- | |
- hosts: localhost | |
tasks: | |
- shell: . $HOME/.zshrc && echo $PATH | |
args: | |
executable: /bin/zsh | |
register: path | |
- debug: msg="{{ path.stdout }}" |
shell() { | |
TOPCMD=$@ bash -c 'while read -p "${TOPCMD##*/}> " -ra sub; do | |
case ${sub[0]:-} in | |
"") continue;; | |
exit) exit;; | |
escape) (set -x; ${sub[@]:1});; | |
*) (set -x; ${TOPCMD} ${sub[@]});; | |
esac | |
done' | |
} |