Skip to content

Instantly share code, notes, and snippets.

View tjunussov's full-sized avatar

Tim TJey Jun tjunussov

View GitHub Profile
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active April 29, 2025 08:58
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@RammusXu
RammusXu / github-api-update-file.sh
Last active November 28, 2024 20:44
Github REST API update file with commit
REPO=rammus/action-demo
FILE=README.md
INPUT_GITHUB_TOKEN=
# https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#get-repository-content
curl \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token $INPUT_GITHUB_TOKEN" \
"https://api.github.com/repos/${REPO}/contents/${FILE}"