Skip to content

Instantly share code, notes, and snippets.

View Jaid's full-sized avatar
🔴
Streaming coding sessions on Twitch!

Jaid

🔴
Streaming coding sessions on Twitch!
View GitHub Profile
@Jaid
Jaid / oxipngHelp.txt
Created April 12, 2024 14:52
oxipng help
Losslessly improve compression of PNG files
Usage: oxipng.exe [OPTIONS] <files>...
Arguments:
<files>...
File(s) to compress (use '-' for stdin)
Options:
-o, --opt <level>
@Jaid
Jaid / cjxlHelp.txt
Created April 11, 2024 20:58
cjxl help
JPEG XL encoder v0.10.0 89ca2201 [AVX2,SSE4,SSE2]
Usage: D:\git\.foreign\autobuildSuite\local64\bin-global\cjxl.exe INPUT OUTPUT [OPTIONS...]
INPUT
the input can be PNG, APNG, GIF, JPEG, PPM, PFM, PAM, PGX, or JXL
OUTPUT
the compressed JXL output file
Basic options:
-d DISTANCE, --distance=DISTANCE
Target visual distance in JND units, lower = higher quality.
@Jaid
Jaid / fdHelp.txt
Created March 21, 2024 05:00
`fd --help`
A program to find entries in your filesystem
Usage: fd.exe [OPTIONS] [pattern] [path]...
Arguments:
[pattern]
the search pattern which is either a regular expression (default) or a glob pattern (if
--glob is used). If no pattern has been specified, every entry is considered a match. If
your pattern starts with a dash (-), make sure to pass '--' first, or it will be
considered as a flag (fd -- '-foo').
@Jaid
Jaid / android_16.png
Last active March 9, 2024 17:35
Windows Terminal Settings
android_16.png
@Jaid
Jaid / wireguardClientCustomAuthenticDNS.conf.ini
Last active February 25, 2024 20:47
AllowedIPs setting for excluding destinations in the local network from being routed through Wireguard
# Based on this tool: https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calculator
# The DNS resolution is routed through VPN, thus more secure and authentic
# Allowed IPs: 0.0.0.0/0, ::/0
# Disallowed IPs: 10.0.0.0/8, fd00::/8
[Peer]
AllowedIPs = 0.0.0.0/5,8.0.0.0/7,11.0.0.0/8,12.0.0.0/6,16.0.0.0/4,32.0.0.0/3,64.0.0.0/2,128.0.0.0/1,::/1,8000::/2,c000::/3,e000::/4,f000::/5,f800::/6,fc00::/8,fe00::/7
@Jaid
Jaid / dockerPurge.bash
Created June 29, 2022 06:52
Docker purge all
#!/usr/bin/env bash
set -e
set -o errexit
docker system prune --all --force --volumes
docker buildx rm --all-inactive --force
docker buildx prune --all --force
@Jaid
Jaid / migratingRules.md
Last active February 21, 2024 10:48
ESLint rules for migrating projects from CommonJS to ESM

ESLint rules

The ESM standard is considered stable in NodeJS and well supported by a lot of modern JavaScript tools.

ESLint does a good job validating and fixing ESM code (as long as you don't use top-level await, coming in ESLint v8). Make sure to enable the latest ECMA features in the ESLint config.

  • .eslint.json
{
@Jaid
Jaid / de-ch.klc
Last active February 5, 2024 14:25
Windows default KLC files (exported from Microsoft Keyboard Layout Creator 1.4)
KBD Layout01 "Swiss German - Custom"
COPYRIGHT "(c) 2024 Company"
COMPANY "Company"
LOCALENAME "de-CH"
LOCALEID "00000807"
@Jaid
Jaid / bashScript.json
Last active December 19, 2023 04:35
VSCode tasks.json snippets
{}
@Jaid
Jaid / comparison.md
Last active November 22, 2023 20:51
ffmpeg ProRes proxy encodings comparison

Results

V-Codec A-Codec profile pix_fmt qscale File Size Speed
prores_ks pcm_s16le 1610 MB 164 %
prores_ks pcm_s16le proxy 353 MB 103 %
prores_ks pcm_s16le proxy 4 740 MB 726 %
prores_ks pcm_s16le proxy 10 424 MB 738 %
prores_ks pcm_s16le proxy 12 375 MB 762 %
prores_ks pcm_s16le proxy 16 309 MB 729 %