| Category | Shortcut | Action |
|---|---|---|
| File & General | Ctrl + S | Save file |
| Ctrl + Q | Quit current tab | |
| Ctrl + O | Open a file | |
| Ctrl + E | Open command bar | |
| Ctrl + G | Open help menu | |
| Ctrl + H | Show keybindings help |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| echo "Installing GPaste..." | |
| sudo apt update | |
| sudo apt install -y gpaste gnome-shell-extension-gpaste | |
| echo "Configuring GPaste to behave like Windows 11 clipboard..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Minimal pi command/code helper | |
| pis() { | |
| local model="opencode/big-pickle" | |
| local mode="summary_code" | |
| local system_prompt="" | |
| local query=() | |
| if [[ "$1" == "--help" || "$1" == "-h" || $# -eq 0 ]]; then | |
| cat <<'EOF' | |
| Usage: |
Don't assume. Don't hide confusion. Surface tradeoffs.
Before implementing:
- State your assumptions explicitly. If uncertain, ask.
- If multiple interpretations exist, present them - don't pick silently.
- If a simpler approach exists, say so. Push back when warranted.
- If something is unclear, stop. Name what's confusing. Ask.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias updates="sudo apt update && sudo apt list --upgradable && sudo apt -y upgrade && sudo apt autoclean && sudo apt autoremove" | |
| alias t='tmux' | |
| alias tn='tmux new -s' # tn mysession | |
| alias ta='tmux attach -t' # ta mysession | |
| alias tls='tmux ls' # list sessions | |
| alias tk='tmux kill-session -t' # tk mysession | |
| alias tw='tmux new-window' # tw | |
| alias tp='tmux split-window' # tp -h or tp -v | |
| alias size='ls -lht' # Show the size of a file(s) | |
| alias dk='docker' # This is shorthand for docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Create a group | |
| CREATE ROLE readaccess; | |
| -- Grant access to existing tables | |
| GRANT USAGE ON SCHEMA public TO readaccess; | |
| GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
| -- Grant access to future tables | |
| ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Bash script | |
| find . -path "*/migrations/*.py" -not -path "./env/*" -not -name "__init__.py" -delete | |
| # Powershell script | |
| Get-ChildItem -Path . -Recurse -File | Where-Object { $_.FullName -match '\\migrations\\' -and $_.FullName -notmatch '\\env\\' -and $_.Name -ne "__init__.py" } | Remove-Item -Force |