Skip to content

Instantly share code, notes, and snippets.

View hyperdefined's full-sized avatar
🐺
bark bark!

hyperdefined

🐺
bark bark!
View GitHub Profile
# mostly made with ai because I am lazy
import os
import requests
from urllib.parse import urlparse
json_url = 'https://storage.googleapis.com/panels-api/data/20240916/media-1a-i-p~s'
output_folder = 'output'
if not os.path.exists(output_folder):
os.makedirs(output_folder)

How to setup reddit for a cobalt instance

Step 1

Create an app here: https://www.reddit.com/prefs/apps image

The information can be anything. Make sure to set it to web app and redirect uri to http://localhost:8080

Step 2

Copy the client ID and client secret tokens.

@hyperdefined
hyperdefined / cobalt.md
Last active March 23, 2025 20:21
cobalt instance dump I found online

How did you find these?

I used a service called Censys Search to find them. There's some queries you can do:

  • services.http.response.html_title: "cobalt"
    • This one can find web instances. Does lead to false positives, since any title can contain "cobalt."
  • services.http.response.body_hash="sha1:bf53b9ab96065ed263df9ebcd2b3b0c4d88242b5"
    • This one can find API instances. This is the hash of the response that all instances use.
  • You can probably also look for just port 9001/9000, but most of these ports are not default.

After I collected the list, I checked /api/serverInfo on the API instances to see if it has a url set. This can either be a subdomain or an IP. If it had a domain set, I tried to find the web instance by checking common subdomains (like co, cobalt, etc). If there were no connecting domains, I tried a look up the IP on SecurityTrails. Otherwise, it simply got listed as the IP.

@hyperdefined
hyperdefined / AutoAFKMessage.lua
Created March 26, 2024 21:58
Simple WOW addon to reply to whispers with an AFK message if you're set /afk. Thank you ChatGPT for making this since I was too lazy.
-- Define the addon name and version
local ADDON_NAME, ADDON_VERSION = "AutoAFKMessage", "1.0"
-- Create a frame to handle events
local frame = CreateFrame("Frame")
-- Register for events
frame:RegisterEvent("CHAT_MSG_WHISPER")
-- Set the away message
^k::Send %clipboard%
{
"banner": "this is a test banner!",
"open": true
}
Bukkit.getScheduler().runTaskAsynchronously(this, this::checkForUpdates);


public void checkForUpdates() {
        GitHubReleaseAPI api;
        try {
            api = new GitHubReleaseAPI("repo", "hyperdefined");
        } catch (IOException e) {
            logger.warning("Unable to check updates!");
---- Minecraft Crash Report ----
// Everything's going to plan. No, really, that was supposed to happen.
Time: 10/30/21, 4:37 PM
Description: Watching Server
java.lang.Error: Watchdog
at net.minecraft.class_3178.run(class_3178.java:52)
at java.base/java.lang.Thread.run(Thread.java:831)
---- Minecraft Crash Report ----
// There are four lights!
Time: 10/9/21, 9:35 PM
Description: Initializing game
org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363)
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:208)
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:178)
mv ^(.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.++)$^