Skip to content

Instantly share code, notes, and snippets.

@binhp
binhp / 0-daily-backup.md
Created April 4, 2018 04:32
Backup Daily with logrotate

Daily backup with logrotate

@binhp
binhp / 0-self-signed-ssl.md
Last active October 23, 2018 04:32
Development Self-signed SSL with local trust

Create self-signed certificate for nginx/apache


chmod +x ./*.sh
./1-create-cert.sh
## add to trusted certs for macOS
./2-osx-trust-cert.sh
echo "See sample nginx config"
cat 3-sample-nginx.conf
@binhp
binhp / 0-aws-lamda-start-stop-instances.md
Last active February 11, 2024 01:50
AWS EC2 Schedule to Start/Stop

AWS Schedule to Start/Stop EC2

by Cloud Watch and Lamda Function