Skip to content

Instantly share code, notes, and snippets.

@dikey0ficial
dikey0ficial / dumpCollection.js
Last active May 24, 2022 18:46
Javascript/Node.js/mongosh shell function to dump collections to .json file
// let db = connect('...')
let fs = require('fs')
function dumpCollection(col_name, dump_path) {
let col = db[col_name].find().toArray();
if (!dump_path) {
dump_path = './backup/'
}
fs.writeFile(dump_path + col_name + '.json', JSON.stringify(col), function (err) {
if (err) {
// ==UserScript==
// @name vasilysu_calc_cheat
// @namespace http://gist.github.com/
// @homepage http://dikey0ficial.rf.gd/vasilysu_calc_cheat.html
// @version 1.1
// @description Simple cheat script to skip unsolvable games on http://vasily.su/calculator-game/
// @author d!key
// @match http://vasily.su/calculator-game/level_random1.html
// @match http://vasily.su/calculator-game/level_random2.html
// @match http://vasily.su/calculator-game/level_random3.html