Skip to content

Instantly share code, notes, and snippets.

DMD Compiler Deprecation Reference

This document catalogs all active deprecation messages emitted by the DMD compiler, grouped by category. Each entry explains what is deprecated, why, and shows how to update your code.

Table of Contents

  1. Format String Checking (printf/scanf)
  2. Postblit Constructors
@burner
burner / arch-linux-installation-on-uefi-gpt-system.md
Created March 26, 2024 20:43 — forked from xbns/arch-linux-installation-on-uefi-gpt-system.md
Installing Arch Linux for UEFI/GPT System #arch-linux

Installing Arch Linux for UEFI/GPT System

For BIOS/MBR Legacy system refer to here

Installation process over a Wi-Fi

Download the .iso file from Arch Linux Official Site.

Step 1: Make a Live USB Disk and boot from it.

@burner
burner / openssl_smime_c_abstraction.c
Last active March 22, 2021 14:17
using the openssl library and some helper function to encrypt an array of bytes with many public keys and decrypt with a single private key in an smime envelope
// So the problem to solve is that I needed a function
// that encrypts an array of ubytes with multiple public
// keys. The resulting, encrypted, array of bytes, when saved
// to a file, should be decrypted-able by any private key
// matching any of the used public key.
// This should be possible with the openssl cli.
// smime is used as bundle everything together, properly
// not the best approach, but hey it works.
// The asymmetrically keys are used to encrypt a symmetry
// AES256 key that is in turn used to encrypt the array of
@burner
burner / gist:9900870
Last active August 29, 2015 13:57
sqlite3 from inside D
enum insertStmt = "INSERT INTO Entry(sym,open,close,volume) Values(?, ?, ?, ?);";
int errCode = sqlite3_prepare_v2(db, toCstr.toStringZ(insertStmt),
to!int(insertStmt.length), &stmt, null);
if(errCode != SQLITE_OK) {
scope(exit) sqlite3_finalize(stmt);
throw new Exception(insertStmt ~ " FAILED " ~
to!string(sqlite3_errmsg(db))
);