Skip to content

Instantly share code, notes, and snippets.

View princeppy's full-sized avatar

👑 Prince Park 👑 princeppy

View GitHub Profile
@princeppy
princeppy / apache-airflow-3-cheatsheet.md
Last active November 16, 2026 07:47
Apache Airflow 3.x Cheat Sheet

Apache Airflow 3.x Cheat Sheet

CLI · concepts · configuration · DAG authoring · REST API · install & operations All examples use Airflow 3.x syntax. The source cheat sheets used Airflow 1.x/2.x syntax, which has been converted here.

Links

@princeppy
princeppy / ubuntu-docker-installation-cheatsheet.md
Created November 10, 2026 13:20
Ubuntu Server: Docker Installation Cheat Sheet (22.04 / 24.04 LTS)

Ubuntu Server: Docker Installation Cheat Sheet (22.04 / 24.04 LTS)

Official apt-repository method (also works on 26.04 LTS, 64-bit). Run as your sudo user. Docs: https://docs.docker.com/engine/install/ubuntu/

1. Before you start

lsb_release -ds; uname -m                    # Ubuntu version + architecture (x86_64 / aarch64)
sudo apt update && sudo apt full-upgrade -y  # patch the OS first
# remove conflicting packages ("not installed" is fine)
sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc docker-buildx podman-docker containerd runc | cut -f1)
@princeppy
princeppy / ubuntu-production-hardening-cheatsheet.md
Last active November 10, 2026 13:19
Ubuntu Server: Production Hardening Cheat Sheet (22.04 / 24.04 LTS)

Ubuntu Server: Production Hardening Cheat Sheet (22.04 / 24.04 LTS)

Run as a sudo user. Keep a 2nd SSH session (or console) open while changing SSH/firewall. Replace <...>.

1. Inventory & versions

lsb_release -a; cat /etc/os-release | head -3          # OS release
uname -r; hostnamectl                                  # kernel, hostname, virt
ssh -V; openssl version; sudo ufw version              # key component versions
lscpu | grep 'Model name'; free -h; df -h /; ip -br a  # CPU, RAM, disk, IP addresses
@princeppy
princeppy / time-machine-exclude-dev-folders.md
Created October 13, 2026 10:49
Time Machine for developers: skip dependencies and build output and other...

Exclude node_modules, bin/obj and Other Dev Junk from Time Machine (macOS)

Stop backing up gigabytes of files you can rebuild with one command. Tested on Apple Silicon (M-series) Macs running a recent macOS.

If you have many Node.js, C#/.NET, Python or Rust projects, most of what Time Machine copies is dependency and build output: node_modules, bin, obj, .next, .venv, target and so on. These folders hold huge numbers of small files. They slow backups, fill the backup disk, and are useless to restore because npm install or dotnet restore recreates them.

Time Machine has no .gitignore-style pattern support. The only built-in option in System Settings is to exclude exact paths one by one. The command-line tool tmutil lets you script it instead.


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Login QR Generator</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsbarcode/3.12.3/JsBarcode.all.min.js"></script>
<style>
:root {
@princeppy
princeppy / editpw.asmfix.content.footer.txt
Last active August 16, 2026 13:38
PowerSchool OIDC Enabled teacherloginid issue
@princeppy
princeppy / mac-mini-vnc-ssh-guide.md
Created June 15, 2026 11:27
Mac Mini AI Server — VNC & SSH Access Guide

Mac Mini AI Server — VNC & SSH Access Guide

Complete setup for remote access to your Mac Mini M2 Pro running Ollama + Open WebUI. Covers both local network (VNC + SSH) and public internet (SSH tunnel → VNC) access.


Table of Contents

@princeppy
princeppy / git-submodule-merge-guide.md
Created May 19, 2026 11:35
Git: Pull Both Branches, Merge Staging → Main & Push

Git: Pull Both Branches, Merge Staging → Main & Push

0. Test SSH Connection to GitHub

# Basic SSH test
ssh -T git@github.com

Expected success output:

@princeppy
princeppy / ssh-key-github-mac-guide.md
Created May 19, 2026 11:26
Setting Up SSH Key on Mac & Connecting to GitHub

Setting Up SSH Key on Mac & Connecting to GitHub

What is an SSH Key?

An SSH key is a pair of cryptographic keys used to authenticate your machine with GitHub without needing a username/password every time. It consists of:

  • Private key — stays on your Mac (never share this)
  • Public key — added to your GitHub account

@princeppy
princeppy / oracle-schema-diagram.md
Last active April 22, 2026 16:52
Oracle Schema Diagram Skill (DBML output)

name: oracle-schema-diagram description: > Use this skill whenever the user provides Oracle SQL (SELECT, stored procedures, views, or anything with FROM/JOIN/WHERE) and wants to understand the database structure, generate a schema-extraction query, identify table relationships, or produce a DBML database diagram for dbdiagram.io. Triggers include: "generate schema SQL", "extract table columns", "database diagram", "ER diagram", "DBML", "dbdiagram.io", or any time Oracle SQL is pasted alongside a request to see columns, relationships, or structure. Also triggers when the user uploads a CSV from the extraction query and wants a diagram built from it. Also triggers when the user has already received a DBML diagram earlier in the conversation and returns with a revised CSV, clarifications, or corrections — treat this as an iteration on the existing analysis, not a fresh start. Use this skill even when the user does not say "DBML" explicitly — if they want a database diagram from Oracle SQL, default to this