Skip to content

Instantly share code, notes, and snippets.

Avatar

Hadaytullah hadaytullah

View GitHub Profile
View array_sum_performance_test.js
const NUMBERS = 1000000
const TESTS = 100
const startTime = Date.now()
console.log(`Testing calculating the sum of ${NUMBERS} numbers\n`)
const forLoops = []
const whileLoops = []
@micw
micw / install_jenkins_plugin.sh
Last active Nov 23, 2021
Script to install one or more jenkins plugins including dependencies while jenkins is offline
View install_jenkins_plugin.sh
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "USAGE: $0 plugin1 plugin2 ..."
exit 1
fi
plugin_dir=/var/lib/jenkins/plugins