Instantly share code, notes, and snippets.

View scrape-flags.js
/* global require */
/*This is basically a port from php of the gist:*/
var cheerio = require('cheerio');
var fs = require('fs');
var path = require('path');
var request = require('request');
var pageURL = '';
//var pageURL = '';
var outDir = path.resolve("..", 'flags');
View mongo_windows-service.bat
"C:\MongoDB\bin\mongod.exe" --config "C:\MongoDB\mongod.cfg" --install
::mongod.cfg requires the logpath to be specified otherwise the service will no start
View Scan With Windows Defender.bat
::Create the following batch file and put it in your SendTo folder.
::Will scan both folders or single files and wont close after running
Echo %1
"C:\Program Files\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -File %1
View start_mongo.bat
::start mongo db - navigate to location of mongodb\bin and run the mongod exe
::startup and set db data path
mongod --dbpath F:\mongodb\data
::bat file to do the same without closing after its executed
cmd /k mongod --dbpath F:\mongodb\data