Skip to content

Instantly share code, notes, and snippets.

View lucymhdavies's full-sized avatar
🍓
Strawb System

Lucy Davinhart || Strawb System lucymhdavies

🍓
Strawb System
View GitHub Profile
@njoerd114
njoerd114 / README.MD
Last active March 31, 2025 22:52
Sankey Diagram with Google Spreadsheets

Sankey Diagrams within Google Spreadsheets

This Gist is there to help you creating a Sankey Diagram from your Google Spreadsheets.

Installation

  • Open a spreadsheet
  • Click "Tools" -> "Scripts"
@Deleplace
Deleplace / signdance.go
Last active January 26, 2019 20:28
Source code for a sample Google Cloud Function
# Copyright 2019 Google LLC
# SPDX-License-Identifier: Apache-2.0
package p
import (
"fmt"
"image"
"image/color"
"image/draw"
"image/gif"
@daniilyar-confyrm
daniilyar-confyrm / check_cpu_credits.sh
Last active May 17, 2023 08:34
[Nagios-check] AWS EC2 - check how much CPU credits are left at the instance
#!/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:
@rb2k
rb2k / gist:8372402
Last active February 3, 2025 14:50
A jenkins script to clean up workspaces on slaves
// 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) {