Skip to content

Instantly share code, notes, and snippets.

View clarencetw's full-sized avatar
🏠
Working from home

Clarence clarencetw

🏠
Working from home
View GitHub Profile
@clarencetw
clarencetw / nginx.conf
Created June 26, 2024 16:13 — forked from nbeguier/nginx.conf
Nginx: TLS Security Configuration 2023
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name __REDACTED__;
ssl_certificate __REDACTED__ ;
ssl_certificate_key __REDACTED__;
# Only return Nginx in server header
server_tokens off;
@clarencetw
clarencetw / README.md
Created January 27, 2023 17:45 — forked from gjreasoner/README.md
Expand Ubuntu 20 Proxmox Disk
# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button

# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME                      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                         8:0    0    1T  0 disk
├─sda1                      8:1    0    1M  0 part
├─sda2                      8:2    0    1G  0 part /boot
└─sda3                      8:3    0    1T  0 part
@clarencetw
clarencetw / tv-changer-for-mac.py
Last active July 6, 2023 17:35 — forked from zhenhappy/tv-changer-for-mac.py
TV changer for Mac
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import platform
import random
import re
import string
import sys
@clarencetw
clarencetw / MacFileRemoverForSVN
Created April 2, 2016 01:12 — forked from cillosis/MacFileRemoverForSVN
Remove ._. and .DS_* files from folder on Mac OS X
find . -type f \( -iname "._*" \) -exec svn delete {} \;
find . -type f \( -iname ".DS_*" \) -exec svn delete {} \;