Skip to content

Instantly share code, notes, and snippets.

View OmkarKirpan's full-sized avatar
🎨

Omkar Kirpan OmkarKirpan

🎨
View GitHub Profile
@OmkarKirpan
OmkarKirpan / SCORM_cheat.js
Created March 1, 2023 19:53
SCORM LMS Hack
let ok = SCORM_GetAPI()
// setting lesson_status
ok.LMSSetValue('cmi.core.lesson_status', 'completed')
ok.LMSGetValue('cmi.core.lesson_status')
// setting score
ok.LMSSetValue('cmi.core.score.raw', '100')
ok.LMSGetValue('cmi.core.score.raw')
// Saving
ok.LMSCommit()
ok.LMSFinish()
@OmkarKirpan
OmkarKirpan / README.md
Last active March 17, 2023 12:27
an automation javacript script that removes the "ban-sensitive-files" module from the dev dependencies of microservices hosted on GitHub Enterprise Server.

Remove Ban-Sensitive-Files Module

A script that removes the ban-sensitive-files module from the devDependencies of microservices hosted on GitHub Enterprise Server. The script performs the following actions for each repository:

  • Clone the repository to a local directory
  • Create a new branch named feature/remove-ban-sensitive-files from the given branch name
  • Remove the ban-sensitive-files module from the devDependencies of the package.json file
  • Rebuild the package-lock.json file
  • Commit the changes to the new branch and push them to the remote repository
  • Create a pull request with the title "Remove ban-sensitive-files module from dev dependencies" and a message detailing the changes made.