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 / keybindings
Created Aug 11, 2022
Keybindings VSCode
View keybindings
[
{
"key": "ctrl+f",
"command": "explorer.newFile",
"when": "explorerViewletFocus"
},
{
"key": "ctrl+d",
"command": "explorer.newFolder",
"when": "explorerViewletFocus"
@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
@Jaid
Jaid / gitBash16.png
Last active Aug 8, 2022
My personal Windows Terminal preferences
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 / .zshrc
Last active Aug 4, 2022
My custom .zshrc template to quickly set up Debian server profiles
View .zshrc
#!/usr/bin/env zsh
if [ -f ~/.env ]; then
source ~/.env
fi
if [ -f ~/.secrets ]; then
source ~/.secrets
fi
@Jaid
Jaid / .secrets
Last active Aug 3, 2022
.secrets file template for user home directory, sourced in ~/.bashrc and ~/.zshrc
View .secrets
#!/usr/bin/env sh
# GitHub
export GITHUB_TOKEN=ghp_000000000000000000000000000000000000
# samba, see https://github.com/Jaid/setup-server/blob/main/composes/samba/docker-compose.yml
export sambaUser=sambaUser
export sambaPassword=
@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"}"
@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%