Skip to content

Instantly share code, notes, and snippets.

View ShayBox's full-sized avatar
:shipit:

ShayBox

:shipit:
View GitHub Profile
@ShayBox
ShayBox / main.py
Created May 7, 2026 07:27
Osu Most Played Downloader | Some vibe coded shit that abuses multiple APIs
import requests
import time
import os
import re
from tqdm import tqdm
# Try APIs in order. Use {} for beatmapset_id formatting.
DOWNLOAD_APIS = [
"https://api.nerinyan.moe/d/{}",
"https://catboy.best/d/{}",
@ShayBox
ShayBox / README.md
Last active June 1, 2025 20:28
Shay's Android Rooting Guide
@ShayBox
ShayBox / lib.rs
Created March 30, 2025 07:21
My Minecraft TCP Proxy written in Rust
#[macro_use]
extern crate tracing;
use std::{collections::VecDeque, fmt::Display, net::SocketAddr};
use anyhow::{bail, Context, Error, Result};
use derive_more::{Deref, DerefMut};
use hickory_resolver::Resolver;
use tokio::{
io::{copy_bidirectional, AsyncReadExt, AsyncWriteExt},
@ShayBox
ShayBox / qemu
Created January 10, 2025 01:04
Dual GPU Passthrough Libvirt/QEMU Hook
#!/usr/bin/env bash
set -e
GPU="0000_41_00"
if [[ "$1" == "Windows-11-GPU" ]]
then
case "$2" in
"prepare")
echo "Preparing..." >&2
@ShayBox
ShayBox / main.rs
Created February 13, 2024 03:27
Infinite Craft automated with headless_chrome
use std::{collections::HashSet, time::Duration};
use anyhow::Result;
use derive_config::{json::Value, DeriveJsonConfig, DeriveTomlConfig};
use headless_chrome::{browser::default_executable, Browser, LaunchOptions};
use serde::{Deserialize, Serialize};
#[derive(Debug, Default, DeriveJsonConfig, Deserialize, Serialize)]
struct Combinations(HashSet<(String, String)>);
@ShayBox
ShayBox / docker-compose.yml
Created October 23, 2023 18:02
Windscribe + Gluetun + Wireguard
version: "3"
services:
windscribe-mountain:
image: qmcgaw/gluetun
container_name: windscribe-mountain
# line above must be uncommented to allow external containers to connect.
# See https://github.com/qdm12/gluetun-wiki/blob/main/setup/connect-a-container-to-gluetun.md#external-container-to-gluetun
cap_add:
- NET_ADMIN
devices:
@ShayBox
ShayBox / main.py
Created July 6, 2023 04:15
Temporary low voltage detection using standard deviation for RPI Pico W & CircuitPython
import analogio
import board
import math
import time
voltage = analogio.AnalogIn(board.VOLTAGE_MONITOR)
voltage_conversion_factor = 3 * 3.3 / 65535
def calculate_mean(data):
return sum(data) / len(data)
@ShayBox
ShayBox / CubemapExtractor.cs
Created June 26, 2023 08:59
Unity editor script that extracts 6 sided images from a cubemap
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Linq;
public class CubemapExtractor : Editor
{
private static readonly CubemapFace[] CubemapFaces = new CubemapFace[]
{
CubemapFace.PositiveX, // Right
@ShayBox
ShayBox / CustomPlaylist.py
Created March 12, 2023 22:30
Create ProTV YouTube Playlists
from dataclasses import astuple, dataclass
from yt_dlp import YoutubeDL
from json import JSONEncoder
from tqdm import tqdm
import json
class FakeLogger:
def debug(self, msg):
pass
@ShayBox
ShayBox / ShaysUploadTool.cs
Last active April 27, 2023 02:09
My custom VRChat avatar upload tool
using System.Linq;
using UnityEditor;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using VRC.SDK3.Avatars.Components;
using VRC.SDKBase.Editor;
namespace ShayBox {