start new:
tmux
start new with session name:
tmux new -s myname
# GNU Screen - main configuration file | |
# All other .screenrc files will source this file to inherit settings. | |
# Author: Christian Wills - [email protected] | |
# Allow bold colors - necessary for some reason | |
attrcolor b ".I" | |
# Tell screen how to set colors. AB = background, AF=foreground | |
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' |
test | |
tags* | |
*.exe | |
*.dll | |
*.obj | |
*.so | |
*.o |
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
The following Lua program generates a Lua bytecode program called ignore-unsigned-sga.fnt
, which in turn loads a DLL from within an extremely locked down Lua 5.1 sandbox in a program called RelicCOH2.exe. The remainder of this document attempts to explain how this program works by a whirlwind tour of relevent bits of the Lua 5.1 virtual machine.
if string.dump(function()end):sub(1, 12) ~= "\27Lua\81\0\1\4\4\4\8\0" then
error("This generator requires a 32-bit version of Lua 5.1")
end
local function outer()
local magic -- In bytecode, the stack slot corresponding to this local is changed
-- Helpers {{{1 | |
local function fail_on_missing_tbl(t, missing_name) | |
missing_name = missing_name or 'table entry' | |
return setmetatable(t, {__index = function(t, k) | |
error(('No %s with key "%s" (in %s).'):format(missing_name, k, t)) | |
end | |
}) | |
end | |
fail_on_missing_tbl(_G, 'global'); |
// solym | |
// [email protected] | |
// 2020年3月16日 20点28分 | |
#include <map> | |
#include <memory> | |
#include <mutex> | |
#include <condition_variable> | |