Liebe Verwaltung der Stadt Köln!
Mein Name ist Amaryllis, ich bin 30 und gemeldet in Rondorf, aber passe seit etwa zwei Jahren auf eine Wohnung in Zollstock auf. Ich möchte Ihnen gerne folgendes Plätzchen in Raderthal vorstellen:
Processor Information: | |
Vendor: GenuineIntel | |
Speed: 2534 Mhz | |
2 logical processors | |
2 physical processors | |
HyperThreading: Unsupported | |
FCMOV: Supported | |
SSE2: Supported | |
SSE3: Supported | |
SSSE3: Supported |
[tikilou@utopia ToTheMoon.amd64]$ ./ToTheMoon.amd64 | |
GL Vendor : ATI Technologies Inc. | |
GL Renderer : AMD Radeon HD 7800 Series | |
GL Version : 4.3.12614 Compatibility Profile/Debug Context 12.104 | |
GLSL Version : 4.30 | |
--- Compiling SimpleShader | |
From: simple.vert simple.frag | |
--- Compiling SimpleColorShader | |
From: simpleColor.vert simpleColor.frag | |
--- Compiling SimpleAlphaShader |
diff --git a/src/debugwriter.h b/src/debugwriter.h | |
index 27244d1..c7b10ed 100644 | |
--- a/src/debugwriter.h | |
+++ b/src/debugwriter.h | |
@@ -24,6 +24,7 @@ | |
#include <iostream> | |
#include <sstream> | |
+#include <vector> | |
diff --git a/src/debuglogger.cpp b/src/debuglogger.cpp | |
index 4301bdd..768f05e 100644 | |
--- a/src/debuglogger.cpp | |
+++ b/src/debuglogger.cpp | |
@@ -25,6 +25,10 @@ | |
#include <glew.h> | |
#include <iostream> | |
+#ifndef APIENTRY | |
+#define APIENTRY |
#include <SDL.h> | |
#include <SDL_opengl.h> | |
typedef void (APIENTRYP PFNGLCLEARCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); | |
typedef void (APIENTRYP PFNGLCLEARPROC) (GLbitfield mask); | |
struct | |
{ | |
PFNGLCLEARCOLORPROC ClearColor; |
diff --git a/src/graphics.cpp b/src/graphics.cpp | |
index 01e80c7..300bebb 100644 | |
--- a/src/graphics.cpp | |
+++ b/src/graphics.cpp | |
@@ -34,6 +34,7 @@ | |
#include "etc-internal.h" | |
#include "binding.h" | |
#include "perftimer.h" | |
+#include "debugwriter.h" | |
diff --git a/src/graphics.cpp b/src/graphics.cpp | |
index 7d3a4da..8782c56 100644 | |
--- a/src/graphics.cpp | |
+++ b/src/graphics.cpp | |
@@ -340,7 +340,7 @@ struct FPSLimiter | |
private: | |
void delayTicks(uint64_t ticks) | |
{ | |
-#ifdef HAVE_NANOSLEEP | |
+#if defined(HAVE_NANOSLEEP) && !defined(_WIN32) |
I recently migrated away from t2bot.io's discord<->matrix bridging (to a self-hosted one), which after figuring out all the nice synapse and systemd related pecularities left me with one last cleanup of all the @_discord_ID:t2bot.io
ghosts haunting my previously bridged matrix rooms.
In order to automate the process I wrote two scripts that I want to share; the main one is purge_t2bot_ghosts.sh
which you provide with a room ID (the internal ones starting with a !
and looking like a random-generated password), and an access token with admin priviledges; also note that due to the _synapse
API these scripts are using, they must be executed on localhost
(this might be rewritten to be used from anywhere, idk). You can optionally specify a delay in seconds between kicks to not trigger the built-in rate limit, but I've found 4 seconds (the default) to be exactly right.
Tip: Do this before setting up any replacement bridges to avoid status spams on the Discord site.
purge_t2bot_ghosts.sh
(requires jq):
with Text_IO; use Text_IO; | |
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; | |
with Ada.Strings.Unbounded; | |
with Ada.Characters.Handling; | |
procedure main is | |
package SU renames Ada.Strings.Unbounded; | |
package CH renames Ada.Characters.Handling; | |
InputFile : File_Type; | |
Fname : constant String := "input.txt"; |