Discover Snippets

lavvy / run.sh Created at Tue Jun 04 13:40:30 GMT 2019
setup mariadb database in alpine
#!/bin/sh

# execute any pre-init scripts
for i in /scripts/pre-init.d/*sh
do
	if [ -e "${i}" ]; then
		echo "[i] pre-init.d - processing $i"
		. "${i}"
	fi
done
lavvy / testing Created at Thu May 16 00:12:02 GMT 2019
http://[2605:a601:5015:cb00:9499:58c2:fa20:77df]/
https://gist.github.com/tkon99/4c98af713acc73bed74c    random name.js

http://[2605:a601:5015:cb00:9499:58c2:fa20:77df]/

docker swarm init --listen-addr 10.1.1.11:2377 --advertise-addr 10.1.1.11:2377

docker rmi -f $(docker images --quiet --filter "dangling=true")
root / gen-alpine.sh Created at Tue Oct 02 06:10:15 GMT 2018
shell script to help install alpine to x86 pc
#!/bin/sh
#genetate alpine edge x86/x86_64 image: chmod +x gen-alpine.sh && sudo ./gen-alpine.sh
#depends: apk-tools-static, vim(xxd)

set -x

die() {
	printf '\033[1;31mERROR:\033[0m %s\n' "$@" >&2  # bold red
	exit 1
}