Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/jtag/drivers/buspirate.c b/src/jtag/drivers/buspirate.c
index aa0d8cc3..b48fb8d1 100644
--- a/src/jtag/drivers/buspirate.c
+++ b/src/jtag/drivers/buspirate.c
@@ -22,6 +22,7 @@
#endif
#include <jtag/interface.h>
+#include <jtag/swd.h>
#include <jtag/commands.h>
@satoshinm
satoshinm / routerfinder.md
Last active November 9, 2017 02:16
Routefinder RF102S dual serial router + 4-port 10/100 Ethernet switch teardown
@satoshinm
satoshinm / hs_err_pid13104.log
Created June 2, 2017 06:28
hs_err_pid13104.log out of memory on 2 GB VPS running Glowstone server https://github.com/satoshinm/server/issues/1
mc@vps132379:~/server$ cat hs_err_pid13104.log
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 12288 bytes for committing reserved memory.
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
@satoshinm
satoshinm / gist:7c5a7971d8c3b2bbf4fa62c9de8d85b2
Created May 14, 2017 07:13
EMMAKEN_CFLAGS="-s USE_SDL=2" with cargo build --target asmjs-unknown-emscripten https://github.com/satoshinm/steven/pull/1 INFO:root:generating port: sdl2.bc...
This file has been truncated, but you can view the full file.
error: linking with `emcc` failed: exit code: 1
|
= note: "emcc" "-s" "DISABLE_EXCEPTION_CATCHING=0" "-L" "/Users/admin/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/asmjs-unknown-emscripten/lib" "/Users/admin/games/rust/steven/target/asmjs-unknown-emscripten/debug/deps/steven-29adafe4c02fb09c.0.o" "-o" "/Users/admin/games/rust/steven/target/asmjs-unknown-emscripten/debug/deps/steven-29adafe4c02fb09c.js" "-s" "EXPORTED_FUNCTIONS=[\"_main\",\"_bz_internal_error\",\"_rust_eh_personality\"]" "-O1" "--memory-init-file" "0" "-g4" "-s" "DEFAULT_LIBRARY_FUNCS_TO_INCLUDE=[]" "-L" "/Users/admin/games/rust/steven/target/asmjs-unknown-emscripten/debug/deps" "-L" "/Users/admin/games/rust/steven/target/debug/deps" "-L" "/Users/admin/games/rust/steven/target/asmjs-unknown-emscripten/debug/build/bzip2-sys-757da42682099d9d/out" "-L" "/Users/admin/games/rust/steven/target/asmjs-unknown-emscripten/debug/build/miniz-sys-07cc64aa136ffbd3/out" "-L" "/Users/admin/games/rust/steven/target/asmjs-unknown-emscripten/d
compile errors with jdk1.8.0_131.jdk, jdk1.8.0_73.jdk, jdk9+167
also reported by another user: http://stackoverflow.com/questions/40048767/glowstone-install-maven-peer-not-authenticated-could-not-resolve-dependencies
but their workarounds create more errors: https://github.com/GlowstoneMC/Glowstone/issues/467
full output:
++ /usr/libexec/java_home -version 1.8
+ JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
diff -ur 1.37.9/src/library_glfw.js 1.37.9+fixes/src/library_glfw.js
--- 1.37.9/src/library_glfw.js 2017-04-24 00:07:55.000000000 -0700
+++ 1.37.9+fixes/src/library_glfw.js 2017-04-24 00:08:48.000000000 -0700
@@ -57,6 +57,7 @@
};
this.buttons = 0;
this.keys = new Array();
+ this.domKeys = new Array();
this.shouldClose = 0;
this.title = null;
@satoshinm
satoshinm / gist:063a4a71077bf4c9de84132c72be0c9d
Created April 16, 2017 22:45
Glowstone plugin with threads on /stop: 18:16:47 [INFO] Still running after shutdown, finding rogue threads... (https://github.com/satoshinm/WebSandboxMC/issues/7)
18:16:38 [INFO] CONSOLE: Stopping the server..
18:16:38 [INFO] The server is shutting down...
18:16:38 [INFO] [WebSandboxMC] Disabling WebSandboxMC v0.4
18:16:38 [INFO] [WebSandboxMC] Goodbye world!
18:16:38 [INFO] Saving world: world
18:16:38 [INFO] Saving world: world_nether
18:16:39 [INFO] Saving world: world_the_end
18:16:47 [INFO] Still running after shutdown, finding rogue threads...
18:16:52 [INFO] [id: 0xeaf238a3, L:/0:0:0:0:0:0:0:0:4081] UNREGISTERED
18:16:52 [WARNING] java.lang.InterruptedException
@satoshinm
satoshinm / gist:8a7cb999c09bb42048e70647875f53c8
Created April 13, 2017 05:56
Glowstone saving Sheep after entity.setCustomNameVisible(true); - Error saving GlowSheep in GlowChunk{world=world,x=-6,z=5} java.lang.IllegalArgumentException: Cannot get SHOW_NAME_TAG: is BOOLEAN, not BYTE
22:55:54 [INFO] This server is running Glowstone version 2017.4.0.1-SNAPSHOT-MC1.11.2 (Implementing API version 1.11.2-R0.1-SNAPSHOT)
22:55:54 [INFO] Recipes: 299 shaped, 63 shapeless, 26 furnace, 10 dynamic, 28 fuels.
22:55:54 [WARNING] The server is running in offline mode! Only do this if you know what you're doing.
22:55:54 [INFO] Scanning plugins...
22:55:54 [INFO] PluginTypeDetector: found 1 Bukkit, 0 Sponge, 0 Forge, 0 Canary, 0 unknown plugins (total 1)
22:55:54 [INFO] Set PluginClassLoader as parallel capable
22:55:54 [INFO] Preparing spawn for world...
22:55:55 [INFO] Preparing spawn for world: 47%
22:55:56 [INFO] Preparing spawn for world: done
22:55:56 [INFO] Preparing spawn for world_nether...
@satoshinm
satoshinm / gist:ebc87cdf1d782ba91b893fe24cd8ffd2
Created April 13, 2017 04:57
Glowstone world.spawn(location, HumanEntity.class) java.lang.NullPointerException in net.glowstone.GlowWorld.spawn(GlowWorld.java:1294)
21:51:44 [INFO] This server is running Glowstone version 2017.4.0.1-SNAPSHOT-MC1.11.2 (Implementing API version 1.11.2-R0.1-SNAPSHOT)
21:51:44 [INFO] Recipes: 299 shaped, 63 shapeless, 26 furnace, 10 dynamic, 28 fuels.
21:51:44 [WARNING] The server is running in offline mode! Only do this if you know what you're doing.
21:51:44 [INFO] Scanning plugins...
21:51:45 [INFO] PluginTypeDetector: found 1 Bukkit, 0 Sponge, 0 Forge, 0 Canary, 0 unknown plugins (total 1)
21:51:45 [INFO] Set PluginClassLoader as parallel capable
21:51:45 [INFO] Preparing spawn for world...
21:51:46 [INFO] Preparing spawn for world: 47%
21:51:47 [INFO] Preparing spawn for world: done
21:51:47 [INFO] Preparing spawn for world_nether...
@satoshinm
satoshinm / gist:847bc36f2456647a90c06adb7dcb625b
Created April 7, 2017 05:23
https://www.glowstone.net 1.11.2 NoSuchMethodException: no such method: java.lang.invoke.LambdaMetafactory.metafactory(Lookup,String,MethodType,MethodType,MethodHandle,MethodType)CallSite/invokeStatic
mc1.11.2 $ java -Xms1G -Xmx1G -XX:+UseG1GC -XX:MaxGCPauseMillis=30 -jar glowstone.jar
Apr 06, 2017 10:22:34 PM net.glowstone.GlowServer main
SEVERE: Error during server startup.
java.lang.IncompatibleClassChangeError
at java.lang.invoke.MethodHandleNatives.linkMethodHandleConstant(MethodHandleNatives.java:383)
at net.glowstone.constants.GlowEnchantment.<clinit>(GlowEnchantment.java:15)
at net.glowstone.GlowServer.createFromArguments(GlowServer.java:329)
at net.glowstone.GlowServer.main(GlowServer.java:304)
Caused by: java.lang.NoSuchMethodException: no such method: java.lang.invoke.LambdaMetafactory.metafactory(Lookup,String,MethodType,MethodType,MethodHandle,MethodType)CallSite/invokeStatic
at java.lang.invoke.MemberName.makeAccessException(MemberName.java:758)