Skip to content

Instantly share code, notes, and snippets.

Avatar
🔴
Streaming coding sessions on Twitch!

Jaid

🔴
Streaming coding sessions on Twitch!
View GitHub Profile
@Jaid
Jaid / tarZstd.bash
Last active Aug 9, 2022
Create tar.zstd file from input directory in one step
View tarZstd.bash
# scripts
tar --create --file - archive | zstd -15 -T0 > archive.tar.zst
# tty
tar --create --file - archive | zstd --progress -15 -T0 > archive.tar.zst
@Jaid
Jaid / zstdHelp.txt
Created Aug 8, 2022
zstd CLI documentation (--help option)
View zstdHelp.txt
*** zstd command line interface 64-bits v1.5.2, by Yann Collet ***
Usage :
zstd [args] [FILE(s)] [-o file]
FILE : a filename
with no FILE, or when FILE is - , read standard input
Arguments :
-# : # compression level (1-19, default: 3)
-d : decompression
-D DICT: use DICT as Dictionary for compression or decompression
View gist:b60fd3f14eac06062944d31f1ee44e21
#!/usr/bin/env bash
set -o errexit
: "${otherReposFolder:="$HOME/src"}"
gitClone ryanoasis/nerd-fonts
cd "$otherReposFolder/nerd-fonts"
sudo ./install.sh --install-to-system-path DroidSansMono FiraCode Inconsolata JetBrainsMono NerdFontsSymbolsOnly SourceCodePro Ubuntu UbuntuMono
@Jaid
Jaid / htoprc
Created Aug 2, 2022
My custom htop config file for Ubuntu Server
View htoprc
fields=0 17 38 2 46 111 1
sort_key=46
sort_direction=-1
tree_sort_key=38
tree_sort_direction=-1
hide_kernel_threads=1
hide_userland_threads=0
shadow_other_users=0
show_thread_names=0
show_program_path=1
@Jaid
Jaid / results.csv
Last active Aug 2, 2022
SVT-AV1 encoding parameters comparison using FFmpeg
View results.csv
# Preset Quality Tune Size Time Absolute Time Relative VMAF
1 10 40 VQ 5,464,409 b 5 s 0.70 64.14%
2 10 40 PSNR 5,273,856 b 5 s 0.70 61.79%
3 10 30 VQ 11,569,091 b 5 s 0.70 80.38%
4 10 30 PSNR 11,213,887 b 5 s 0.70 77.90%
5 10 20 VQ 19,670,020 b 5 s 0.70 88.42%
6 10 20 PSNR 19,277,973 b 6 s 0.84 86.84%
7 9 40 VQ 5,353,115 b 7 s 0.98 65.69%
8 9 40 PSNR 5,216,642 b 7 s 0.98 64.58%
9 9 30 VQ 11,156,832 b 9 s 1.26 81.74%
@Jaid
Jaid / README.md
Last active Jul 31, 2022
SVT-AV1 encoding preset comparison using FFmpeg
View README.md

Results

Preset Size Time Speed
Input 2 822 666
10 2 945 966 6s 142%
9 2 938 516 11s 88%
8 2 817 094 16s 61%
7 2 779 557 24s 40%
6 2 752 068 41s 23%
@Jaid
Jaid / README.md
Last active Jul 30, 2022
FFmpeg help output
View README.md
Type Command
banner ffmpeg
formats ffmpeg -hide_banner -formats
codecs ffmpeg -hide_banner -codecs
encoders ffmpeg -hide_banner -encoders
decoders ffmpeg -hide_banner -decoders
filters ffmpeg -hide_banner -filters
@Jaid
Jaid / ffmpegMakeflags.txt
Last active Jul 30, 2022
All FFmpeg makeflags
View ffmpegMakeflags.txt
Usage: configure [options]
Options: [defaults in brackets after descriptions]
Help options:
--help print this message
--quiet Suppress showing informative output
--list-decoders show all available decoders
--list-encoders show all available encoders
--list-hwaccels show all available hardware accelerators
--list-demuxers show all available demuxers
@Jaid
Jaid / .gitconfig
Created Jul 30, 2022
My .gitconfig for Debian environments
View .gitconfig
[core]
eol = lf
autocrlf = false
editor = nano
[user]
name = Jaid
username = jaid
email = jaid.jsx@gmail.com
signingKey = 692243D6580C4583929E0D72D2D437CD3022B929
[commit]
@Jaid
Jaid / .bashrc
Last active Aug 2, 2022
Stub .bashrc for zsh main usage
View .bashrc
if [ -f ~/.env ]; then
source ~/.env
fi
if [ -f ~/.secrets ]; then
source ~/.secrets
fi
: "${userBinFolder:="$HOME/bin"}"
: "${otherReposFolder:="$HOME/src"}"