Skip to content

Instantly share code, notes, and snippets.

---------------------------
DGB load error
---------------------------
System.NullReferenceException: Object reference not set to an instance of an object.
at BizHawk.Client.Common.RomLoader.LoadRom(String path, CoreComm nextComm, Boolean forceAccurateCore, Int32 recursiveCount)
---------------------------
OK
---------------------------
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at BizHawk.Client.EmuHawk.MainForm._LoadRom(String path, LoadRomArgs args)
at BizHawk.Client.EmuHawk.MainForm.LoadRom(String path, LoadRomArgs args)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
@shinji257
shinji257 / alttp_msu.xml
Created October 11, 2019 17:31
A link to the past MSU xml file
<?xml version="1.0" encoding="UTF-8"?>
<cartridge region="NTSC">
<rom name="alttp_msu.sfc" size="0x180000">
<map mode="linear" address="00-6f:8000-ffff"/>
<map mode="linear" address="80-ff:8000-ffff"/>
</rom>
<map address="00-6f:8000-ffff" id="rom" mode="linear"/>
<map address="80-ff:8000-ffff" id="rom" mode="linear"/>
<ram name="alttp_msu.srm" size="0x2000">
<map mode="linear" address="70-7d:0000-1fff"/>
2019/10/07 22:11:59 [error] 1335#1335: *5120 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.18, server: , request: "GET /depot/107410/chunk/254acf75ecc8ca9ec0163a23156747738cab2c7a HTTP/1.1", upstream: "http://162.254.192.42:80/depot/107410/chunk/254acf75ecc8ca9ec0163a23156747738cab2c7a", host: "cache16-iad1.steamcontent.com"
2019/10/07 22:11:59 [error] 1334#1334: *5104 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.18, server: , request: "GET /depot/107410/chunk/7741d309db44ecde753203270eeb18ed26a584ee HTTP/1.1", upstream: "http://162.254.192.43:80/depot/107410/chunk/7741d309db44ecde753203270eeb18ed26a584ee", host: "cache18-iad1.steamcontent.com"
2019/10/07 22:12:06 [error] 1336#1336: *5221 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.18, server: , request: "GET /depot/107410/chunk/a321cf98af5bb190d285aea0339ef6fa41df14a2 HTTP/1.1", upstream: "
@shinji257
shinji257 / h5ai.patch
Last active June 29, 2018 02:52
Patch for _h5ai to make it behave a bit better on Feral Hosting servers
diff -ur 1/_h5ai/private/php/core/class-setup.php 2/_h5ai/private/php/core/class-setup.php
--- 1/_h5ai/private/php/core/class-setup.php 2016-08-12 14:59:10.000000000 +0000
+++ 2/_h5ai/private/php/core/class-setup.php 2018-06-29 02:44:52.576068630 +0000
@@ -51,7 +51,12 @@
$this->set('PHP_ARCH', (PHP_INT_SIZE * 8) . '-bit');
$this->set('REQUEST_METHOD', $_SERVER['REQUEST_METHOD']);
- $this->set('REQUEST_HREF', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
+ if ($_SERVER['HTTP_X_HOST'] != $_SERVER['HTTP_HOST']){ // HTTP_HOST is always the same format username.server.feralhosting.com
+ $xproxy = "/" . getenv("USER"); // If the HOSTs don't match then insert this variable
@shinji257
shinji257 / gist:45d2372e228c42e0f21791481b6002d9
Created August 24, 2016 01:59
Fix networking after installing ubuntu-mate-desktop full package on vps server. This is mostly an x2go setup and assumes you were already setting up networking via older ifupdown methods...
apt purge network-manager libproxy1-plugin-networkmanager modemmanager network-manager-pptp-gnome mbim-glib4 libmbim-proxy libmm-glib0 libndp0 libnm-glib-vpn1 libnm0 libnma-common libnma0 libqmi-glib1 libqmi-proxy network-manager-pptp pptp-linux
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=512m;
server {
listen localhost:80;
listen [::]:80;
listen localhost:443 ssl;
listen [::]:443 ssl;
ssl_certificate /var/www/certs/fullchain.pem;
ssl_certificate_key /var/www/certs/key.pem;
@shinji257
shinji257 / gist:08fdd9def308a45e84cc
Created October 29, 2015 23:29
Modify forge for old bungeecord builds
Prep -- Clean and reset git repo...
1) Open patches/minecraft/net/minecraft/network/handshake/client/C00Handshake.java.patch
2) Modify line 35 to read this...
+ p_148840_1_.func_180714_a(this.field_149598_b/* + "\0FML\0"*/);
3) Run this code...
export BUILD_NUMBER=#
./gradlew ciWriteBuildNumber
./gradlew build
@shinji257
shinji257 / keybase.md
Last active March 6, 2021 15:58
keybase.md

Keybase proof

I hereby claim:

  • I am shinji257 on github.
  • I am shinji257 (https://keybase.io/shinji257) on keybase.
  • I have a public key whose fingerprint is 73ED 5F8D 7C1A E356 1FD0 EE22 1973 2FB1 8198 BE7A

To claim this, I am signing this object: