Skip to content

Instantly share code, notes, and snippets.

View Koncord's full-sized avatar
🏠
Working from home

Stanislav Zhukov Koncord

🏠
Working from home
  • Serbia
View GitHub Profile
@Koncord
Koncord / file.cpp
Created July 30, 2018 10:29
SocketWorker
void SocketWorker::process()
{
if(!webSocket)
{
webSocket = new QWebSocket;
connect(webSocket, &QWebSocket::disconnected, this, &SocketWorker::finished);
}
disconnect(webSocket, &QWebSocket::textFrameReceived, nullptr, nullptr);
disconnect(webSocket, &QWebSocket::textMessageReceived, nullptr, nullptr);
@Koncord
Koncord / build.sh
Created February 21, 2017 14:34
Build luasql
#################################################
export sqlitever=3150200
export luatarget=linux #linux mingw
export luasqltargets="sqlite3 mysql"
#################################################
git clone https://github.com/keplerproject/luasql
mkdir -p downloads
@Koncord
Koncord / build.sh
Last active June 30, 2019 23:12
RPI v3 build scripts
source build_env.sh
./clone-or-rebase.sh https://github.com/TES3MP/RakNet RakNet
mkdir ./RakNet/build
cd ./RakNet/build
cmake CMAKE_INSTALL_PREFIX=$RPI_ROOT/libs -DRAKNET_ENABLE_SAMPLES=False -DRAKNET_ENABLE_DLL=False ..
make -j4 install
cd ../..
./clone-or-rebase.sh https://github.com/TES3MP/openmw-tes3mp openmw-tes3mp
@Koncord
Koncord / Postal2.ini
Created August 10, 2016 18:58
NicksCoop config for Linux
[URL]
Protocol=postal2
ProtocolDescription=Postal2 Protocol
Name=Player
Map=Index.fuk
LocalMap=Startup.fuk
Host=
Portal=
MapExt=fuk
EXEName=Postal2.exe
@Koncord
Koncord / server.lua
Created July 23, 2016 14:21
Example for TES3MP GUI
function OnPlayerSendMessage(pid, message)
local pname = tes3mp.GetName(pid)
print(pname.."("..pid.."): "..message)
if myMod.OnPlayerMessage(pid, message) == 0 then
return 0
end
if message:sub(1,1) == '/' then
local cmd = (message:sub(2, #message)):split(" ")