Skip to content

Instantly share code, notes, and snippets.

View Mathias-Fuchs's full-sized avatar
🗺️

Mathias Fuchs Mathias-Fuchs

🗺️
View GitHub Profile
@probonopd
probonopd / Wayland.md
Last active May 1, 2024 05:34
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.

Wayland proponents make it seem like Wayland is "the successor" of Xorg, when in fact it is not. It is merely an incompatible alternative, and not even one that has (nor wants to have) feature parity (missing features). And unlike X11 (the X Window System), Wayland protocol designers actively avoid the concept of "windows" (making up incompr

@d3x0r
d3x0r / Marching-tets.md
Last active January 5, 2024 08:10
Marching tetrahedrons; Marching Diamond Crystal Lattice; Marching Cubes/Sliced into 5 Tetrahedrons
@dougpuob
dougpuob / CryptQueryObject.c
Created May 16, 2017 06:14
How To Get Information from Authenticode Signed Executables
/*
# How To Get Information from Authenticode Signed Executables
https://support.microsoft.com/en-us/help/323809/how-to-get-information-from-authenticode-signed-executables
## Summary
You can use the WinVerifyTrust() API to verify an Authenticode signed executable.
Although a signature is verified, a program may also have to do the following:
@kkrolikowski
kkrolikowski / randomize.c
Created March 3, 2015 20:58
random filename
/*
* randomize.c -- generate random file name
* Author: Krzysztof Krolikowski <kkrolikowski@gamil.com>
* compilation:
* gcc -o randomize randomize.c
* running:
* ~$ ./randomize
* dyndns_nBXGV0cW
*
*/
Below I collected relevant links and papers more or less pertaining to the subject of tetrahedral meshes.
It's an ever-growing list.
------------------------------
Relevant links:
http://en.wikipedia.org/wiki/Types_of_mesh
http://en.wikipedia.org/wiki/Tetrahedron
http://en.wikipedia.org/wiki/Simplicial_complex
@lh3
lh3 / eigen.c
Created November 8, 2014 04:53
Eigenvalues/vectors for symmetric and asymmetric matrices
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define RADIX 2.0
/*************************
* balance a real matrix *
*************************/
@TimSC
TimSC / gist:5251670
Last active April 3, 2022 00:53
Generate an RSA key pair, sign a message and verify it using crypto++ 5.6.1 or later. By Tim Sheerman-Chase, 2013. This code is in the public domain and CC0.
//Generate an RSA key pair, sign a message and verify it using crypto++ 5.6.1 or later.
//By Tim Sheerman-Chase, 2013
//This code is in the public domain and CC0
//To compile: g++ gen.cpp -lcrypto++ -o gen
#include <string>
using namespace std;
#include <crypto++/rsa.h>
#include <crypto++/osrng.h>
#include <crypto++/base64.h>