Tuesday, October 17, 2023

Disable IPv6 on Debian

Append the following in the /etc/sysctl.conf file:


net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.tun0.disable_ipv6 = 1

and run:

sudo sysctl -p

and reboot

Saturday, October 14, 2023

Remove rate limit on pi-hole

Edit /etc/pihole/pihole-FTL.conf

Change RATE_LIMIT line to:

RATE_LIMIT=0/0

then restart pi-hole:

sudo service pihole-FTL restart

You won't see random DNS resolution issues again!


Thursday, October 5, 2023

Resizing video using FFMPEG and Nvidia GPU

Recently I had to resize a rather large 4k H.265 video file to 1080p H.265 file. This is what I used. SO much faster than using the CPU for decoding!

ffmpeg.exe -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i <input file> -resize 1920x1080 -c:v hevc_nvenc -preset fast -rc vbr -acodec copy <output file>