Skip to content

Instantly share code, notes, and snippets.

View prolix-oc's full-sized avatar

Prolix OCs prolix-oc

View GitHub Profile
// ==UserScript==
// @name LMArena Proxy Injector V2
// @namespace https://github.com/prolix-oc/lmarena-proxy
// @version 2.0.0
// @description Enhanced version with improvements from lmarena-fd, better model extraction, and API compatibility
// @author Prolix OCs (enhanced)
// @match https://*.lmarena.ai/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=lmarena.ai
// @grant none
// @run-at document-start
// ==UserScript==
// @name LMArena Proxy Injector V3
// @namespace https://github.com/prolix-oc/lmarena-proxy
// @version 3.0.0
// @description Simplified version using retry endpoint to avoid CloudFlare issues
// @author Prolix (enhanced)
// @match https://*.lmarena.ai/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=lmarena.ai
// @grant none
// @run-at document-end
! name: StopTheJunk
! description: Remove results from a LOT of known extra-long junkifier sites that might make your token count soar.
! public: true
! author: Prolix OCs
$discard,site=en.wikipedia.com
$discard,site=wikipedia.com
$discard,site=menuguildsystem.com
$discard,site=australianfauna.com
$discard,site=nyfco.org
@prolix-oc
prolix-oc / gist:c62ed576b9390f3d3f358a0d5c003363
Created September 15, 2024 01:27
Improved Imgur V3 API Upload Script for the fb2k foo_discord_rich component.
import requests # pip install requests
import sys, os
import random, string
from io import BytesIO
from PIL import Image # pip install Image
size = 512, 512 # RPC doesn't need a bigger image than this, let's be honest.
url = "https://api.imgur.com/3/image"
payload = { 'type': 'image' } # Letting Imgur know what we're sending them
@prolix-oc
prolix-oc / tautulli.log
Created June 14, 2024 01:31
Tautulli Logs (but with nothing useful)
2024-06-13 21:26:26 - INFO :: MainThread : Starting Tautulli v2.14.2
2024-06-13 21:26:26 - INFO :: MainThread : [Docker] Linux 6.9.1-zen1-1-zen (#1 ZEN SMP PREEMPT_DYNAMIC Fri, 17 May 2024 16:56:18 +0000 - Debian GNU/Linux 12 bookworm)
2024-06-13 21:26:26 - INFO :: MainThread : America/New_York (UTC-0400)
2024-06-13 21:26:26 - INFO :: MainThread : Language en_US / Encoding UTF-8
2024-06-13 21:26:26 - INFO :: MainThread : Python 3.11.8 (main, Mar 12 2024, 11:52:02) [GCC 12.2.0]
2024-06-13 21:26:26 - INFO :: MainThread : SQLite 3.40.1
2024-06-13 21:26:26 - INFO :: MainThread : Program Dir: /app
2024-06-13 21:26:26 - INFO :: MainThread : Config File: /config/config.ini
2024-06-13 21:26:26 - INFO :: MainThread : Database File: /config/tautulli.db
2024-06-13 21:26:26 - INFO :: MainThread : Checking if the database upgrades are required...