Searches for all @todo and TODO comments in the . and src directories and displays them along with vscode clickable links to file and line number.
Note: Place into root of Lab/Assignment to run.
py todo.pySetup and run mongod as a service on windows (does not install mongod just handles the service).
Note: Requires admin permission, will attempt to elevate if not launched with insignificant permissions.
mongodb-service.py
SERVICE_NAME: MongoDB
DB_PATH: C:\mongodb\db
LOG_PATH: C:\mongodb\log.txt
usage: mongodb-service.py [-h] (--install | --remove | --start | --stop)
optional arguments:
-h, --help show this help message and exit
Action:
--install install a service for MongoDB
--remove remove MongoDB service
--start start MongoDB service
--stop stop MongoDB service
On Windows npm uses cmd as its default shell, this can cause issues (particularly with environment variables) due to how things are often handled directly between cmd and sh/bash/zsh (the usual for non Windows systems). This script will attempt to locate sh.exe (with pwsh.exe and powershell.exe as backups) and use it to set node's script-shell option.
Warning: Setting a different script-shell can cause it's own problems so only use if you are sure you need it.
py set-npm-shell.py