Skip to content

Instantly share code, notes, and snippets.

View xiaoliu's full-sized avatar

xiaoloaix xiaoliu

  • Sydney, Australia
  • 15:59 (UTC +11:00)
View GitHub Profile
@xiaoliu
xiaoliu / letsencrypt-guide-nginx-acme.sh.md
Created November 13, 2024 22:47 — forked from dorelljames/letsencrypt-guide-nginx-acme.sh.md
SSL via Let's Encrypt (nginx server)

Nginx SSL via Let's Encrypt and acme.sh

This guide is intended to walk you through installation of a valid SSL on your server for your site at example.com. This example is using root user, you may need to use sudo if you encounter problems such as write permissions.

Pre-requisites

  • Install acme.sh on your server. This will create a acme.sh folder in your home directory and more importantly create an everyday cron job to check and renew certificates if needed.
  • Install nginx server (different per distibution so just make sure you have it up and running)
@xiaoliu
xiaoliu / database.py
Created April 17, 2024 07:32 — forked from goldsborough/database.py
Python Sqlite3 wrapper
###########################################################################
#
## @file database.py
#
###########################################################################
import sqlite3
###########################################################################
#