Skip to content

Instantly share code, notes, and snippets.

View SingularReza's full-sized avatar
🐢
buzzing

SingularReza SingularReza

🐢
buzzing
  • Jurgenschmidt
View GitHub Profile
@SingularReza
SingularReza / loveToJellyfin.sh
Last active August 27, 2025 05:04
A bash script to import "LOVE RATING" values from FLAC metadata to jellyfin favorites and vice versa. Generated from pseudocode using AI so use it at your own risk
#!/bin/bash
###################################################################################
# Jellyfin FLAC Favorites and Play Count Bidirectional Sync Script
###################################################################################
#
# DESCRIPTION:
# This script provides bidirectional synchronization between FLAC files and
# Jellyfin favorites/play counts based on Vorbis comment tags.
#
@SingularReza
SingularReza / originalTitleFix.css
Last active September 4, 2025 11:29
A fix to add original title back in elegant theme for jellyfin
.nameContainer {
flex-direction: row;
align-items: baseline;
padding-bottom: 0.25em;
overflow: auto;
justify-content: center !important;
}
.detailImageContainer:has(.backdropCard,.squareCard)~.nameContainer h1:has(+ h3).parentName.focuscontainer-x {
display: none !important;
@SingularReza
SingularReza / muxer.sh
Created March 25, 2025 13:10
bash script to mux attachments downloaded from animetosho directly without any preprocessing. Make sure the files match the video when sorted in the name order in their respective directories
#!/bin/bash
mkdir -p output
for FILE in videos/*
do
video=$(ls -1 videos | sort | sed -n "${n}p")
font_folder=$(ls -1 -d fonts/*/ | sort | sed -n "${n}p" | sed 's:/$::')
if [[ -z "$video" || -z "$font_folder" ]]; then
@SingularReza
SingularReza / addtracker.py
Created October 9, 2024 08:05
python script to add trackers to multiple torrents at once in qbittorrent, from https://github.com/qbittorrent/qBittorrent/issues/18539#issuecomment-2395072253
import qbittorrentapi
# API Configuration
qb = qbittorrentapi.Client(host='http://0.0.0.0:8080', username='username', password='password')
# New tracker URL to replace existing trackers
new_tracker_url = "new Tracker URL"
# Attempt to log in to qBittorrent
try:
@SingularReza
SingularReza / createaudiobook.sh
Created September 2, 2024 10:22
A bash script to create WN audiobooks using edge-tts and the text file from whiteleaf's Narou.rb
#!/bin/bash
#requires edge-tts
#run in the same directory as the text file
read -p 'Enter the filename: ' TEXTFILE
read -p 'Enter voicetype (m/f) (default f): ' VOICE
# turn aozora formatted text into simple text file
perl -pe 's/[#.*?]//g' $TEXTFILE > TMP.txt
@SingularReza
SingularReza / docker.md
Created August 21, 2024 03:49 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@SingularReza
SingularReza / shortcuts.ahk
Created February 9, 2024 12:17
A simple ahk script for all my shortcuts
#Requires AutoHotkey v2.0
#f::Run "C:\Program Files\Everything\Everything.exe"
#b::Run "C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
#PgUp::Send "{Volume_Up 1}"
#PgDn::Send "{Volume_Down 1}"
#h:: {
@SingularReza
SingularReza / install_elasticsearch_ubuntu_wsl2.sh
Created January 29, 2023 11:58 — forked from madaarya/install_elasticsearch_ubuntu_wsl2.sh
Step by step Install elasticsearch on wsl2 + ubuntu
// elasticsearch version 7
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-7.5.2-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-7.5.2-linux-x86_64.tar.gz.sha512
shasum -a 512 -c elasticsearch-oss-7.5.2-linux-x86_64.tar.gz.sha512
tar -xzf elasticsearch-oss-7.5.2-linux-x86_64.tar.gz
cd elasticsearch-oss-7.5.2/
echo 'export ES_HOME="$HOME/elasticsearch-7.5.2/"' >> ~/.bashrc
echo 'export PATH="$ES_HOME/bin:$PATH"' >> ~/.bashrc
exec $SHELL
@SingularReza
SingularReza / epubcoverextractor.sh
Created April 8, 2022 14:50
bash script to extract covers from a bunch of epubs
ls *.epub | % {7za e -y $_ cov*.jp*; mv cover*.j* ($_.name -replace "epub","jpg")} ;
@SingularReza
SingularReza / nijiholo-liveviewer-plotter.py
Last active January 14, 2022 04:25
records the total concurrent viewers over a time (polls every 15 min) and outputs it to a graph in html
from bokeh.plotting import figure, output_file, save
from bokeh.models import BasicTickFormatter
from datetime import datetime
import json
import requests
import time
import os
from bokeh.models.tools import HoverTool
def parse_json(response):