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
::start mongo db - navigate to location of mongodb\bin and run the mongod exe | |
mongod | |
::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 | |
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
::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 OFF | |
Echo %1 | |
"C:\Program Files\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -File %1 | |
PAUSE |
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
"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 |
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
/* global require */ | |
/*This is basically a port from php of the gist: https://gist.github.com/nickbuddendotcom/5792710*/ | |
var cheerio = require('cheerio'); | |
var fs = require('fs'); | |
var path = require('path'); | |
var request = require('request'); | |
var pageURL = 'http://commons.wikimedia.org/wiki/Sovereign-state_flags'; | |
//var pageURL = 'https://commons.wikimedia.org/wiki/Flags_of_active_autonomist_and_secessionist_movements'; | |
var outDir = path.resolve("..", 'flags'); |