Skip to content

Instantly share code, notes, and snippets.

View rodhfr's full-sized avatar
🎯
Focusing

Rodolfo Souza rodhfr

🎯
Focusing
View GitHub Profile
{
"type": "AlertGroup",
"alerts": [
{
"type": "InventoryAlert",
"inventoryAlertType": "ITEM",
"itemName": "Coin Pouch",
"isRegexEnabled": false,
"itemQuantity": 55,
"quantityComparator": "GREATER_THAN_OR_EQUALS",
mkdir -p converted
for f in *.mp4; do
ffmpeg -hwaccel qsv -i "$f" -c:v hevc_qsv -c:a copy "converted/${f%.mp4}_hevc.mp4"
done
@rodhfr
rodhfr / x11vnc
Created April 18, 2025 05:51
x11vnc
x11vnc -display :0 -auth ~/.Xauthority -nopw -noshm -forever -ncache 10 -ncache_cr
@rodhfr
rodhfr / podsync update yt-dlp
Created April 9, 2025 17:16
podsync update yt-dlp
docker exec -it podsync /usr/bin/youtube-dl -U
pdflatex question_3_34.tex
@rodhfr
rodhfr / ffmpeg udp video
Last active March 19, 2025 13:47
udp stream
ffmpeg -stream_loop -i "$input" -vf "subtitles=${input@Q}" -c:v libx264 -crf 18 -f mpegts udp://192.168.0.51:8581
# intel hevc_qsv # alternatively: h264_qsv
ffmpeg -stream_loop -1 -i "$input" -vf "subtitles=${input@Q}" -c:v hevc_qsv -global_quality 20 -look_ahead 1 -f mpegts udp://192.168.0.51:8581
# udp address is the client that the video is fowarded to

XDG Desktop Portals - Setup and Explanation

📌 Main Reference

The best source of information on XDG Desktop Portals is the Arch Linux Wiki.

🔍 What are XDG Desktop Portals?

xdg-desktop-portals act as bridges that allow Flatpaks (a type of container) to communicate with the host system.

Available Implementations

You can install multiple implementations without conflicts, such as:

Guide:

  1. Navigate to Settings > Admin Dashboard > Plugins > Repositories
  2. Add a new repository with a Repository URL of https://raw.githubusercontent.com/vosmiic/jellyfin-ani-sync/master/manifest.json. The name can be anything you like.
  3. Save, and navigate to Catalogue.
  4. Ani-Sync should be present. Click on it and install the latest version.

Fill the forms

  1. API endpoint -> only change this if you're acessing from outside localhost (127.0.0.1) if you are then use the server ip machine or the dns address
  2. Callback Redirect URL -> skip this
@rodhfr
rodhfr / tailscale funnel
Last active March 12, 2025 03:21
tailscale funnel self signed certificate
sudo tailscale funnel https+insecure://localhost:3001
@rodhfr
rodhfr / scrcpy fun commands.md
Last active March 8, 2025 02:04
scrcpy fun commands

Virtual display

--new-display=1920x1080

search for apps

adb shell pm list packages | grep vlc

in termux

pm list packages | grep vlc

Reduce bandwidth

--no-audio --max-fps=60