Skip to content

Instantly share code, notes, and snippets.

@whitequark
whitequark / installsword.c
Last active August 20, 2026 11:47
installsword.exe "My Installer Title" "Cool Title in the Background"
#define WIN32_LEAN_AND_MEAN
#include <tchar.h>
#include <stdint.h>
#include <windows.h>
#include <shellapi.h>
COLORREF rgbText = 0xffffff;
LPTSTR pchFontName = _T("Times New Roman");
INT iFontSizePt = 24;
LPTSTR pchText = _T("InstallSword Wizard");
@3deep5me
3deep5me / main.tf
Created February 11, 2025 10:18
Hetzner Object Storage with AWS Terraform Provider
resource "aws_s3_bucket" "main" {
bucket = "my-bucket-a9c8ae4e2"
object_lock_enabled = true
}
resource "aws_s3_bucket_acl" "main" {
bucket = aws_s3_bucket.main.id
acl = "private"
}
@mateusz834
mateusz834 / register-as-security-key.md
Last active March 9, 2025 16:06
register a security key on google, not as a passkey.

Paste this to console:

const originalCreate = window.navigator.credentials.create;
window.navigator.credentials.create = async function (options) {
    if (options && options.publicKey && options.publicKey.authenticatorSelection) {
        options.publicKey.authenticatorSelection.residentKey = 'discouraged';
    }
    return originalCreate.call(window.navigator.credentials, options);
};
@killerbees19
killerbees19 / README-COREBOOT.md
Last active July 19, 2026 00:30
coreboot @ Lenovo ThinkPad T440p

Replace original BIOS/UEFI with open-source alternative coreboot and strip down Intel ME.

This is my very first experience with SPI chips and external flashing 🥳

These are my personal notes, just in case I need them again…

Hardware

  • Notebook: Lenovo ThinkPad T440p (20AN/20AW; without dGPU / only iGPU)
  • Top chip: Winbond 25Q32FVSIQ (4 MiB; accessible through "big door")
@rebane2001
rebane2001 / plot_discord_predictions.py
Last active February 14, 2026 17:46
Simple script to plot your Discord machine-learning predicted age and gender from the data dump.
"""
Simple script to plot your Discord machine-learning predicted age and gender from the data dump.
To use, simply put this script in your activity/analytics/ folder of your Discord data dump and run it.
You may need to install matplotlib first:
pip install -U matplotlib
thrown together by rebane2001
@kennytv
kennytv / readme.md
Last active August 17, 2026 23:51
Signed Chat and Chat Types

Signed chat

This gist intends on clearing up some of the misinformation surrounding signed chat/the reporting feature Mojang has added to Minecraft 1.19.1. Here you can find both technical information as well as a general explanation of how these work.

Profile keys

After joining a server, clients now send a profile key used for verifying a message's authenticity. This key and thus the whole signing process is optional, but by default, servers enforce secure profiles for clients to send chat messages. Whenever the player sends a chat message and has a key associated, the message will be signed using their own private key, which the server then verifies using the public key sent after join. Assuming signature, timestamp, and message contents line up, the message goes through.

On the other end, clients can also require all broadcasted player messages to be signed, disregarding the ones without sender verified signatures.

Message signatures

@L3n1n
L3n1n / SteamSummerSaleCheatEventBadge2022.user.js
Last active June 28, 2022 07:08
Steam Summer Sale Cheat Event Badge 2022
// ==UserScript==
// @name Steam Summer Sale Cheat Event Badge 2022
// @namespace https://gist.github.com/L3n1n
// @version 0.61
// @description Automatic finding
// @author L3n1n
// @match *://store.steampowered.com/sale/clorthax_quest*
// @updateURL https://gist.githubusercontent.com/L3n1n/3248f42b6e4fd4500c26f0311443300d/raw/SteamSummerSaleCheatEventBadge2022.user.js
// @downloadURL https://gist.githubusercontent.com/L3n1n/3248f42b6e4fd4500c26f0311443300d/raw/SteamSummerSaleCheatEventBadge2022.user.js
// ==/UserScript==
// ==UserScript==
// @name Tidal declutterer
// @namespace http://tampermonkey.net/
// @version 0.7
// @description Gives the Tidal web app some nice visual tweaks and hides non-personalized recommendations (ads). User configurable.
// @author solarkraft@mailbox.org
// @match https://listen.tidal.com/*
// ==/UserScript==
// The app is made with react and it would be preferable to directly hook into that to
@gmemstr
gmemstr / Pipfile
Last active June 25, 2026 00:04
Speedtest against Hetzner servers
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
requests = "*"
[dev-packages]