Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.
| Action | Windows/Linux | macOS |
|---|---|---|
| New window | Ctrl+Shift+N | Cmd+N |
| Close window | Alt+F4 | Cmd+Shift+W |
| #!/bin/bash | |
| # Remove solid background color from images, replacing with transparency. | |
| # Usage: ./remove-bg.sh image.jpg [fuzz%] | |
| # fuzz% = color tolerance (default 15%), increase for off-white/gradient backgrounds | |
| # Output: same filename as .png in the same directory. | |
| set -euo pipefail | |
| if [ $# -lt 1 ]; then | |
| echo "Usage: $0 <image> [fuzz%]" |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>jortt_report - Agent Session</title> | |
| <style> | |
| :root { | |
| --bg: #0d1117; | |
| --surface: #161b22; |
| { | |
| "workbench.colorTheme": "Monokai Pro (Filter Spectrum)", | |
| "python.defaultInterpreterPath": "python3", | |
| "explorer.confirmDragAndDrop": false, | |
| "explorer.confirmDelete": false, | |
| "positron.assistant.enable": true, | |
| "claudeCode.preferredLocation": "panel", | |
| "workbench.externalUriOpeners": { | |
| "http://*": "positron.viewer" | |
| } |
| show-project-size: | |
| uv pip list --format freeze | \ | |
| awk -F = {'print $1'} | \ | |
| xargs uv pip show | \ | |
| grep -E 'Location:|Name:' | \ | |
| cut -d ' ' -f 2 | \ | |
| paste -d ' ' - - | \ | |
| awk '{print $2 "/" tolower($1)}' | \ | |
| xargs du -sh 2> /dev/null | \ | |
| sort -hr |
| def get_binary(url): | |
| """Download binary file in memory without saving to disk.""" | |
| from io import BytesIO | |
| import requests | |
| try: | |
| response = requests.get(url) | |
| # Raise an exception if the request was unsuccessful (e.g., 404 Not Found) |
| python3 -m pip install \ | |
| --config-settings="--global-option=build_ext" \ | |
| --config-settings="--global-option=-I$(brew --prefix graphviz)/include/" \ | |
| --config-settings="--global-option=-L$(brew --prefix graphviz)/lib/" \ | |
| pygraphviz |
| uv_poetry_install () { | |
| uv venv | |
| uv pip install --no-deps -r <(POETRY_WARNINGS_EXPORT=false poetry export --without-hashes --with dev -f requirements.txt) | |
| poetry install --only-root | |
| } |
| runtime: python | |
| env: flex | |
| instance_class: F2 | |
| runtime_config: | |
| operating_system: "ubuntu22" | |
| runtime_version: "3.12" | |
| # name of app | |
| service: some-name |