Skip to content

Instantly share code, notes, and snippets.

@xh3b4sd
xh3b4sd / launch.json
Created May 13, 2022 14:30
VS Code debugger configuration for debugging a single test of the currently open test file.
{
// 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": "Test Current File",
"type": "go",
"request": "launch",
@xh3b4sd
xh3b4sd / launch.json
Created August 6, 2022 23:07
VS Code debugger configuration for debugging a command line tool in the current workspace.
{
// 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": "Launch Package",
"type": "go",
"request": "launch",
@xh3b4sd
xh3b4sd / dark.js
Created October 24, 2022 23:56
pdf dark mode hack using dev console
const overlay = document.createElement("div");
const css = `
position: fixed;
pointer-events: none;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: white;
@xh3b4sd
xh3b4sd / main.go
Created October 25, 2022 13:00
golang bit operators
package main
import (
"encoding/binary"
"fmt"
)
func main() {
var zer byte = 0b0
var one byte = 0b1
@xh3b4sd
xh3b4sd / keybase.md
Created January 27, 2023 23:28
Github identity proof for Keybase.

Keybase proof

I hereby claim:

  • I am xh3b4sd on github.
  • I am xh3b4sd (https://keybase.io/xh3b4sd) on keybase.
  • I have a public key whose fingerprint is C8B5 FA74 A6AF BC68 8FA6 CE27 4A1F BCE1 8AA9 BFA4

To claim this, I am signing this object:

@xh3b4sd
xh3b4sd / random.go
Created October 3, 2023 12:00
generate random strings
package random
import (
"crypto/rand"
"math/big"
)
const (
Length = 5
Number = "0123456789"

essentially the government acts as a baseline market maker

Government should participate in private markets

So far one of the core ideas that the crypto industry inspired in me was that money and state should be separated just like religion and state should be separated in modern societies. Therefore it feels backwards to me that the government should act as market makers or participate in private markets after all. We do know that the government is not the better capital allocator. Depending on how the government is created, its members have so far not always

# This is an H1
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s, when an
unknown printer took a **galley** of type and scrambled it to make a type
specimen book. It has survived not only five *centuries*, but also the leap into
electronic typesetting, remaining essentially unchanged.
> Changes are re-rendered as you type.
> This is a blockquote so you know.
{
    "result": {
        "embeds": {
            "images": [],
            "urls": [
                {
                    "type": "url",
                    "openGraph": {
                        "url": "https://x.com/0xtaetaehoho/status/1839751711164117306",