This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function numToBits(num, length=8) | |
{ | |
const bits = Array(length) | |
for (let i=0; i<length; i++) | |
{ | |
bits[i] = n >> i & 1 | |
} | |
return bits | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
hosts=() | |
hosts[0]="<host> <domain> <password>" | |
cache_dir=/var/lib/misc/namecheap-dns-update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// pdf2svg Logography\ for\ Kokanu.pdf input/kokanu_%d.svg all | |
// node kokanu.mjs pre | |
// node kokanu.mjs post | |
import fs from 'fs/promises' | |
import fsx from 'fs' | |
import readline from 'readline' |