Skip to content

Instantly share code, notes, and snippets.

@vidia
vidia / nginx-unificontroller.conf
Last active December 7, 2024 18:26
Example, working, NGINX config for proxying to Unifi Controller software and using letsencrypt. Includes websocket fix.
# I had a bit of trouble getting my unifi controller (hosted offsite) to use a proxy/letsencrypt. So here are the fruits of my labor.
# The unifi default port is 8443 running on localhost.
# License: CC0 (Public Domain)
server {
# SSL configuration
#
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
"""
//
// This will take all cross references to strings containing '.cpp', and pre-pend the name of the .cpp file
// to any IDA-recognized subs that xref that string. For example, if sub_b0aafd references a string that
// looks like '..\dev\src\game\client\main\file.cpp', this script will re-name sub_b0aafd to file.cpp_sub_b0aafd.
//
// To use:
// Run this as an idaPython script. I don't know IDA very well, so I usually just copy it, in its entirety, into the
// Python command window.
//
@archagon
archagon / gdc-downloader.py
Last active April 12, 2025 19:12
A quick and dirty script to download GDC Vault videos.
# GDC Vault videos can't be watched on mobile devices and this is a very sad thing indeed!
# (Note: this has changed for GDC2013, which lets you watch raw MP4 streams. Kudos!)
# This script is designed to circumvent this by downloading the lecture and slideshow
# videos which can then be re-encoded into whatever format you wish. Obviously, you
# won't be able to do this without access to the Vault. This is strictly for the
# convenience of legitimate Vault users!
# Note: this code is rather flimsy and was written as fast as possible for my own personal use.
# The code only works for the most recent GDC Vault videos, since they all use the same player
# format. If the XML format used to run the player is changed (as it has in the past), the code