Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block oldmud0

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
oldmud0 / client.js
Created Jul 8, 2018
node-ipc example with high client->server reliability (no dropped messages)
View client.js
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
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 Sep 6, 2019
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 Jul 12, 2017
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 Apr 2, 2017
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

View .vimrc
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
# Ever wonder what all those optional updates are? There's an easy way to find out.
# Step 1: Go to Control Panel > Windows Update > Show optional updates.
# Step 2: Select all the updates you want to find the title of, then copy the update details.
# Step 3: Remove all the cruft and only leave the links.
# Step 4: Replace http with https and /kb/xxx with /api/content/kb/xxx.
# Step 5: Save the list of links.
# Step 6: Open up an MSYS shell and do the following (replace the .txt files with your own):
# (note: this will require curl and perl)
while read fn; do curl $fn -Lso - | perl -l -0777 -ne 'print $1 if /<h1.*?title=\"(.*?)\".*?>.*?/si'; done < '/r/updates.txt' > /r/updates_new.txt
oldmud0 / errors.txt
Last active Oct 29, 2016
Fix them!
View errors.txt
lua\entities\gmod_wire_egp\lib\egplib\transmitreceive.lua:19:7: expected expression near '!'
lua\entities\gmod_wire_egp\lib\egplib\usefulfunctions.lua:17:6: expected expression near '!'
lua\entities\gmod_wire_egp\lib\objects\3dtracker.lua:69:27: empty if branch
lua\entities\gmod_wire_egp\lib\objects\text.lua:47:7: expected expression near '!'
lua\entities\gmod_wire_egp\lib\objects\textlayout.lua:26:7: expected expression near '!'
lua\entities\gmod_wire_egp\lib\objects\wedge.lua:8:59: expected ')' near '!'
lua\entities\gmod_wire_egp\lib\objects\wedgeoutline.lua:8:59: expected ')' near '!'
lua\entities\gmod_wire_egp_emitter.lua:93:6: expected expression near '!'
lua\entities\gmod_wire_egp_hud\cl_init.lua:81:13: expected ')' near '!'
lua\entities\gmod_wire_egp_hud\huddraw.lua:11:8: expected expression near '!'
oldmud0 / gist:ee5ab901416a11692b8271f8b2f2e67f
Created Jul 18, 2016
AWS server after a year of uptime
View gist:ee5ab901416a11692b8271f8b2f2e67f
July 3, 2015 at 2:51:07 PM UTC-5
Cloud-init v. 0.7.5 finished at Fri, 14 Aug 2015 00:02:57 +0000. Datasource DataSourceEc2. Up 10.11 seconds
Ubuntu 14.04.3 LTS ip-172-31-0-155 ttyS0
ip-172-31-0-155 login: Sun Jul 3 03:35:06 UTC 2016: shutting down for poweroff [up 28006338s].
oldmud0 /
Last active Jan 5, 2019
Aseprite 1.1.6 Windows Build

Aseprite 1.1.6 Windows Build

This is an unofficial build done in a Windows 7 x64 machine using Visual Studio 2015. The build includes debugging symbols in case you want them, but they are not necessary to run Aseprite.

Building Aseprite is not an easy task if it is your first time doing it. It took me a few hours to make this build and a couple start-overs before realizing that TDM-GCC/MinGW binaries in the path can conflict with CMake since it will favor TDM-GCC/MinGW over Visual Studio build tools. Just follow the instructions, and you won't have to get tangled in a mess.

If you can afford it, please support David Capello by buying Aseprite for $15. Otherwise, stay hungry, stay foolish, and thank you for choosing the world's best open-source sprite editor.


You can’t perform that action at this time.