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
import {readFile, writeFile} from "fs" | |
function read_bin(index, block_size = 314, file_buffer) { | |
const use_u16 = !file_buffer[0] | |
const track_buffers = {}, odd_block_idxs = {}, even_block_idxs = {} | |
let total_odd_idxs = 0 | |
// track block indices table | |
Object.entries(index).forEach(([key, idx]) => { | |
let num_odd_idxs = file_buffer[idx] |
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
// wuilly | |
// 11/6/2023 | |
function hash(str, salt) { | |
// TODO: make this hashing function more collision-resistant | |
if (salt != null) { | |
str = `${salt}${str}` | |
} | |
if (str == null || str == "") { |
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
rules | |
tos | |
terms-of-service | |
privacy | |
privacy-policy | |
privacypolicy | |
about | |
news | |
signup | |
signin |
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
".json" | |
".rss" | |
".well-known" | |
".xml" | |
"about" | |
"abuse" | |
"access" | |
"account" | |
"accounts" | |
"activate" |