Skip to content

Instantly share code, notes, and snippets.

-- Main.lua
--[[
Starts a TCP server; then launches self again with the server port as param, which creates a client that connects to the server.
The server uses socket timeouts to report time, the client doesn't send any response to trigger the timeout.
In ZeroBraneStudio on Linux, the :settimeout() call seems to succeed, but the timeout is ignored and pretty much
every :receive() call then returns immediately with a "timeout" error.
--]]
@madmaxoft
madmaxoft / err.log
Created April 11, 2021 21:28
Cuberite build error log on Clang 11
[ 1%] Built target expat
[ 7%] Built target libdeflate
[ 10%] Built target lualib
[ 11%] Built target fmt
[ 11%] Built target jsoncpp_lib
[ 11%] Built target sqlite3
[ 14%] Built target event_core_static
[ 27%] Built target mbedcrypto
[ 28%] Building CXX object Tools/NoiseSpeedTest/CMakeFiles/NoiseSpeedTest.dir/__/__/src/Logger.cpp.o
[ 28%] Building CXX object Tools/NoiseSpeedTest/CMakeFiles/NoiseSpeedTest.dir/__/__/src/LoggerListeners.cpp.o
@madmaxoft
madmaxoft / cWorld.lua
Created May 22, 2016 12:05
2016-05-22 LuaAPI docs for cWorld, auto-extracted by ToLua++
return
{
cWorld =
{
Desc = "",
Inherits =
{
"cBroadcastInterface",
"cForEachChunkProvider",
"cWorldInterface",
@madmaxoft
madmaxoft / cWorld.lua
Created May 19, 2016 21:35
2016-05-19 LuaAPI docs for cWorld, auto-extracted by ToLua++
return
{
cWorld =
{
Desc = [[]],
Inherits =
{
"cBroadcastInterface",
"cForEachChunkProvider",
"cWorldInterface",
@madmaxoft
madmaxoft / gist:7abf907b493dd61b4afb
Created August 6, 2015 11:14
Errors while compiling Cuberite with MSVC2015
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\tuple(424): warning C4346: 'std::is_nothrow_move_assignable<_Ty>::value': dependent name is not a type (compiling source file .\lib\SQLiteCpp\src\Transaction.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\tuple(424): note: prefix with 'typename' to indicate a type (compiling source file .\lib\SQLiteCpp\src\Transaction.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\tuple(463): note: see reference to class template instantiation 'std::tuple<_This,_Rest...>' being compiled (compiling source file .\lib\SQLiteCpp\src\Transaction.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\tuple(424): error C2061: syntax error: identifier 'value' (compiling source file .\lib\SQLiteCpp\src\Transaction.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\tuple(426): error C2091: function returns function (compiling source file .\lib\SQLiteCpp\src\Transaction.cpp)
C:\Program Files (x86)\Mi
@madmaxoft
madmaxoft / user.lua
Last active September 5, 2015 15:31
systemwide user.lua
singleinstance = false
autoanalyzer = true
editor.autoactivate = true
editor.fold = false
editor.tabwidth = 2
editor.usetabs = true
editor.smartindent = false
editor.usewrap = false
debugger.allowediting = true