Skip to content

Instantly share code, notes, and snippets.

View jeremysu0131's full-sized avatar

Jeremy jeremysu0131

  • Taiwan
View GitHub Profile
@jeremysu0131
jeremysu0131 / db_backup.sh
Last active January 11, 2022 07:29 — forked from NARKOZ/db_backup.sh
MySQL backup shell script
#!/bin/bash
# Shell script to backup MySQL database
# Set these variables
MyUSER="" # DB_USERNAME
MyPASS="" # DB_PASSWORD
MyHOST="" # DB_HOSTNAME
# Backup Dest directory
DEST="" # /home/username/backups/DB
@jeremysu0131
jeremysu0131 / nginx.conf
Created May 4, 2018 01:33 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048