Skip to content

Instantly share code, notes, and snippets.

View vincejv's full-sized avatar
🐶
Work-life balance

Vince JV vincejv

🐶
Work-life balance
View GitHub Profile
@vincejv
vincejv / hb_installation_guide.txt
Last active May 10, 2024 15:27
HB Fork Installation Guide
Windows Installation instructions:
1. Download windows handbrake build from official handbrake website, only built against v1.7.3 gui, download that version: https://handbrake.fr/downloads.php
2. Download the hb.dll for your platform on github (use the DLL link)
3. Replace hb.dll in handbrake install directory with the dll file downloaded, make sure to rename the downloaded dll file to hb.dll
4. You need to restart handbrake if you have it opened
5. Verify in the about menu if it says "Handbrake v1.7.x-reloaded version hash"
Linux installation:
1. Install docker
@vincejv
vincejv / architectures.txt
Last active May 11, 2024 06:27
March guide
Generic
x86-64 : Processors lacking SSE4.2 and newer features
x86-64-v2 : Processors with features up to and including SSE4.2
x86-64-v3 : Processors with features up to and including AVX AND AVX2
x86-64-v4 : Processors with features up to and including AVX512
AMD
Generation Archit. Generic Build / Recommended build
Ryzen 1000 AVX2 x86-64-v3 / znver1
Ryzen 2000 AVX2 x86-64-v3 / znver1
* {
animation: none !important;
}
svg {
display: none;
}
@vincejv
vincejv / thelounge-dark-compact.css
Last active January 20, 2024 11:56
Compact Dark - The Lounge CSS (based on aab12345's flat dark theme)
/*!
* A simple flat theme with dark colours
* By aab12345 (modified by vincejv)
*
* License: MIT
* Compatible with The Lounge 4.2.0 / 4.3.0 / 4.4.0
* Last Updated: 01/20/2024
* Preview: https://i.imgur.com/8UgEkNL.png
*/
@vincejv
vincejv / misccoms.sh
Created December 24, 2023 07:13
Misc commands
# MD5 sum of a folder
find folder/ -type f -print0 | xargs -0 md5sum | md5sum
@vincejv
vincejv / mkvtools.sh
Last active April 27, 2024 13:53
MKV Tool Commands for Subs
# Change title and audio track languaage
mkvpropedit --edit info --set "title=The movie" --edit track:a1 --set language=tl input.mkv
# Rename track title
mkvpropedit *.mkv -e track:a1 -s name="Surround"
# Add encoding settings
for i in *.mkv; do mkvpropedit "$i" --tags track:v1:tags.xml; done
# Copy from public to uploads folder
for i in *.mkv; do mkdir "/data/torrents/uploads/${i%.*}"; done
@vincejv
vincejv / postgres.txt
Last active November 1, 2023 06:04
Postgres
# List users
SELECT * FROM pg_catalog.pg_user;
# Create user
CREATE USER youruser WITH ENCRYPTED PASSWORD 'yourpass';
# Create db owned by user
CREATE DATABASE "sonarr-main" OWNER sonarr;
CREATE DATABASE "sonarr-log" OWNER sonarr;
@vincejv
vincejv / gnome-tweaks.sh
Last active November 1, 2023 05:59
Gnome Tweaks (Ubuntu 22.04)
# In Ubuntu 20.04 Focal Fossa, there's a simple setting you can configure in Appearance -> Dock -> Show on:
# Dock tweaks (Doesn't work with Dock to Panel)
# minimize on click
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
# show icons that are open on that screen
gsettings set org.gnome.shell.extensions.dash-to-dock isolate-monitors true
@vincejv
vincejv / lxc-commands-openwrt.sh
Last active November 13, 2023 13:08
LXC OpenWRT
lxc-create --name ubuntu-jammy --template download -- --dist ubuntu --release jammy --arch amd64
lxc-start -n ubuntu-jammy # start
lxc-stop -n ubuntu-jammy # stop
lxc-ls -f # list
lxc-attach -n ubuntu-jammy
# usermods
adduser vince
apt install -y sudo
addgroup vince sudo
@vincejv
vincejv / pihole.conf
Created May 26, 2021 16:21
Pihole Lighttpd - Reverse Proxy to nginx
# Access Pihole UI on http[s]://web.tld/pihole
# Add ^~ to disable php execution, since lighttpd has already executed the
# php scripts, no need to execute the output of php files from lighttpd
location ^~ /pihole/ {
proxy_pass http://localhost:6775/admin/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 90;