This file contains 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 node | |
/* | |
npm install p-queue | |
*/ | |
import PQueue from "p-queue"; | |
process.on("uncaughtException", (err) => { | |
console.log("Uncaught!", err); |
This file contains 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 | |
######################## | |
# Exports PlantUML diagrams using a Docker PlantUML Server. | |
# ARGS: | |
# $1 : Target directory to recursively search | |
# CONFIG: | |
# $port : Port to bind the PlantUML Server to | |
# $dockerName : Name of the Docker container | |
# $fileExt : File extensions that belong to PlantUML | |
# $dryRun : Detect files but not process them |
This file contains 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
####################################### | |
# Please replace this values | |
$gitlabUrl = "https://gitlab.com" | |
$bearerToken = "abcdefg" | |
####################################### | |
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" | |
$headers.Add("Authorization", "Bearer $bearerToken") | |
$runners = Invoke-RestMethod "$gitlabUrl/api/v4/runners?status=offline" ` | |
-Headers $headers |