Skip to content

Instantly share code, notes, and snippets.

@andronedev
andronedev / ai-music-detector-api.py
Created May 24, 2026 20:29
lofcz/ai-music-detector FastAPI
"""FastAPI sidecar that scores audio with lofcz/ai-music-detector.
The model is a logistic regression (3585 features) loaded once at startup.
Audio is read from a shared volume; the Go worker sends a filename, not bytes.
The fakeprint extraction below is a direct port of the reference inference
script at https://github.com/lofcz/ai-music-detector/blob/main/src/python/inference.py
The training-time code lives in extract_fakeprints.py — both compute the same
features, only differing in batching. Steps:
@andronedev
andronedev / drifted.user.js
Created April 2, 2026 17:46
drifted king Region Switcher userscript
// ==UserScript==
// @name Drift King - Region Switcher
// @namespace drifted-bot
// @version 2.1
// @description Affiche et permet de changer la région, le serveur et la room
// @match https://www.drifted.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
@andronedev
andronedev / noVNCCopyPasteProxmox.user.js
Created March 12, 2026 22:38 — forked from ergoz/noVNCCopyPasteProxmox.user.js
Copy/Paste for noVNC Proxmox
// ==UserScript==
// @name noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.2a
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none
@andronedev
andronedev / ha-termux-install.sh
Last active July 27, 2024 15:58
TERMUX HOME ASSISTANT INSTALL
#!/data/data/com.termux/files/usr/bin/bash
set -e
# Couleurs pour les messages
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
@echo off
setlocal
:: Demande le mot de passe MySQL root
set /p MYSQL_ROOT_PASSWORD=Entrez le mot de passe MySQL root:
:: Met à jour Chocolatey et installe les dépendances
choco upgrade chocolatey -y
choco install git -y
choco install php -y
@andronedev
andronedev / delete_github_artifacts.sh
Last active April 22, 2024 17:05
GitHub Artifact Cleaner
#!/bin/bash
# Basic Documentation
cat << EOF
GitHub Artifact Cleaner
-----------------------
This script deletes all artifacts from a specified GitHub repository.
USAGE:
1. Ensure that the provided GitHub token has the necessary permissions to access the artifacts.
@andronedev
andronedev / hidegpt.user.js
Last active February 2, 2024 15:26
[AI HIDE] Easily hide chatgpt, bard, Gemini PRO, Claude.ai at school
// ==UserScript==
// @name [CHATGPT] Easily hide chatgpt at school
// @namespace http://tampermonkey.net/
// @version 1.2
// @description Change title and favicon of OpenAI Chat website
// @author @andronedev & @kckmdev
// @match https://chat.openai.com/*
// @match https://claude.ai/*
// @match https://bard.google.com/*
// @grant none
@andronedev
andronedev / install-discord.bash
Last active June 22, 2022 17:25 — forked from lnoering/install-discord.bash
Install discord (for the .tar.gz)
#!/usr/bin/env bash
cd ~/
mkdir -p ~/.local/bin
wget "https://discord.com/api/download/stable?platform=linux&format=tar.gz" -O discord.tar.gz
tar -xvf discord.tar.gz -C ~/.local/bin
sudo ln -s ~/.local/bin/DiscordCanary/discord.png /usr/share/icons/discord.png
sudo ln -s ~/.local/bin/DiscordCanary/DiscordCanary /usr/bin
wget https://gist.githubusercontent.com/AdrianKoshka/a12ca0bfe2f334a9f208aff72f8738c3/raw/9d606ad7ce7cc1dd23f6a99993e2396540538a02/discord.desktop -O discord.desktop
mkdir -p ~/.local/share/applications/
mv ~/discord.desktop ~/.local/share/applications/
@andronedev
andronedev / main.py
Last active March 14, 2022 18:48
VANCED SCRAPPER
import requests
import json
import os
import sys
androidVariants = ["armv7", "armv8", "x86", "x86_64", "arm64_v8a", "x86_64_aarch64"]
languages = ["fr", "en", "de", "es","it", "nl", "pl", "pt", "ru", "sv", "tr", "uk"]
themes = ["black", "dark"]
roots = ["root", "nonroot"]
@andronedev
andronedev / install_openjdk11.sh
Last active October 5, 2021 20:54 — forked from babjo/install_openjdk11.sh
A script to install openjdk11 with curl
curl https://download.java.net/java/ga/jdk11/openjdk-11_osx-x64_bin.tar.gz \
| tar -xz \
&& mv jdk-11.jdk java