Skip to content

Instantly share code, notes, and snippets.

@bkaradzic
bkaradzic / orthodoxc++.md
Last active July 19, 2024 23:17
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

@htp
htp / curl-websocket.sh
Last active May 14, 2024 21:24
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 June 17, 2024 13:28
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.