Skip to content

Instantly share code, notes, and snippets.

View royaleconqueso's full-sized avatar

royaleconqueso

  • There is water at the bottom of the ocean
View GitHub Profile
@royaleconqueso
royaleconqueso / gist:ef0315f98db5442927bfb95a1564bdbf
Created July 9, 2024 14:46 — forked from rudyj03/gist:0955b04b04cc7d584fb7034ce4e1e01d
Set up Pi Hole via Docker with DHCP with instructions for a Verizon fios router
Pi-Hole
Installation:
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
sudo usermod -aG docker pi
newgrp docker
sudo systemctl enable docker
git clone https://github.com/pi-hole/docker-pi-hole.git
@royaleconqueso
royaleconqueso / xbrightness
Last active October 13, 2023 11:34 — forked from PhrozenByte/xbrightness
Zenity dialog to set screen brightness using xrandr
#!/bin/bash
export LC_ALL=C
if ! [ -x "$(command -v bc)" ]; then
echo "${bold}Oh, no! This script requires that you have bc installed and available in your path. ${natural}Exiting..." >&2
exit 1
fi
@royaleconqueso
royaleconqueso / ffmpeg-watermark.md
Last active October 23, 2020 11:33 — forked from bennylope/ffmpeg-watermark.md
FFmpeg add a watermark to video

How to Add a Watermark to Video

FFMPEG filters provide a powerful way to programmatically enhance or alter videos, and it's fairly simple to add a watermark to a video using the overlay filter. The easiest way to install ffmpeg is to download a pre-built binary for your specific platform. Then you don't have to worry about including and installing all the right dependencies and codecs you will be using.

Once you have ffmpeg installed, adding a watermark is as easy as passing your existing source through an overlay filter like so:

ffmpeg -i test.mp4 -i watermark.png -filter_complex "overlay=10:10" test1.mp4

Basically, we're passing in the original video, and an overlay image as inputs, then passing it through the filter, and saving the output as test1.mp4.