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 |
| // I'm tired of extensions that automatically: | |
| // - show welcome pages / walkthroughs | |
| // - show release notes | |
| // - send telemetry | |
| // - recommend things | |
| // | |
| // This disables all of that stuff. | |
| // If you have more config, leave a comment so I can add it!! | |
| { |
| // Allow user to select the table and view to use, and which fields will be affected | |
| const config = input.config({ | |
| title: "Set Sequential Event Times", | |
| description: `Update a collection of events that occur in sequence so that each new event starts when the previous event ends. | |
| * Use the fixed start marker field (a checkbox field) to mark all records that have fixed start times. | |
| * The first record in the selected view **must** have a fixed start time. | |
| * Any record without a fixed start time will have its start time calculated based on the end time of the previous record.`, | |
| items: [ | |
| input.config.table("eventsTable", { |
| ----------------------------------------------------------------------------------------------------- | |
| Read Test | |
| fio --name=randread --ioengine=libaio --iodepth=16 --rw=randread --bs=4k --direct=0 --size=512M --numjobs=4 --runtime=240 --group_reporting | |
| ----------------------------------------------------------------------------------------------------- | |
| writes a total 2GB files [4 jobs x 512 MB = 2GB] running 4 processes at a time: | |
| fio --name=randwrite --ioengine=libaio --iodepth=1 --rw=randwrite --bs=4k --direct=0 --size=512M --numjobs=4 --runtime=240 --group_reporting | |
| ----------------------------------------------------------------------------------------------------- | |
| Read Write Performance Test | |
| fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=random_read_write.fio --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75 |
| const responsiveImage = require('./src/_includes/shortcodes/responsive-image'); | |
| const exifData = require('./src/_includes/shortcodes/exif-data'); | |
| // … | |
| module.exports = function(eleventyConfig) { | |
| // … | |
| eleventyConfig.addShortcode('responsiveImage', responsiveImage); |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
| # log the default values: | |
| echo "speed_limit_max: `cat /proc/sys/dev/raid/speed_limit_max`" #=> 200000 | |
| echo "speed_limit_min: `cat /proc/sys/dev/raid/speed_limit_min`" #=> 10000 | |
| echo "stripe_cache_size: `/sys/block/md2/md/stripe_cache_size`" #=> 256 | |
| # update to use more RAM (Stripe Cache Size) and higher lower bound (speed_limit_min) | |
| echo 100000 > /proc/sys/dev/raid/speed_limit_min | |
| # This will result in more memory usage. bumping to 32768 resulted in ~512MB RAM increase. | |
| echo 32768 > /sys/block/md2/md/stripe_cache_size |
| /* | |
| This script, when used with Google Apps Scripts, will delete 400 emails and | |
| can be triggered to run every few minutes without user interaction enabling you | |
| to bulk delete email in Gmail without getting the #793 error from Gmail. | |
| Google returns a maximum of 500 email threads in a single API call. | |
| This script fetches 400 threads in case 500 threads is causing timeouts | |
| Configure the search query in the code below to match the type of emails | |
| you want to delete |