Skip to content

Instantly share code, notes, and snippets.

View HFTrader's full-sized avatar
🎯
Focusing

Henrique Bucher HFTrader

🎯
Focusing
View GitHub Profile
@HFTrader
HFTrader / open_letter_creators.md
Created October 17, 2025 03:21
An Open Letter to Every Content Creator: You May Already Be an International Tax Criminal

An Open Letter to Every Content Creator: You May Already Be an International Tax Criminal

October 16, 2025

Dear Fellow Creators, Journalists, Newsletter Writers, and Everyone Making Money Online,

I'm writing this letter as a warning that could save you from financial ruin. If you're selling subscriptions, newsletters, or any digital content online through Substack, WordPress, Ghost, Beehiiv, ConvertKit, or similar platforms, you are likely breaking tax laws in dozens of countries right now without knowing it.

This isn't hyperbole. This is happening to me and hundreds of thousands of creators as you read this.

{
"paddingVertical": "19px",
"paddingHorizontal": "21px",
"backgroundImage": null,
"backgroundImageSelection": null,
"backgroundMode": "color",
"backgroundColor": "rgba(255,255,255,1)",
"dropShadow": true,
"dropShadowOffsetY": "10px",
"dropShadowBlurRadius": "7px",
['Mary', 'Joe', 'Bill', 'Annie', 'Jorge'] = 205 Key votes: []
['Mary', 'Joe', 'Bill', 'Annie'] = 125 Key votes: ['Bill', 'Annie']
['Mary', 'Joe', 'Bill', 'Jorge'] = 135 Key votes: ['Jorge']
['Mary', 'Joe', 'Annie', 'Jorge'] = 175 Key votes: ['Jorge']
['Mary', 'Joe', 'Jorge'] = 105 Key votes: ['Mary', 'Joe', 'Jorge']
['Mary', 'Bill', 'Annie', 'Jorge'] = 185 Key votes: []
['Mary', 'Bill', 'Annie'] = 105 Key votes: ['Mary', 'Bill', 'Annie']
['Mary', 'Bill', 'Jorge'] = 115 Key votes: ['Bill', 'Jorge']
['Mary', 'Annie', 'Jorge'] = 155 Key votes: ['Annie', 'Jorge']
['Joe', 'Bill', 'Annie', 'Jorge'] = 200 Key votes: []

Instructions

Be on time for the Zoom call.

Be prepared to share your screen on your zoom call.

You should have a way to compile a program in C++ on the terminal - it can be:

  1. remoting to another Linux box
  2. on a WSL/WSL2 terminal session
#!/bin/bash
# This gist downloads a minimal set of boost libraries just enough to compile the regex library
set -exo pipefail
INSTALL_DIR=/ssd/tmp/install
TMPDIR=/ssd/tmp
TAG=boost-1.78.0
cd $TMPDIR
@HFTrader
HFTrader / install_linuxbrew_on_centos7.sh
Created June 3, 2021 01:49 — forked from warking/install_linuxbrew_on_centos7.sh
standalone linuxbrew setup script for CentOS 7
# Non-root account is recommended for this process
# centos-specific prepration
sudo yum -y update && sudo yum -y groupinstall 'Development Tools' && sudo yum -y install curl irb m4 ruby
# Sanitize the environment
PATH=~/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin
unset LD_LIBRARY_PATH PKG_CONFIG_PATH
# install linuxbrew
@HFTrader
HFTrader / PacmanCheatsheet.md
Last active October 29, 2025 18:50
Pacman Cheatsheet

Installing packages

Note that packages often have a series of optdepends - optional dependencies - which are packages that provide additional functionality to the application, albeit not strictly required for running it. When installing a package, pacman will list its optional dependencies among the output messages, but they will not be found in pacman.log: use the pacman -Si (see Querying package databases) command to view the optional dependencies of a package, together with short descriptions of their functionality.

⚠️ Partial upgrades are not supported 69

Installing specific packages

To install a single package or list of packages (including dependencies), issue the following command:

Initial setup of MSYS2

This page documents the instructions for setting up a Windows build using MSYS2.

First, you have to download and install MSYS2 from https://www.msys2.org/

Update the package database

pacman -Sy pacman
#include <optional>
#include <unordered_set>
#include <vector>
#include <iostream>
#include <chrono>
#include <ctime>
template<typename T> std::optional<int> minimum_coins(T target, std::vector<T> denominations) {
auto values = new std::unordered_set<T>(); values->insert(target);
This file has been truncated, but you can view the full file.
# -------------------------------------------------------
# Free IP2Location Firewall List by Country
# Source: https://www.ip2location.com/free/visitor-blocker
# Last Generated: 24 Nov 2019 00:44:42 GMT
# [Important] Please update this list every month
# -------------------------------------------------------
216.57.217.96/27
216.57.217.128/25
216.57.218.0/23
216.57.220.0/22