Skip to content

Instantly share code, notes, and snippets.

@billythedummy
billythedummy / run-with-ts-node.ts
Last active March 4, 2024 22:21
solana realms.today (spl-governance) ts script to generate base64-encoded custom instruction
import { type TransactionInstruction } from "@solana/web3.js";
import { serializeInstructionToBase64 } from "@solana/spl-governance";
const IX: TransactionInstruction = ...; // TODO by user
console.log(serializeInstructionToBase64(IX));
@billythedummy
billythedummy / notes.md
Last active June 28, 2022 13:00
building solana tool suite for aarch64
@billythedummy
billythedummy / windows-git-bash-is-stupid.md
Last active January 22, 2024 06:11
Windows git bash is stupid

Problem

Assuming you've installed git with default settings on Windows 10, and you have your ssh keys in ~/.ssh (where ~ expands to something like C:/Users/user) as something like id_rsa and id_rsa.pub, you'll be unable to use the git bash to clone repos with git clone git@github.com:user/project.git. The git bash will always output some error log like

Cloning into 'project'...
\302\226\302\226git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights