Skip to content

Instantly share code, notes, and snippets.

Andrew Rowe Martlark

View GitHub Profile
@Martlark
Martlark / log_deployment.sh
Last active Aug 28, 2018
Simple script to get logs from the pods of a deployment
View log_deployment.sh
#!/usr/bin/env bash
DEPLOYMENT=$1
for p in $(kubectl get pods | grep ^${DEPLOYMENT}- | cut -f 1 -d ' '); do
echo ---------------------------
echo $p
echo ---------------------------
kubectl logs $p
done
@Martlark
Martlark / static_server.js
Last active Sep 3, 2015 — forked from ryanflorence/static_server.js
Node.JS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument. With file change detection. Requirements: npm install websocket. To use. place in head of your html files <meta detection-change="true"> so that it will auto refresh if any served files change.
View static_server.js
/*
node js static web server with file change detection
based upon
https://gist.github.com/ryanflorence/701407
by Andrew Rowe 2015.
requirements.
=============
npm install websocket
You can’t perform that action at this time.