Skip to content

Instantly share code, notes, and snippets.

@DubThink
DubThink / TestImguiCrash.cs
Created July 14, 2022 09:19
Repros Monogame.Imgui.Renderer crash from imgui generating empty draw commands
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Monogame.Imgui.Renderer;
using ImGuiNET;
public class TestImguiCrash : Game
{
private GraphicsDeviceManager _graphics;
private ImGuiRenderer _imGUIRenderer;
public TestImguiCrash()
@DubThink
DubThink / base.cfg
Last active September 30, 2020 17:16
DubThink's medic and base cfgs for TF2 Fall 2020
// base config by DubThink
// parts assembled from a variety of places
// I use valve autoheal (in advanced options)
bind mouse2 +attack2
bind mouse3 +attack3
bind r +reload
bind q +lastinv
// p is my killbind. Nice and hard to hit accidentally
@DubThink
DubThink / hlmv_thumbnail_tool.py
Created October 11, 2018 18:19
A python script for taking screenshots in hlmv to make thumbnails from. Replaces solutions with tfmv, which is broken
import winreg as wr
import os
'''
Sets settings in hlmv using the registry to automate taking uniform screenshots for item thumbnails.
Tested with python 3.2 and 3.5
USE AT YOUR OWN RISK. This script should be pretty safe, but it is modifying the registry, so be careful.
CONFIGURATION: