Skip to content

Instantly share code, notes, and snippets.

oldmud0 /
Created June 4, 2022 15:36
NIC BIN lookup API

BIN lookup api

$ http post prefix="5149"
HTTP/1.1 200 OK
Cache-Control: private,no-cache, no-store, must-revalidate 
Content-Length: 303
Content-Type: application/json; charset=utf-8
Date: [redacted]
oldmud0 /
Created June 10, 2021 02:07
Google Foobar API v1

Base URL:

Supports HTTP/3. Server name is "Google Frontend." You will need a sessionid and SACSID cookie.

All POST requests use form data.

POST /commands/save


oldmud0 / widgetdumper.cpp
Last active December 21, 2020 04:21 — forked from pjwhams/qtdumper.cpp
Dump size and position of Qt QWidgets and QLayouts
#include "widgetdumper.h"
#include <sstream>
#include <string>
#include <iostream>
#include <stdio.h>
#include <QtWidgets/QLayout>
#include <QtWidgets/QWidget>
#if _MSC_VER
oldmud0 /
Last active February 5, 2021 23:37
The AO2 Rite of Passage


For epochs, the secrets of how to correctly compile AO2 was buried in the mind of its creator. After over 12 painstaking hours experimenting, compiling, and pacing around my room aimlessly, I succeeded the rite of passage, and I, too, gained the power to compile AO2 into a single executable of less than 10 MB in size.

I shared this power with great care. But as my involvement in AO2 dwindles and the community yearns for their own clients and their own features, and I look through ZIP files in disgust as dozens of DLLs are strewn all over, I have decided to divulge the secrets of how to compile AO2 statically.

With this powerful guide, you can complete the AO2 rite of passage in three hours or less.


oldmud0 / client.js
Created July 8, 2018 04:08
node-ipc example with high client->server reliability (no dropped messages)
const ipc = require("node-ipc");
const async = require("async");
const queue = async.queue((data, cb) => {
// There is no way of checking if client is connected so just
// catch and put it back in the queue if a bad happens.
try {
ipc.of.test.emit("message", data);
} catch (err) {
oldmud0 /
Created May 1, 2018 22:16
Old GitHub Pages IP addresses for A records

On May 1, 2018, GitHub changed the suggested IP addresses to put on the A records for domains that use GitHub Pages. The new ones now support HTTPS for custom domains, but the old ones did not. Here are the old ones for historical purposes:


Here are the new ones:

oldmud0 /
Last active September 6, 2019 07:38
Extracts songs from the AO2 music folder into a YAML file for tsuserver3
Extracts songs from the AO2 music folder into a yaml file for tsuserver3.
This script will look through the music files present in the given music folder
and add/update the respective song lengths in the music.yaml. It will preserve
the category and positioning of existing tracks, while new tracks are added
to the "Uncategorized" category.
You can also create a fresh music.yaml with this script.
oldmud0 /
Last active July 12, 2017 00:42
Attorney Online Discord Rules

New general rules:

  • Apply common sense, if you have any.
  • Keep trolling contained. This means when there is a serious conversation going on, you keep it serious.
  • Criticism must be constructive, except in dire cases of irony.
  • No spamming, except in #spam.
  • No excess memery or dead, unfunny memes except in #memes.
  • No NSFW content in any channel, except for role-playing in #nsfw-erp.
  • No stalking, harassment, or excess profanity.
oldmud0 /
Last active April 2, 2017 02:46
vRouter proposal

A few days ago, it appeared to me that a virtual router software did not exist at all. Expensive Cisco software for simulating Cisco equipment exists, but it is used solely for their cert exams and labs. Router companies only offer blank/skeleton versions of their router's web configuration pages, but it does not offer a way to test routers without actually breaking them. Enter vRouter.

vRouter, if the project ever takes off, is an open-source project written in Qt intended to develop virtual networks based off real hardware from routers of every tier. Whether you want to test the stability of the newest DD-WRT firmware for your exact router model or need to assess a new configuration before deploying it to production routers, vRouter strives to replicate the workings of the vast variety of routers out there to make your job easier.

vRouter can let you build a network of any size and integrate it with existing networks. You can bridge your virtual network with virtual machines running in common virtual

set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/
" Always show statusline
set laststatus=2
" Use 256 colours (Use this setting only if your terminal supports 256 colours)
set t_Co=256
syntax on