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 |
| arch=`uname -m` | |
| dest_kernel="hello-vmlinux.bin" | |
| dest_rootfs="hello-rootfs.ext4" | |
| image_bucket_url="https://s3.amazonaws.com/spec.ccfc.min/img/quickstart_guide/$arch" | |
| if [ ${arch} = "x86_64" ]; then | |
| kernel="${image_bucket_url}/kernels/vmlinux.bin" | |
| rootfs="${image_bucket_url}/rootfs/bionic.rootfs.ext4" | |
| elif [ ${arch} = "aarch64" ]; then | |
| kernel="${image_bucket_url}/kernels/vmlinux.bin" |
| ! The following 2 lines are what I use to display news.ycombinator.com | |
| ! Limit comments to 70 characters wide, making them easier to read | |
| news.ycombinator.com##.comment:style(max-width: 70ch !important; overflow: hidden !important;) | |
| ! Invert the colours of the site, making a dark mode that I like | |
| ! `invert(95%)` does most of the work, | |
| ! but you can tweak the hue-rotate value to fine tune the colours | |
| news.ycombinator.com##html:style(filter:invert(95%) hue-rotate(200deg); background: white) |
| #!/usr/bin/env bash | |
| # Store icon and AppImage in variable | |
| icon_path=$HOME/Downloads/<YOUR_LOGO_FILE_NAME>.png | |
| exec_path=$HOME/Downloads/<YOUR_APPIMAGE_FILE_NAME> | |
| # Copy both files | |
| cp $icon_path ~/.local/share/applications/ | |
| cp $exec_path ~/.local/share/applications/ | |
| # Create a Desktop Entry file |
| // ==UserScript== | |
| // @name HackerNews GPT-Free Feed | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Hides any Hacker News story with "GPT" in its title. | |
| // @author Taylor Troesh | |
| // @include https://news.ycombinator.com/* | |
| // @grant none | |
| // ==/UserScript== |
Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-config-airbnb-base eslint-plugin-node eslint-config-node
It's great for beginners. Then it turns into a mess.
Just migrated it from Codepen.io to markdown. Credit goes to David Conner.
| Working with DOM | Working with JS | Working With Functions |
|---|---|---|
| Accessing Dom Elements | Add/Remove Array Item | Add Default Arguments to Function |
| Grab Children/Parent Node(s) | Add/Remove Object Properties | Throttle/Debounce Functions |
| Create DOM Elements | Conditionals |