Skip to content

DanielM39/COMP3012-HelperScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helper Scripts for COMP3012 Course

Description

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.

Usage

py todo.py

Description

Setup 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.

Usage

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

Description

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.

Usage

py set-npm-shell.py

About

Helper Scripts for COMP3012 Course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages