Skip to content

Instantly share code, notes, and snippets.

View a-v-s's full-sized avatar

André van Schoubroeck a-v-s

View GitHub Profile
@karolba
karolba / libc-minumum-supported-linux-versions.md
Last active July 28, 2025 12:28
(GNU/)Linux distributions and their minimum kernel versions supported by their libc

glibc-based systems

The minimum kernel version can be configured by passing in the --enable-kernel parameter to glibc's configure script.

  1. Arch Linux - Linux 4.4 (release year: 2016)
...
--enable-kernel=4.4
...
@emidoots
emidoots / ramblings.md
Last active December 25, 2024 04:39
Because cross-compiling binaries for Windows is easier than building natively

Because cross-compiling binaries for Windows is easier than building natively

I want Microsoft to do better, want Windows to be a decent development platform-and yet, I constantly see Microsoft playing the open source game: advertising how open-source and developer friendly they are - only to crush developers under the heel of the corporate behemoth's boot.

The people who work at Microsoft are amazing, kind, talented individuals. This is aimed at the company's leadership, who I feel has on many occassions crushed myself and other developers under. It's a plea for help.

The source of truth for the 'open source' C#, C++, Rust, and other Windows SDKs is proprietary

You probably haven't heard of it before, but if you've ever used win32 API bindings in C#, C++, Rust, or other languages, odds are they were generated from a repository called microsoft/win32metadata.

@JohannesMP
JohannesMP / EnableDiscordDevExperiments.md
Last active August 30, 2025 02:28 — forked from ExordiumX/betaenabler.js
Enabling Discord Dev Experiments on Discord for Windows (2022-02)

Enable Dev Experiments in Discord for Windows

image

This guide shows how to enable dev mode for the Discord desktop application running on Windows (as of February 2022).

This can be used to view beta experiments to try features currently in development that are included but hidden by default in Discord release builds.


@sekcompsci
sekcompsci / Comparison Espressif ESP MCUs.md
Last active August 5, 2025 16:34 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison chips (SoCs) table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6. Forked from @fabianoriccardi

Comparison chips (SoCs) table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December
@elfmimi
elfmimi / gd32vf103.cfg
Last active May 18, 2023 22:56
OpenOCD script for GD32VF103 with improved reset procedure
# OpenOCD script for GD32VF103 with improved reset procedure
# Invoke it like this.
# for Digilent HS2
# openocd -f interface/ftdi/digilent-hs2.cfg -c "ftdi_device_desc {Digilent USB Device}" -f gd32vf103.cfg -c "program binary.elf verify reset exit"
# openocd -f interface/ftdi/digilent-hs2.cfg -c "ftdi_device_desc {Digilent USB Device}" -f gd32vf103.cfg -c "program binary.bin 0x08000000 verify reset exit"
# openocd -f interface/ftdi/digilent-hs2.cfg -c "ftdi_device_desc {Digilent USB Device}" -f gd32vf103.cfg -c "init; reset run; exit"
# for SiPEED USB-JTAG/TTL ( RV-Debugger )
# openocd -f interface/ftdi/minimodule.cfg -c "ftdi_device_desc {Dual RS232}" -f gd32vf103.cfg -c "init; reset run; exit"
@ryankurte
ryankurte / cross.sh
Created March 10, 2020 00:10
pkg-config multiarch stuff
#!/bin/sh
if [ $TARGET == "x86_64-unknown-linux-gnu" ]; then
cargo build --target=$TARGET --release
elif [ $TARGET == "x86_64-apple-darwin" ]; then
cargo build --target=$TARGET --release
elif [ $TARGET == "armv7-unknown-linux-gnueabihf" ]; then
sh ./cross-linux-armhf.sh
@fnky
fnky / ANSI.md
Last active August 30, 2025 23:48
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@fay59
fay59 / Quirks of C.md
Last active August 7, 2025 21:19
Quirks of C

Here's a list of mildly interesting things about the C language that I learned mostly by consuming Clang's ASTs. Although surprises are getting sparser, I might continue to update this document over time.

There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.

1. Combined type and variable/field declaration, inside a struct scope [https://godbolt.org/g/Rh94Go]

struct foo {
   struct bar {
 int x;
@ernstki
ernstki / README.md
Last active May 9, 2025 09:41
List the ABI versions of all detected libc and libstdc++'s (GNU/Linux only)

Linker error messages related to libc and libstdc++

We run into the dreaded

/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found

error messages a lot around here. This article is an attempt to explain what's going on with that.

@brimston3
brimston3 / has_rtti.cpp
Created September 12, 2017 14:34
use preprocessor to detect C++ RTTI flags
/*
* g++ has_rtti.cpp -o has_rtti && ./has_rtti
* g++ -fno-rtti has_rtti.cpp -o has_rtti && ./has_rtti
* clang++ has_rtti.cpp -o has_rtti && ./has_rtti
* clang++ -fno-rtti has_rtti.cpp -o has_rtti && ./has_rtti
* @TODO: add msc++ cli, /GR, /GR-
*
* Copyright 2017, Andrew Domaszek
* All rights reserved.
* Program made available under BSD-new license.