Skip to content

Instantly share code, notes, and snippets.

@vidia
vidia / nginx-unificontroller.conf
Last active May 6, 2024 12:41
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.
//