Skip to content

Instantly share code, notes, and snippets.

View Fooftilly's full-sized avatar
🤺

Nikola Perović Fooftilly

🤺
View GitHub Profile
@Fooftilly
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 https://gist.github.com/Fooftilly
// @downloadURL https://gist.github.com/Fooftilly/509ddfbbc0395c0ff209f3fdea112187/raw/Letterboxd_to_RYM_Film_Search.user.js
// @updateURL https://gist.github.com/Fooftilly/509ddfbbc0395c0ff209f3fdea112187/raw/Letterboxd_to_RYM_Film_Search.user.js
// @match https://letterboxd.com/film/*
// @grant none
@Fooftilly
Fooftilly / limit-ratio.py
Last active February 3, 2024 16:09
Limit upload speed in qBittorrent based on the upload ratio of individual torrents
#!/usr/bin/python
import qbittorrentapi #Download here: https://pypi.org/project/qbittorrent-api/
import time
# SETTINGS:
# Upload speed of an individual torrent won't be limited until it reached this ratio
UNLIMITED_RATIO = 5
UNLIMITED_SPEED = -1 # Default upload speed for torrents below UNLIMITED_RATIO (set to -1 for infinite)
@Fooftilly
Fooftilly / dlibme.sh
Last active November 15, 2023 23:25
Dlib.me downloader
#!/bin/bash
base_url="https://www.old.dlib.me/sken_prikaz_1_f.php?id_jedinice="
image_base_url="https://www.old.dlib.me/"
current_id=1
while true; do
url="${base_url}${current_id}"
content=$(wget -q -O - "$url")
@Fooftilly
Fooftilly / ratio.py
Created October 11, 2023 18:18
Torrent ratio for Qbittorrent - Automatically update stats
#!/usr/bin/python
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
Fooftilly / warrior-reddit-stats.py
Last active September 30, 2023 16:03
Retrive stats by username. Run warrior-reddit-stats.py 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 = 'https://legacy-api.arpa.li/reddit/stats.json'
@Fooftilly
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
Fooftilly / gitlab-latest.py
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.
#!/usr/bin/python
import requests
import json
# Replace <GITLAB_PROJECT_ID> with the ID of your GitLab project
url = "https://gitlab.com/api/v4/projects/<GITLAB_PROJECT_ID>/releases"
# Get the latest release
response = requests.get(url)
@Fooftilly
Fooftilly / ratio.sh
Last active November 29, 2023 17:21
Simple ratio calculator
#!/bin/sh
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)
@book{hegel1975,
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ć}
}
@book{eliot1963,
@Fooftilly
Fooftilly / file.tex
Created November 4, 2020 20:18
LaTeX
%Compile with Xelatex
\documentclass[12pt,serbian]{article}
\usepackage[serbian]{babel}
\usepackage{fontspec}
\setmainfont{FreeSerif}
\setsansfont{FreeSans}
\setmonofont{FreeMono}
\usepackage{blindtext}