After installing the keybase command-line tool onto a new / fresh computer, you may want to import your PGP key to the local keyring so that you may use the keys with GPG.
Import your PUBLIC PGP key:
keybase pgp export|gpg --import -
/** | |
* Represents a monetary value using BigInt for precision. | |
*/ | |
export interface Currency { | |
code: string; | |
exponent: number; // Number of decimal places in the minor unit | |
} | |
// A simple registry of supported currencies | |
const currencies: { [key: string]: Currency } = { |
# Windsurf Memory Bank | |
I am Windsurf, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional. | |
## Memory Bank Structure | |
The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy: | |
```mermaid | |
flowchart TD |
import * as currencies from '@dinero.js/currencies' | |
import { | |
allocate, | |
createDinero, | |
dinero, | |
type Dinero, | |
type Calculator, | |
type Currency, | |
type DivideOperation, | |
add, |
After installing the keybase command-line tool onto a new / fresh computer, you may want to import your PGP key to the local keyring so that you may use the keys with GPG.
Import your PUBLIC PGP key:
keybase pgp export|gpg --import -
// ...imports here | |
import { setTuyauState, TUYAU_KEY } from '../components/tuyau_state' | |
const context = new Map([[TUYAU_KEY, setTuyauState()]]) | |
createInertiaApp({ | |
// ...other configs | |
setup({ el, App, props }) { | |
if (el?.dataset.serverRendered === 'true') { |
import * as currencies from '@dinero.js/currencies' | |
import { | |
allocate, | |
createDinero, | |
dinero, | |
type Dinero, | |
type Calculator, | |
type Currency, | |
type DivideOperation, | |
add, |
#!/usr/bin/env node | |
var fs = require('fs'); | |
var path = require('path'); | |
var request = require('request'); | |
var CERTDB_URL = | |
'https://mxr.mozilla.org/nss/source/lib/ckfw/builtins/certdata.txt?raw=1'; | |
var OUTFILE = './certificates.js'; |
const arrayBufferToString = (arrayBuffer: ArrayBuffer): string => { | |
let binary = '' | |
const bytes = new Uint8Array(arrayBuffer) | |
const len = bytes.byteLength | |
for (var i = 0; i < len; i++) { | |
binary += String.fromCharCode(bytes[i]) | |
} | |
return binary |
[ -f .env ] && eval $(cat .env | sed 's/^/export /') || echo "no .env file" |
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.