Skip to content

Instantly share code, notes, and snippets.

View illnyang's full-sized avatar
🪶
blissful

Illyan Garte illnyang

🪶
blissful
  • traversing the 7 seas
View GitHub Profile
@illnyang
illnyang / llvm-pdbutil-prettybatchdump.bat
Created March 7, 2022 17:52
convenience wrapper for llvm-pdbutil pretty dumpers (drag & drop)
@echo off
rem ----- usage: llvm-pdbutil-prettybatchdump.bat C:\input.pdb -----
rem ----- output will be put in "dump" folder, next to the pdb -----
rem ----- verbose vcvarsall output -----
rem set VSCMD_DEBUG=3
echo Loading VS environ
@illnyang
illnyang / EnumGetValuesEvaluator.cs
Last active July 22, 2021 10:02
Evaluates all calls to Enum.GetValues at build time, since it's not supported in NativeAOT's reflection-free mode yet.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using dnlib.DotNet;
using dnlib.DotNet.Emit;
namespace EnumGetValuesEvaluator
{
internal static class Program
@illnyang
illnyang / gist:c06aa208fb924bab490ffd8420d4c851
Created September 23, 2019 08:49
Building ioquake3 via WSL
sudo apt install g++-mingw-w64-x86-64
make PLATFORM=mingw64
@illnyang
illnyang / bundle-cmp.js
Last active April 13, 2017 22:21
epic donttap src hack
/*
(c) 2013-2014 GameMix Inc. All rights reserved.
*/
(function() {
var requestAnimFrame = window.requestAnimFrame = function() {
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(callback) {
window.setTimeout(callback, 1e3 / 60)
}
}();
var cancelAnimFrame = window.cancelAnimFrame = function() {
@illnyang
illnyang / git-origins.md
Created December 26, 2016 17:22 — forked from benschw/git-origins.md
fork a repo manually (set source as upstream origin) rather than with the "fork" button. e.g. for in github when you want to fork a project twice.

Ripped off from adrianshort.org

List curent remotes

$ git remote -v

origin  https://github.com/hakimel/reveal.js.git (fetch)
origin  https://github.com/hakimel/reveal.js.git (push)

Rename origin to upstream and add our new empty repo as the origin.