Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -eEu
# Generate luacheckrc from BizHawk homepage
# Format is roughly
# </li></ul><div class="p"><b>movie.getrerecordcount</b><br />
# But there are some sentences as well, so make sure that no whitespace ("\S") is there and that there is a dot "\."
lua_functions="$(curl https://tasvideos.org/Bizhawk/LuaFunctions | grep -o "<div class=\"p\"><b>\S\+\.\S\+</b>" | sed 's,.*<b>\(.*\)</b>,\1,')"
@EoD
EoD / With 1.2.9
Last active August 6, 2017 20:26
OpenCL Platform detection broken
(gdb) x/8xb platformName.c_str()
0
Trial 2... 0x7ffd39f6e900: 0x43 0x6c 0x6f 0x76 0x65 0x72 0x00 0x00
[URL]
Protocol=unreal
Name=Player
Map=MenuMap.umap
LocalMap=MenuMap.umap
LocalOptions=
TransitionMap=ExampleEntry.umap
MapExt=umap
EXEName=unreal.exe
DebugEXEName=DEBUG-unreal.exe
$ ./bin/opencl-stream
---OpenCL: Platform Vendor 0: Mesa
---OpenCL: Device found 0. AMD TONGA (DRM 3.1.0, LLVM 3.8.0)
---OpenCL: CL_DEVICE_MAX_MEM_ALLOC_SIZE: 256 MB
---OpenCL: CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE: 0 B
---OpenCL: CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT: 4 B
---OpenCL: CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT: 4 B
---OpenCL: CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE: 2 B
---OpenCL: CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE: 2 B
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 1.1 MESA 11.2.0-devel
Platform Name: Clover
Platform Vendor: Mesa
Platform Extensions: cl_khr_icd
Platform Name: Clover
Number of devices: 1
$ ./clpeak
Platform: Clover
Device: AMD TONGA (DRM 3.1.0, LLVM 3.8.0)
Driver version : 11.2.0-devel (Linux x64)
Compute units : 32
Clock frequency : 0 MHz
Global memory bandwidth (GBPS)
float : 100.53
@EoD
EoD / glewinfo
Created March 22, 2015 12:10
Glewinfo vs Glxinfo
---------------------------
GLEW Extension Info
---------------------------
GLEW version 1.10.0
Reporting capabilities of display :0, visual 0x219
Running on a Gallium 0.4 on AMD BARTS from X.Org
OpenGL version 3.0 Mesa 10.6.0-devel (git-bbaf22a) is supported
GL_VERSION_1_1: OK
@EoD
EoD / Linux Mono
Last active August 29, 2015 14:12
KSP Mod Admin AnyOS (win)
System.NullReferenceException: Object reference not set to an instance of an object
at KSPModAdmin.Core.Views.ucModSelection.SortColumn (KSPModAdmin.Core.Model.ModSelectionTreeColumn column) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) KSPModAdmin.Core.Views.ucModSelection:SortColumn (KSPModAdmin.Core.Model.ModSelectionTreeColumn)
at KSPModAdmin.Core.Controller.ModSelectionController.SortModSelection () [0x00000] in <filename unknown>:0
at KSPModAdmin.Core.Controller.MainController.LoadKSPConfig () [0x00000] in <filename unknown>:0
at KSPModAdmin.Core.Controller.MainController.KSPRootChanged (System.String kspPath) [0x00000] in <filename unknown>:0
at (wrapper delegate-invoke) <Module>:invoke_void__this___string (string)
at (wrapper delegate-invoke) <Module>:invoke_void__this___string (string)
at KSPModAdmin.Core.EventDistributor.KSPPathChanged (System.String kspPath) [0x00000] in <filename unknown>:0
at KSPModAdmin.Core.Controller.OptionsController.set_Sele
@EoD
EoD / gist:6c79eaabdfa3dc180e56
Created October 12, 2014 16:11
BoP, GC compatibility issue?
[16:07:57 WARN]: java.lang.ArrayIndexOutOfBoundsException: 2
[16:07:57 WARN]: at biomesoplenty.common.blocks.BlockStoneFormations.getUnlocalizedName(BlockStoneFormations.java:139)
[16:07:57 WARN]: at biomesoplenty.common.itemblocks.ItemBlockBOPMetadata.func_77667_c(ItemBlockBOPMetadata.java:24)
[16:07:57 WARN]: at micdoodle8.mods.galacticraft.planets.mars.inventory.ContainerTerraformer.<init>(ContainerTerraformer.java:68)
[16:07:57 WARN]: at micdoodle8.mods.galacticraft.planets.mars.MarsModule.getGuiElement(MarsModule.java:190)
[16:07:57 WARN]: at micdoodle8.mods.galacticraft.planets.PlanetsProxy.getServerGuiElement(PlanetsProxy.java:63)
[16:07:57 WARN]: at cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:241)
[16:07:57 WARN]: at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:85)
[16:07:57 WARN]: at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2415)
[16:07:
@EoD
EoD / Server Log
Created October 12, 2014 14:19
Galacticraft Client Crash
[14:18:48 WARN]: [Galacticraft] Error handling simple packet type: S_RENAME_SPACE_STATION SlicedByteBuf(ridx: 22, widx: 22, cap: 22/22, unwrapped: UnpooledHeapByteBuf(ridx: 1, widx: 23, cap: 23/23))
[14:18:48 WARN]: java.lang.IndexOutOfBoundsException: readerIndex(22) + length(4) exceeds writerIndex(22): SlicedByteBuf(ridx: 22, widx: 22, cap: 22/22, unwrapped: UnpooledHeapByteBuf(ridx: 1, widx: 23, cap: 23/23))
[14:18:48 WARN]: at io.netty.buffer.AbstractByteBuf.checkReadableBytes(AbstractByteBuf.java:1160)
[14:18:48 WARN]: at io.netty.buffer.AbstractByteBuf.readInt(AbstractByteBuf.java:611)
[14:18:48 WARN]: at micdoodle8.mods.galacticraft.core.network.NetworkUtil.decodeData(NetworkUtil.java:182)
[14:18:48 WARN]: at micdoodle8.mods.galacticraft.core.network.PacketSimple.decodeInto(PacketSimple.java:224)
[14:18:48 WARN]: at micdoodle8.mods.galacticraft.core.network.GalacticraftChannelHandler.decodeInto(GalacticraftChannelHandler.java:45)
[14:18:48 WARN]: at micdoodle8.