This Gist is there to help you creating a Sankey Diagram from your Google Spreadsheets.
- Open a spreadsheet
- Click "Tools" -> "Scripts"
# Copyright 2019 Google LLC | |
# SPDX-License-Identifier: Apache-2.0 | |
package p | |
import ( | |
"fmt" | |
"image" | |
"image/color" | |
"image/draw" | |
"image/gif" |
# Usage: change username:password to either an app-password or your actual password | |
# Change WheresAlice to your actual username on Bitbucket.org | |
# Run this script from the directory with all your GitHub checkouts in | |
# @TODO - Due to Mac limitations of 'find' we are listing all files, not just directories | |
# @TODO - Get a list of GitHub repos and clone them all | |
# @TODO - Do this for GitLab too | |
# Replace my_token with a token from https://github.com/settings/tokens and then uncomment this line in order to clone the first 100 of your github repositories | |
# curl 'https://api.github.com/user/repos?access_token=my_token&affiliation=owner&per_page=100' | gron | grep ssh_url | cut -d'"' -f2 | xargs -I {} git clone {} |
#!/bin/bash | |
set -e | |
OK=0 | |
WARN=1 | |
CRIT=2 | |
UNKNOWN=3 | |
function get_warning_limit { |
master: | |
image: rancher/server | |
container_name: master | |
volumes_from: | |
- mysql | |
ports: | |
- "8080:8080" | |
links: | |
- mysql | |
environment: |
// Check if a slave has < 10 GB of free space, wipe out workspaces if it does | |
import hudson.model.*; | |
import hudson.util.*; | |
import jenkins.model.*; | |
import hudson.FilePath.FileCallable; | |
import hudson.slaves.OfflineCause; | |
import hudson.node_monitors.*; | |
for (node in Jenkins.instance.nodes) { |