Skip to content

Instantly share code, notes, and snippets.

@Bluscream
Bluscream / composer.json
Last active June 8, 2023 02:11
Raidmax Server List Scraper with caching (supports "php", "php-pretty", "csv", "json", "html","txt","favorites")
{
"require": {
"symfony/browser-kit": "^5.4",
"symfony/process": "^5.4",
"symfony/http-client": "^5.4",
"symfony/dom-crawler": "^5.4",
"symfony/css-selector": "^5.4",
"voku/stringy": "^6.5"
}
}
@Bluscream
Bluscream / hosts.php
Created May 20, 2023 19:25
AdguardHome HOSTS file generator
<?php
header('Content-Type: text/plain; charset=utf-8');
require("../.config.php"); // contains $servers array
if (isset($_GET["dl"])) header('Content-Disposition: attachment; filename="hosts"');
function update_keypair(/* map[string,mixed] */ $array, /* string */ $key, /* string */ $value) {
if (!isset($array[$key])) {
$array[$key] = array($value);
} else {
if (!in_array($value, $array[$key])) {
$array[$key][] = $value;
@Bluscream
Bluscream / app.py
Last active December 28, 2023 00:36
motionEye camera settings wrapper api flask python script
from flask import Flask, request
from motioneye_client.client import MotionEyeClient
from aiohttp import ClientSession
from json import dumps
from simpleeval import simple_eval
from base64 import b64decode
from config import *
# print(url)
@Bluscream
Bluscream / mod_sorter.py
Created April 24, 2023 00:05
Minecraft Mod Sorter
import hashlib
import os
from pathlib import Path
from pprint import pformat
import json
import urllib3
import logging
import shutil
from packaging.version import parse as _parse_version
from packaging.version import InvalidVersion
@Bluscream
Bluscream / requestly_rules.json
Created April 22, 2023 01:12
Requestly rules
[
{
"createdBy": "LYH3grKnoXS70CSSqQWm4RqpXmr2",
"creationDate": 1643986033516,
"currentOwner": "LYH3grKnoXS70CSSqQWm4RqpXmr2",
"description": "Turn it on and try opening example.com?utm_source=gmail",
"groupId": "Group_deddi",
"id": "QueryParam_az606",
"isSample": false,
"lastModifiedBy": "LYH3grKnoXS70CSSqQWm4RqpXmr2",
@Bluscream
Bluscream / settings.ini
Created April 22, 2023 00:35
RestartOnCrash
[general]
RestartGracePeriod=30
Autorun=0
StartMinimized=1
LogToFile=1
LogFileName=C:\Users\blusc\AppData\Local\Temp\RestartOnCrash.log
CheckForUpdates=1
MinimizeOnClose=1
ManualRestartConfirmationEnabled=1
@Bluscream
Bluscream / README.md
Last active April 14, 2023 01:35
Merge Minecraft servers.dat files across your PC

Example usage:

python merge_minecraft_servers_dat.py --ping --skip --write

Example Output:

PS P:\Python\minecraft>  p:; cd 'p:\Python\minecraft'; C:\Python311\python.exe c:\Users\blusc\.vscode\extensions\ms-python.python-2023.6.0\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher 49522 -- P:\Python\minecraft\servers.py --ping --skip 
Loaded 14 from B:\Timo\Quest\SideQuest\net.kdt.pojavlaunch.debug\data\2022-03-20T14-47-48.248Z\files\.minecraft\servers.dat
Loaded 14 from B:\Timo\Quest\SideQuest\net.kdt.pojavlaunch.debug\data\2022-04-23T08-44-11.327Z\files\.minecraft\servers.dat
@Bluscream
Bluscream / fbt-tracker-comparison.md
Last active February 8, 2024 00:26
Full Body Tracking Solutions Comparison
SlimeVR Vive Tundra AprilTag Amethyst StonX owoTrack
Developer SlimeVR HTC Tundra Ju1ce, DIY K2VR Team
Form factor 5x 50 g trackers 3x 75 g trackers 3x 50 g trackers QR codes & central camera Central camera
Battery Life 15 h 7.5 h 7 h
Base station No (Wi-Fi) SteamVR Lighthouse SteamVR Lighthouse An
@Bluscream
Bluscream / iw4x_load_order.md
Last active January 29, 2023 23:31
IW4x Load Order

Prio = lowest to highest = higher overrides lower!

Priority Path
1 devraw/
2 devraw/some.iwd/
3 raw/
4 raw/some.iwd/
5 iw4x/
6 iw4x/some.iwd/
@Bluscream
Bluscream / add_headers.ps1
Last active January 11, 2023 20:33
Bulk-Add headers to requestly exported rules
$headers = Get-Content "Desktop\headers.txt"
$json = Get-Content "Desktop\requestly_rules.json" | ConvertFrom-Json
# Create a new array to hold the modifications
$modifications = @()
# Create a variable to keep track of the last id number
$idNumber = 0
foreach ($header in $headers) {