Skip to content

Instantly share code, notes, and snippets.

@xomachine
xomachine / br.patch
Created January 20, 2019 16:45
The patch to Proton to make Battlerite servers work
diff --git a/lsteamclient/cppISteamNetworkingSocketsSerialized_SteamNetworkingSocketsSerialized002.cpp b/lsteamclient/cppISteamNetworkingSocketsSerialized_SteamNetworkingSocketsSerialized002.cpp
new file mode 100644
index 0000000..17078a3
--- /dev/null
+++ b/lsteamclient/cppISteamNetworkingSocketsSerialized_SteamNetworkingSocketsSerialized002.cpp
@@ -0,0 +1,52 @@
+#include "steam_defs.h"
+#include "steamworks_sdk_139/steam_api.h"
+#include "steamworks_sdk_139/isteamnetworkingsocketsserialized.h"
+#include "steamclient_private.h"
@xomachine
xomachine / fortnite-fix.patch
Last active May 8, 2018 16:59
Patch for wine-staging to make fortnite work
diff --git a/autom4te.cache/requests b/autom4te.cache/requests
index 2f5343e643..a0405750e6 100644
--- a/autom4te.cache/requests
+++ b/autom4te.cache/requests
@@ -15,63 +15,63 @@
'configure.ac'
],
{
- 'AC_LIBSOURCE' => 1,
- '_AM_COND_ENDIF' => 1,
● anbox-session-manager.service - Anbox Session Manager
Loaded: loaded (/usr/lib/systemd/user/anbox-session-manager.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Mon 2018-04-09 18:17:41 MSK; 1min 14s ago
Process: 5120 ExecStart=/usr/bin/anbox session-manager (code=killed, signal=ABRT)
Main PID: 5120 (code=killed, signal=ABRT)
апр 09 18:17:40 xom-base systemd[555]: Started Anbox Session Manager.
апр 09 18:17:41 xom-base anbox[5120]: Failed to start container: Failed to start container: Failed to configure LXC container
апр 09 18:17:41 xom-base anbox[5120]: Lost connection to container manager, terminating.
апр 09 18:17:41 xom-base anbox[5120]: Container is not running
@xomachine
xomachine / start.sh
Last active October 12, 2020 10:22
#!/bin/bash
CURPATH=$(realpath $(dirname $0))
if [ x"$DISPLAY" = x ]; then
SUDO=sudo
else
SUDO=lxsudo
fi
CPUS="0,1,2"
diff -d -r -u -p nimcache/spcounter.c nimcache_b4ef/spcounter.c
--- nimcache/spcounter.c 2018-02-05 12:21:01.000000000 +0300
+++ nimcache_b4ef/spcounter.c 2018-02-05 20:09:00.705877000 +0300
@@ -3,7 +3,7 @@
/* The generated code is subject to the original license. */
/* Compiled for: Linux, amd64, gcc */
/* Command for C compiler:
- gcc -c -w -DPACKAGE -I/usr/lib/nim -o /tmp/yaourt-tmp-john/aur-steamforwarder-git/src/SteamForwarder/tools/nimcache/spcounter.o /tmp/yaourt-tmp-john/aur-steamforwarder-git/src/SteamForwarder/tools/nimcache/spcounter.c */
+ gcc -c -w -DPACKAGE -I/usr/lib/nim -o /home/xomachine/.Soft/builds/aur/steamforwarder-git/src/SteamForwarder/tools/nimcache/spcounter.o /home/xomachine/.Soft/builds/aur/steamforwarder-git/src/SteamForwarder/tools/nimcache/spcounter.c */
#define NIM_NEW_MANGLING_RULES
diff --git a/tools/Makefile b/tools/Makefile
index 2242203..b3f94b6 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -15,7 +15,7 @@ clean:
$(RM) -r $(SRCDIR)/nimcache $(SIGSEARCH) $(DLLPARSER)
$(SIGSEARCH):
- $(NIMC) c $(ADDITIONALARGS) -o:$(SIGSEARCH) $(SRCDIR)/sigsearch.nim
+ $(NIMC) --listCmd c $(ADDITIONALARGS) -o:$(SIGSEARCH) $(SRCDIR)/sigsearch.nim
@xomachine
xomachine / ActionType.nim
Created November 12, 2017 16:33
Buggy example
type ActionType* = enum
NONE = 0
CLEAR_AND_SELECT = 1
ADD_TO_SELECTION = 2
DESELECT = 3
ASSIGN = 4
DISMISS = 5
DISBAND = 6
MOVE = 7
ROTATE = 8
This file has been truncated, but you can view the full file.
argument 1 = ch4_zts.nw
============================== echo of input deck ==============================
# This run never really converges well because the two H's that are doing
# all the real work pop off to form H2 and do a little dance and then
# come back to the CH2 group they left behind. Optimizing the details of
# the little dance is about as likely has finding blinker fluid
# at the auto parts store
This file has been truncated, but you can view the full file.
argument 1 = ch4_zts.nw
============================== echo of input deck ==============================
# This run never really converges well because the two H's that are doing
# all the real work pop off to form H2 and do a little dance and then
# come back to the CH2 group they left behind. Optimizing the details of
# the little dance is about as likely has finding blinker fluid
# at the auto parts store
@xomachine
xomachine / hdbm.nim
Created June 5, 2017 13:47
Little utility to show rtdb fields of NWChem calculation.
from nesm import serializable
from streams import Stream, atEnd
from tables import Table, initTable, `[]`, `[]=`
const cookie* = "hdbm v1.0"
serializable:
type
FileEntry* = object
key_size: int32
val_size: int32