Skip to content

Instantly share code, notes, and snippets.

View Fooftilly's full-sized avatar

Nikola Perović Fooftilly

View GitHub Profile
Fooftilly / Letterboxd_to_RYM_Film_Search.user.js
Last active June 13, 2024 09:50
A handy ChatGPT userscript that adds a button below the film poster on Letterboxd, allowing you to search for the same film on RateYourMusic.
// ==UserScript==
// @name Letterboxd to RYM Search
// @version 0.5
// @description A handy ChatGPT userscript that adds a button below the film poster on Letterboxd, allowing you to search for the same film on RateYourMusic
// @author ChatGPT
// @namespace
// @downloadURL
// @updateURL
// @match*
// @grant none
Fooftilly /
Last active February 3, 2024 16:09
Limit upload speed in qBittorrent based on the upload ratio of individual torrents
import qbittorrentapi #Download here:
import time
# Upload speed of an individual torrent won't be limited until it reached this ratio
UNLIMITED_SPEED = -1 # Default upload speed for torrents below UNLIMITED_RATIO (set to -1 for infinite)
Fooftilly /
Last active November 15, 2023 23:25 downloader
while true; do
content=$(wget -q -O - "$url")
Fooftilly /
Created October 11, 2023 18:18
Torrent ratio for Qbittorrent - Automatically update stats
from PyQt5.QtCore import QSettings, QVariant, QTimer, QCoreApplication
import sys
import signal
from datetime import datetime
import os
def bytes_to_tebibytes(bytes_value):
# Convert bytes to tebibytes (TiB) with 3 decimal points
Fooftilly /
Last active September 30, 2023 16:03
Retrive stats by username. Run username to get your stats.
import requests
import json
import argparse
import logging
from datetime import datetime
def get_downloader_stats(username):
# The URL of the JSON data
url = ''
Fooftilly / SpotifySiRemover.js
Created August 8, 2023 14:42
Remove tracking from Spotify links when pasting them
// ==UserScript==
// @name Remove Spotify si parameter
// @version 1.0
// @description Automatically remove the si parameter from Spotify links when pasting them
// @match *://*/*
// @author ChatGPT
// @grant none
// ==/UserScript==
(function() {
Fooftilly /
Created February 16, 2023 14:21
Download latest release from Gitlab. You would need to modify <GITLAB_PROJECT_ID> and <GITLAB_PROJECT_RELEASE_FILE> for script to work.
import requests
import json
# Replace <GITLAB_PROJECT_ID> with the ID of your GitLab project
url = "<GITLAB_PROJECT_ID>/releases"
# Get the latest release
response = requests.get(url)
Fooftilly /
Last active November 29, 2023 17:21
Simple ratio calculator
echo "Enter value for All-time upload:"
read upload
echo "Enter value for All-time download:"
read download
ratio=$(echo "scale=2; $upload/$download" | bc)
author = {Georg Vilhelm Fridrih Hegel},
title = {Istorija filozofije},
year = {1975},
publisher = {Beogradski izdavačko-grafički zavod},
location = {Beograd},
edition = {treće izdanje},
translator = {Dr Nikola M. Popović}
Fooftilly / file.tex
Created November 4, 2020 20:18
%Compile with Xelatex