Skip to content

Instantly share code, notes, and snippets.

@Choonster
Choonster / VSVariables.txt
Created July 24, 2018 10:24
Variables set in the Visual Studio 2017 Professional Developer Command Prompt - https://github.com/luarocks/luarocks/issues/850
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\<USER>\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=<COMPUTER>
ComSpec=C:\WINDOWS\system32\cmd.exe
DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\
DriverData=C:\Windows\System32\Drivers\DriverData
FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer
@Choonster
Choonster / crash-2017-08-30_02.39.51-client.txt
Last active August 29, 2017 17:15
Minecraft Forge 1.12.1-14.22.0.2462 - Ghost Recipe Zero-Item Ingredient Crash - https://github.com/MinecraftForge/MinecraftForge/issues/4359
---- Minecraft Crash Report ----
// I'm sorry, Dave.
Time: 8/30/17 2:39 AM
Description: Rendering screen
java.lang.ArithmeticException: / by zero
at net.minecraft.client.gui.recipebook.GhostRecipe$GhostIngredient.getItem(GhostRecipe.java:130)
at net.minecraft.client.gui.recipebook.GhostRecipe.render(GhostRecipe.java:85)
at net.minecraft.client.gui.recipebook.GuiRecipeBook.renderGhostRecipe(GuiRecipeBook.java:310)
@Choonster
Choonster / ExtractMinecraftAssets.lua
Created May 12, 2017 14:53
A Lua script to extract Minecraft's assets from the repository format used by the Mojang launcher and ForgeGradle into regular directories. Requires Lua 5.2+/LuaJIT, LuaJSON, Penlight and LuaFileSystem
-- Extracts Minecraft's assets from the repository format used by the Mojang launcher and ForgeGradle into regular directories.
-- Requires Lua 5.2+/LuaJIT, LuaJSON, Penlight and LuaFileSystem
---------------------
-- Start of Config --
---------------------
-- The location of the index JSON file
local INDEX_FILE = [[C:\Users\USER\.gradle\caches\minecraft\assets\indexes\1.11.json]]
@Choonster
Choonster / NewURL.log
Last active January 27, 2017 07:03
youtube-dl logs for Twitch's twitch.tv/videos/<video_id> URL format - https://github.com/rg3/youtube-dl/issues/11846
> youtube-dl.exe -v https://www.twitch.tv/videos/113779317
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.twitch.tv/videos/113779317']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
[debug] youtube-dl version 2017.01.25
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: ffmpeg N-74593-g6638e4a, ffprobe N-74593-g6638e4a
[debug] Proxy map: {'http': 'http://127.0.0.1:8888', 'https': 'https://127.0.0.1:8888'}
@Choonster
Choonster / dirt_slab.json
Last active January 7, 2017 15:53
Minecraft Forge 1.10.2-12.18.3.2185 - Fully-defined variants in Forge's blockstates format - http://www.minecraftforge.net/forum/index.php?topic=44165.0
{
"forge_marker": 1,
"defaults": {
"model": "half_slab",
"textures": {
"top": "blocks/dirt",
"bottom": "blocks/dirt",
"side": "blocks/dirt"
}
},
@Choonster
Choonster / DebuggingNodeJSHerokuApps.md
Last active November 14, 2021 03:10
How to debug Node.js web applications running on Heroku using ngrok

Debugging Node.js web applications running on Heroku using ngrok

Introduction

Heroku only allows each dyno to send and receive external network traffic on a single port, which means you can't simply run node --debug server.js and attach your debugger to your-app.herokuapp.com:5858.

To work around this, you can use ngrok and Heroku ngrok Buildpack to tunnel to the debugger's port and access it externally.

@Choonster
Choonster / ForgeGradle Recompilation Error
Last active December 2, 2016 12:33
Minecraft Forge 1.10.2-12.18.2.2171 - Recompilation error with snapshot_20161117 mappings - https://github.com/ModCoderPack/MCPBot-Issues/issues/313
#################################################
ForgeGradle 2.2-SNAPSHOT-c438b06
https://github.com/MinecraftForge/ForgeGradle
#################################################
Powered by MCP unknown
http://modcoderpack.com
by: Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
#################################################
file or directory 'C:\Users\USER\Documents\Minecraft\Mods\TestMod3_1.10.2\src\api\resources', not found
@Choonster
Choonster / gradle.log
Last active November 18, 2016 09:50
Minecraft Forge 1.11-13.19.0.2149 - recompMc error - http://www.minecraftforge.net/forum/index.php?topic=43382.0
file or directory 'C:\Users\USER\Downloads\forge-1.11-13.19.0.2149-mdk\src\api\resources', not found
All projects evaluated.
Selected primary task 'setupDecompWorkspace' from project :
Tasks to be executed: [task ':deobfCompileDummyTask', task ':deobfProvidedDummyTask', task ':getVersionJson', task ':extractUserdev', task ':extractDependencyATs', task ':extractMcpData', task ':extractMcpMappings', task ':genSrgs', task ':downloadClient', task ':downloadServer', task ':splitServerJar', task ':mergeJars', task ':deobfMcSRG', task ':decompileMc', task ':fixMcSources', task ':applySourcePatches', task ':remapMcSources', task ':recompileMc', task ':extractNatives', task ':getAssetIndex', task ':getAssets', task ':makeStart', task ':setupDecompWorkspace']
In-memory cache of C:\Users\USER\Downloads\forge-1.11-13.19.0.2149-mdk\.gradle\2.14\taskArtifacts\fileHashes.bin: Size{2}, CacheStats{hitCount=1, missCount=2, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0}
In-memory cache of C:\Users\U
@Choonster
Choonster / JEI + Blood Magic Log
Last active November 18, 2016 05:02
Minecraft Forge 1.10.2-12.18.2.2125 - JEI API classloader error - https://github.com/mezz/JustEnoughItems/issues/627
[15:49:08] [main/DEBUG] [FML/]: Injecting tracing printstreams for STDOUT/STDERR.
[15:49:08] [main/INFO] [FML/]: Forge Mod Loader version 12.18.2.2147 for Minecraft 1.10.2 loading
[15:49:08] [main/INFO] [FML/]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_112, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_112\jre
[15:49:08] [main/DEBUG] [FML/]: Java classpath at launch is C:\Program Files\Java\jdk1.8.0_112\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\sunec.jar;C:\Program Files
@Choonster
Choonster / fml-client-latest.log
Last active February 4, 2017 11:35
Minecraft Forge 1.11-13.19.0.2148 - JEI Ore Dictionary Error - https://github.com/mezz/JustEnoughItems/issues/626
[09:38:49] [main/DEBUG] [FML/] []: Injecting tracing printstreams for STDOUT/STDERR.
[09:38:49] [main/INFO] [FML/] []: Forge Mod Loader version 13.19.0.2148 for Minecraft 1.11 loading
[09:38:49] [main/INFO] [FML/] []: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_112, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_112\jre
[09:38:49] [main/DEBUG] [FML/] []: Java classpath at launch is C:\Program Files\Java\jdk1.8.0_112\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\sunec.jar;C:\Pro