This file contains hidden or 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 | |
# Archives a specified website including all sub-pages and outputs a single PDF file | |
# Requires the following tools to be installed: | |
# - wget | |
# - wkhtmltopdf | |
# - gs (ghostscript) | |
# Installation: |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am freedmand on github. | |
* I am freedmand (https://keybase.io/freedmand) on keybase. | |
* I have a public key ASDmxHhr9-w51bAYvHTz2249NO08yZZ3eaPaV--NpTAXlgo | |
To claim this, I am signing this object: |
This file contains hidden or 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
const PASS = ['32']; // green | |
const FAIL = ['31', '1']; // red, bold | |
function logStyle(ansiEscapeCodes, text) { | |
console.log(`\x1b[${ansiEscapeCodes.join(';')}m${text}\x1b[0m`); | |
} | |
class Tester { | |
constructor() {} |
This file contains hidden or 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 assert(arg1: any, arg2: any) { | |
if (arg1 != arg2) throw new Error(`Expected ${arg1} to equal ${arg2}`); | |
} | |
const PASS = ['32']; // green | |
const FAIL = ['31', '1']; // red, bold | |
function logStyle(codes: string | string[], text: string) { | |
if (Array.isArray(codes)) codes = codes.join(';'); | |
console.log(`\x1b[${codes}m${text}\x1b[0m`); |