Skip to content

Instantly share code, notes, and snippets.

View rodhfr's full-sized avatar
🎯
Focusing

Rodolfo Souza rodhfr

🎯
Focusing
View GitHub Profile
#EXTM3U
#EXTINF:-1,My Stream m3u8
http://192.168.0.13:8888/mystream/index.m3u8
#EXTINF:7,rtmp
http://192.168.0.13/mystream
#EXTINF:12,RTSPagoradoBOM
rtsp://192.168.0.13:8554/mystream
@rodhfr
rodhfr / set gnome workspaces shortcut
Created August 21, 2023 13:42
Pop-os 22.04 just have the first four possible in the settings but i've encontered this commands that works. just type in the terminal.
gsettings set org.gnome.mutter dynamic-workspaces false
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-5 "['<Alt>5']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-5 "['<Alt><Shift>5']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-6 "['<Alt>6']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-6 "['<Alt><Shift>6']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-7 "['<Alt>7']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-7 "['<Alt><Shift>7']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-8 "['<Alt>8']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-8 "['<Alt><Shift>8']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-9 "['<Alt>9']"
Making the Wiki Mobile Responsive
Certain steps are needed for this, nothing is easy with this platform. Albeit various approaches, the Wikipedia utilizes the extension MobileFrontend https://www.mediawiki.org/wiki/Extension:MobileFrontend to make the mobile users see other skin instead of the one that is showed in the desktop.
Some useful links
MobileFrontend GitHub https://github.com/wikimedia/mediawiki-extensions-MobileFrontend
Mobile Frontend configurations options page
Installing the extension MobileFrontend https://github.com/wikimedia/mediawiki-extensions-MobileFrontend#configuration-options
@rodhfr
rodhfr / Setup Jellyfin Scrobble Plugin.txt
Last active May 30, 2023 15:36
Setup Jellyfin Scrobble Plugin
Plugin homepage https://github.com/vosmiic/jellyfin-ani-sync
Official nstallation guide https://github.com/vosmiic/jellyfin-ani-sync/wiki/Installation-&-Config
Click on generate callback URL. In case you are using jellyfin on local network, e.g. http://192.168.0.60:8096/AniSync/authCallback is mine. If you're using any VPS service, it would be the hostname you access Jellyfin like mysitejellyfin.com, and you have to supply this on the API endpoint box.
My animelist save location is C:\Users\YOURUSER\AppData\Roaming\jellyfin-anisync this is the default as far as I know.
Test save location
@rodhfr
rodhfr / setup.md
Last active May 2, 2023 02:37
Setup Chrome-Remote-Desktop with sound on Debian based distros

Setup Chrome-Remote-Desktop with sound on Debian based distros

Finally i got to setup chrome remote desktop on debian based distros working with sound

I'm no expert and it took me a whole day to figure out this process, because it's not straightforward at all.

install google chrome (i don't know if really needed)

go to https://remotedesktop.google.com

>setup via ssh

http://192.168.0.60:3131/149229
@rodhfr
rodhfr / README.md
Created April 4, 2023 01:42 — forked from kabili207/Rclone systemd service.md
Rclone systemd user service

rclone systemd service

Preparation

This service will use the same remote name you specified when using rclone config create. If you haven't done that yet, do so now.

Next, create the mountpoint for your remote. The service uses the location ~/mnt/<remote> by default.

mkdir ~/mnt/dropbox
@rodhfr
rodhfr / hevc_amf
Created January 25, 2023 23:13 — forked from nico-lab/hevc_amf
ffmpeg -h encoder=hevc_amf
Encoder hevc_amf [AMD AMF HEVC encoder]:
General capabilities: dr1 delay hardware
Threading capabilities: none
Supported hardware devices: d3d11va d3d11va dxva2 dxva2
Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld
hevc_amf AVOptions:
-usage <int> E..V....... Set the encoding usage (from 0 to 3) (default transcoding)
transcoding 0 E..V.......
ultralowlatency 1 E..V.......
lowlatency 2 E..V.......