Skip to content

Instantly share code, notes, and snippets.

View john-ho-codeonit-com's full-sized avatar

John Ho john-ho-codeonit-com

  • Ottawa, Ontario, Canada
View GitHub Profile
@john-ho-codeonit-com
john-ho-codeonit-com / jenkins-init.groovy
Last active June 16, 2025 02:11
Jenkins groovy init script
#!groovy
import hudson.model.*
import hudson.security.*
import jenkins.security.apitoken.*
import jenkins.model.*
import hudson.security.csrf.DefaultCrumbIssuer
def instance = Jenkins.getInstance()
def hudsonRealm = new HudsonPrivateSecurityRealm(false)
@john-ho-codeonit-com
john-ho-codeonit-com / ws16-dev-boxstarter2.txt
Last active October 24, 2018 02:54
ws16-dev Boxstarter Script2
refreshenv
npm install -g yarn pm2 npx babel-cli
npm install -g --production windows-build-tools
npm install -g node-gyp
@john-ho-codeonit-com
john-ho-codeonit-com / ws16-dev-boxstarter1.txt
Last active September 13, 2018 03:26
ws16-dev Boxstarter Script1
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
cinst rapidee
cinst sublimetext3
cinst git
cinst putty
cinst vscode
cinst nvm
iex 'nvm install 10.0.0'