Skip to content

Instantly share code, notes, and snippets.

View chawkins88's full-sized avatar

Christopher Hawkins chawkins88

  • United States
View GitHub Profile
@chawkins88
chawkins88 / loop.sh
Last active October 6, 2017 16:09
in line counter for looping bash script
#!/bin/bash
#
# Enhanced version of the excellent original script here:
# https://www.cyberciti.biz/faq/how-to-display-countdown-timer-in-bash-shell-script-running-on-linuxunix
#
# This script will continuously loop on a set interval and run whatever command you put on line 10.
# It will display a timer and count down the seconds until the next loop.
#
cmd="/some/script/or/command"
## workaround until kubeadm supports EBS volumes in yaml
## first mount the pentaho EBS disk on a k8s node:
## aws ec2 attach-volume --volume-id vol-06dd79a6011315ac6 --instance-id i-013ebea37264ae4a2 --device /dev/xvdf && mkdir /mnt/pentaho-data-volume && mount /dev/xvdf /mnt/pentaho-data-volume
## and label it like:
## kubectl label nodes kube-node-development-7-1 pentaho-data-volume-mounted=true
apiVersion: v1
kind: Service
metadata:
name: pentaho-dev-svc
spec:
to: gina.lee@staples.com
from: challatt@riverfrontpc.com
Gist: email is accepted by by outlook service for staples.com but never reaches end user
{
"tags": [],
"envelope": {
"transport": "smtp",