Skip to content

Instantly share code, notes, and snippets.

# 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
oldmud0 / errors.txt
Last active October 29, 2016 04:32
Fix them!
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
oldmud0 / gist:ee5ab901416a11692b8271f8b2f2e67f
Created July 18, 2016 02:51
AWS server after a year of uptime
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
oldmud0 / aseprite-build.md
Last active February 7, 2022 16:31
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.

Download:

/*
//Sample genetic-ish algorithm
Original:
[[0, 0
[0 .
.
. ]
0]]
Desired: