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 / concatCopy.bash
Created February 24, 2023 17:41
Concat multiple video files in ffmpeg without the use of temporary files or inline pipes
#!/usr/bin/env bash
set -o errexit -o pipefail -o xtrace
cd
files=
for f in *.avi; do
if [[ -z $files ]]; then
files=concat:"$HOME/$f"
else
files="$files|$HOME/$f"
@Jaid
Jaid / 7zHelp.txt
Last active February 24, 2023 08:36
7z --help output, binary from repo https://github.com/p7zip-project/p7zip
7-Zip [64] 17.04 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.04 (locale=de_DE.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)
Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...]
<Commands>
a : Add files to archive
b : Benchmark
d : Delete files from archive
e : Extract files from archive (without using directory names)
@Jaid
Jaid / invokeAiHelp.txt
Last active April 17, 2023 16:10
InvokeAI v2.3.4 --help output
usage: invokeai [-h] [--laion400m LAION400M] [--weights WEIGHTS] [--version]
[--root_dir ROOT_DIR] [--config CONF] [--model MODEL]
[--weight_dirs WEIGHT_DIRS [WEIGHT_DIRS ...]]
[--png_compression {0,1,2,3,4,5,6,7,8}] [-F]
[--max_loaded_models MAX_LOADED_MODELS] [--free_gpu_mem]
[--sequential_guidance] [--xformers | --no-xformers]
[--always_use_cpu] [--precision PRECISION]
[--ckpt_convert | --no-ckpt_convert]
[--internet | --no-internet]
[--nsfw_checker | --no-nsfw_checker | --safety_checker | --no-safety_checker]
@Jaid
Jaid / gallery-dl.schema.json
Last active February 3, 2023 19:10
gallery-dl v 1.24.3 config example (JSON5 with comments, JSON, JSON schema)
@Jaid
Jaid / btrfs.md
Last active January 19, 2023 18:40
Common btrfs tasks

Add disk to btrfs RAID

Your own inputs

targetDisk=/dev/sda
raidMountPoint=/mnt/btrfsRaid

Script

@Jaid
Jaid / rocketFilter.user.js
Last active November 16, 2022 09:45
Rocket Filter on pgomap-h.de
// ==UserScript==
// @name Rocket Filter
// @description Team GO Rocket encounter filter on pgomap-h.de
// @updateURL https://gist.github.com/Jaid/b8371f93a4ed67d57deb14930ee9684f/raw/rocketFilter.user.js
// @downloadURL https://gist.github.com/Jaid/b8371f93a4ed67d57deb14930ee9684f/raw/rocketFilter.user.js
// @namespace https://jaidchen.com
// @version 1.1.0
// @author Jaid <jaid.jsx@gmail.com>
// @match *://www.pgomap-h.de
// @icon https://www.google.com/s2/favicons?sz=64&domain=pgomap-h.de
@Jaid
Jaid / daemon.json
Last active August 5, 2023 14:38
Sane configuration for Docker daemon on Debian servers (very important, otherwise container logs may flood the root partition over night)
{
"features": {
"buildkit": true
},
"builder": {
"gc": {
"defaultKeepStorage": "4GB",
"enabled": true
}
},
@Jaid
Jaid / sasControllers.md
Last active March 12, 2023 18:02
SAS PCIe controller specs comparison
Label Code IO controller PCIe PCI transfer Ports SAS Duplex Lane bandwidth
LSI 9217-8i SAS2308, Fusion MPT 2.0 3.0 x8 8000 mb/s 8x 6 gb/s 2.1 half 600 mb/s
Avago 9211-8i SAS2008, Fusion MPT 2.0 2.0 x8 4000 mb/s 8x 6 gb/s 2.0 half 600 mb/s
Avago 9207-8i SAS2308, Fusion MPT 2.0 3.0 x8 8000 mb/s 8x 6 gb/s 2.1 half 600 mb/s
LSI 9210-8i SAS2008, Fusion MPT 2.0 2.0 x8 4000 mb/s 8x 6 gb/s 2.0 half 600 mb/s
Avago 9300-8i SAS3008, Fusion MPT 2.5 3.0 x8 8000 mb/s 8x 12 gb/s 3.0 half x8 9600 mb/s
MegaRAID 9261-8i SAS2108, RAID-on-Chip 2.0 x8 4000 mb/s 8x 6 gb/s ? ? ?
@Jaid
Jaid / powershell.log
Created October 29, 2022 11:33
Broken Windows Samba to Linux connection logs
PS C:\WINDOWS\system32> logman start why -ets -p Microsoft-Windows-SMBClient Smb_Info -o why.etl
The command completed successfully.
PS C:\WINDOWS\system32> logman stop why -ets
The command completed successfully.
PS C:\WINDOWS\system32> wevtutil qe /f:text /lf:true why.etl | findstr "SMB.send SMB.receive"
SMB receive: [NEG_MP ] (Mid/Sid/Tid) (0/0/0) Creds 1 Status 0 VcEndpoint 0xffffaa096996d9c0
SMB receive: [NEG_MP ] (Mid/Sid/Tid) (1/0/0) Creds 1 Status 0 VcEndpoint 0xffffaa096996d9c0
SMB send[0]: [SESSION ] (Mid/Sid/Tid) (2/0/0) MidCharge 1 Creds 33 SendLengh 162 VcEndpoint 0xffffaa096996d9c0
SMB receive: [SESSION ] (Mid/Sid/Tid) (2/346272224/0) Creds 1 Status 3221225494 VcEndpoint 0xffffaa096996d9c0
SMB send[0]: [SESSION ] (Mid/Sid/Tid) (3/346272224/0) MidCharge 1 Creds 33 SendLengh 549 VcEndpoint 0xffffaa096996d9c0
@Jaid
Jaid / id_jaid.pub
Last active October 29, 2022 01:47
Public ssh key: id_jaid.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC0yRxU2h2h/+96OIrs0KQbe/q5KLFyEZ8msghqKo0LQRPkfFsh2qT60Qr8OIq/V0nZpqW8v0HUYUA1c4sEF3k+E0Ur1oKD5p9rmTZfPwvSMDJYKjRvN+BwKR4pzwzNfghnsK09r/foy1hDpaOZIOmM8+LtrYxtuN+DcWP8LQ5sod3nYzmTWOlHJrajn2DqtWULhoF8o83r7FqAG02n6vU84BdAZNoNTqgJx/2kLn7OQKRR4nH7CBCGdsS7WyerOWG4lEyPI9Suu9UxUcWlLCitKXIbdKG4F/NjBbsUY240IJI/xjhNK/7Ig4X5q66CcTpGqTYKSTLuhMIA/u2F1i7UzzXhNCenu5YlhoSFucSy3Gf+UiM3ZZorgEhzaONIGHsoMtgf4by1/iR7qL7Ap1j0/t3TUdiDrDAGUBLeFquo/73IHu66cLUTWF8F4WKIOGUBiEretZ/LircNUeSB9rPCNsqR0fi33sDrXsaWu3nctN1d8Tjcwy9GRHo1KhS1FbsrKj90HoSREMnsPvbU4jjUsD9oHUGb2GwaI/4kIXyFdPsgNtWTL4X66FgzIvouexprH0uo1CCIiFh1Pz/+TvwDzIiEwr6Nj1T5UXyaH89H7NjMBqctVy9h1h8GqhXpEP7SAhib43E3QKkx0lUPsd/dVtzt3yDtMsy4+f0lRFU4BQ== jaid.jsx@gmail.com