Skip to content

Instantly share code, notes, and snippets.

View ianmiell's full-sized avatar

Ian Miell ianmiell

View GitHub Profile
ITEM:/kubernetes.io
ITEM:/kubernetes.io/masterleases
ITEM:/kubernetes.io/masterleases/172.28.128.7
{"kind":"Endpoints",
"apiVersion":"v1",
"metadata":{"generation":8487,
"creationTimestamp":null},
"subsets":[{"addresses":[{"ip":"172.28.128.7"}]}]}
ITEM:/kubernetes.io/masterleases/172.28.128.4
@ianmiell
ianmiell / gist:a279edb1d102c519f96ca1961d630a51
Last active January 18, 2022 17:50
Show all crons running on your system
#!/bin/bash
# Adapted from an answer on: https://stackoverflow.com/questions/134906/how-do-i-list-all-cron-jobs-for-all-users
set -eu
# System-wide crontab file and cron job directory. Change these for your system.
CRONTAB='/etc/crontab'
CRONDIR='/etc/cron.d'
@ianmiell
ianmiell / 1
Created September 16, 2019 06:35
1
@ianmiell
ianmiell / 2
Created September 16, 2019 06:40
2
@ianmiell
ianmiell / 3
Created September 16, 2019 06:40
3
#!/bin/bash
# 0 * * * * /Users/imiell/git/work/bin/home/slack_start_stop.sh start
# 3-59 * * * * /Users/imiell/git/work/bin/home/slack_start_stop.sh stop
DO_START=0
DO_STOP=0
while [ "$1" != "" ]; do
case $1 in
@ianmiell
ianmiell / .block
Last active February 5, 2021 12:47 — forked from magjac/.block
Growing Graphviz Edges
height: 800
@ianmiell
ianmiell / git-remote-url
Created April 1, 2021 08:05
Script to get git repo link
#!/bin/bash
# based on: https://stackoverflow.com/questions/47524709/how-to-get-the-full-path-of-a-file-in-a-git-remote-repo
#set -o xtrace
set -o errexit
set -o nounset
set -o pipefail
function usage {
echo "$0 [ -h/--help ] [ FILENAME ]"
height: 800
{
"name": "flare",
"children": [
{
"name": "the analytics of something is a very long sentence\ndoes this work to make things a bit more readable",
"children": [
{
"name": "How would this work with an AgglomerativeCluster node being there",
"children": [
{"name": "How would this work with an AgglomerativeCluster node being there", "size": 39380},