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 bookmarksExportToCsv() { | |
/** | |
* 1. Export bookmarks from browser (supported any Chromium based browsers and Safari) (chrome://bookmarks) | |
* 2. Open exported html file again in the browser | |
* 3. Copy paste this entire file in console, and execute it (hit enter) | |
* 4. You will be prompted to save a CSV file. Save it. | |
* 5. Open Notion. Click Import -> CSV | |
* 6. Select saved CSV file. Wait for import | |
* 7. You have a new database with all your bookmarks | |
*/ |
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
const fs = require('fs'); | |
function createPseudonym (params) { | |
let start = 12354; | |
const arr = []; | |
for (let index = 0; index < 185; index++) { | |
const word = String.fromCharCode(start++); | |
arr.push(word); | |
} | |
fs.writeFileSync('./pseudonym.txt', arr); |
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
const assert = require("assert").strict; | |
const child_process = require("child_process"); | |
const path = require("path"); | |
const crypto = require("crypto"); | |
const glob = require("glob"); | |
const fs = require("fs-extra"); | |
const _ = require("lodash"); | |
const sort = require("alphanum-sort"); | |
const Kuroshiro = require("kuroshiro"); | |
const KuromojiAnalyzer = require("kuroshiro-analyzer-kuromoji"); |