The minimum kernel version can be configured by passing in the --enable-kernel
parameter to glibc's configure
script.
- Arch Linux - Linux 4.4 (release year: 2016)
...
--enable-kernel=4.4
...
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.
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.
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.
# 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" |
#!/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 |
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.
struct foo {
struct bar {
int x;
/* | |
* 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. |