Skip to content

Instantly share code, notes, and snippets.

@dhmjhu
dhmjhu / qt5-build-c++2b-msvc2022.md
Created August 6, 2025 18:25
Fixes for building Qt 5.15 with C++23 using MSVC

How to fix Qt 5.15 build failures with modern C++ on MSVC

Here are a few small modifications I needed to make to get Qt 5.15.17 to build with MSVC when configured to use C++23 (i.e., configure.bat -c++std c++2b/cl.exe /std:c++latest).

Qt 5 refers to C++20 as c++2a and C++23 as c++2b (holdovers from before they were published).

Quick fix

If you don't care about the details, you can just apply the attached patches. Note that there may be other issues I haven't encountered, since I try to disable all Qt functionality I'm not actively using.

@bierbo
bierbo / ublock-ms-attack-domains.txt
Created April 13, 2023 06:46
Microsoft attack simulation domains
# Title: Microsoft attack simulation domains
# Blocked: 130 domains
# Updated: 13 Apr 2023
# home: https://gist.github.com/bierbo/726dc65c940d26ec2dc47b0fa1acb472
# Size: 0.02 MB
# see https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/attack-simulation-training-get-started?view=o365-worldwide#simulations
# ------------------------------------------------------------------------
bankmenia.com
bankmenia.de
@neggles
neggles / New-GPUPDriverPackage.ps1
Last active November 23, 2025 19:44
Hyper-V GPU Virtualization
<#
.SYNOPSIS
Create a GPU-P Guest driver package.
.DESCRIPTION
Gathers the necessary files for a GPU-P enabled Windows guest to run.
.EXAMPLE
New-GPUPDriverPackage -DestinationPath '.'
.EXAMPLE
New-GPUPDriverPackage -Filter 'nvidia' -DestinationPath '.'
.INPUTS
@olih
olih / jq-cheetsheet.md
Last active December 5, 2025 21:17
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq