Skip to content

Instantly share code, notes, and snippets.

@bkaradzic
bkaradzic / orthodoxc++.md
Last active September 24, 2026 18:32
Orthodox C++

Orthodox C++

This article has been updated and is available here.

@htp
htp / curl-websocket.sh
Last active March 25, 2026 18:35
Test a WebSocket using curl.
curl --include \
--no-buffer \
--header "Connection: Upgrade" \
--header "Upgrade: websocket" \
--header "Host: example.com:80" \
--header "Origin: http://example.com:80" \
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
--header "Sec-WebSocket-Version: 13" \
http://example.com:80/

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@dkackman
dkackman / chia
Last active July 3, 2023 03:00
chia systemd service unit defintion
#!/bin/bash
#
# if no parameters are supplied this results in:
# . ~/chia-blochain/activate
# chia start farmer
#
if [ -z "$1" ]
then
@dkackman
dkackman / launch.json
Created October 26, 2021 20:17
VSCode launch tasks for chia electron development
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Electron: Main Process",
"type": "node",
"request": "launch",
@dkackman
dkackman / staking_chia_aerodrome.md
Last active August 12, 2024 13:58
Staking XCH on Aerodrome

A Step by Step Guide to Staking XCH on aerodrome.finance

Why? Because while it's fairly simple, it is not discoverable. I had to ask for help (thanks @michaeltaylor3d).

Prerequisites

You are familiar chia

This means you have a chia wallet and have farmed or bought some XCH.

@dkackman
dkackman / aurora.json
Last active September 10, 2026 22:29
Aurora worfklow
{
"cost": [
{
"device": "cuda",
"minutes": 10.1,
"name": "RTX 3090",
"vram_gb": 24
}
],
"description": "\"Aurora\" \u2014 an original three-shot alpine vignette on one unbroken score: a lone hiker stands beneath the first veil of green aurora at deep twilight, is dwarfed by the full dancing sky at the height of the night, and watches it fade into pink-and-gold dawn. The cuts happen inside one H3 ref2va generation (Z-Image draws the three boards; <Picture 1> is the first frame, <Picture 2> and <Picture 3> anchor the cuts at 00:02.700 and 00:05.400), so wind, breath, aurora hiss and the solo-piano score run continuously across the seams. First run 2026-09-09, job 3326d6699bf5.",