This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const {NodeVM} = require('vm2'); | |
| const {isMainThread, Worker, parentPort} = require('worker_threads'); | |
| if (isMainThread) { | |
| const worker = new Worker(__filename); | |
| let lastMessage = null; | |
| worker.on('message', () => lastMessage = Date.now()); | |
| worker.on('online', () => lastMessage = Date.now()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM azul/zulu-openjdk-alpine:8-jre as gradler | |
| ARG BASE_URL=https://development.adaptris.net/installers/Interlok/latest-stable/ | |
| ARG INTERLOK_VERSION=3.10-SNAPSHOT | |
| ARG java_tool_opts | |
| ENV JAVA_TOOL_OPTIONS=$java_tool_opts | |
| # JAVA_HOME is set wrong on the latest 8-jre image. | |
| # ENV JAVA_HOME=/usr/lib/jvm/zulu8 | |
| RUN apk add --no-cache --update ca-certificates bash curl unzip && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Pre-requisite | |
| ================== | |
| 1) Create an Environment (if you don't already have on) and enable it for your request | |
| 2) Add a new Header with key as "Authorization" and value as "{{hmacAuthHeader}}" | |
| 3) Add the following Pre-request Script that computes the hmacAuthHeader variable and adds it to the environment | |
| 4) Fill your CLIENT_KEY and SECRET_KEY with valid values | |
| */ | |
| function getPath(url) { | |
| var pathRegex = /.+?\:\/\/.+?(\/.+?)(?:#|\?|$)/; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Install Nano (www.nano-editor.org) with syntax highlighting (MacOS) | |
| VERSION="4.1" | |
| NANO_SHORT="nano-$VERSION" | |
| NANO_SRC="$NANO_SHORT.tar.gz" | |
| NANO_URL="https://www.nano-editor.org/dist/v4" | |
| NANO_EXTRA="https://github.com/scopatz/nanorc" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ECHO='echo ' | |
| for branch in $(git branch -a | sed 's/^\s*//' | sed 's/^remotes\///' | grep -v 'master$'); do | |
| if [[ "$(git log $branch --since "6 months ago" | wc -l)" -eq 0 ]]; then | |
| if [[ "$DRY_RUN" = "false" ]]; then | |
| ECHO="" | |
| fi | |
| local_branch_name=$(echo "$branch" | sed 's/remotes\/origin\///') | |
| $ECHO git branch -d $local_branch_name |

