Skip to content

Instantly share code, notes, and snippets.

Andrew Rowe Martlark

Block or report user

Report or block Martlark

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Martlark /
Created Jul 7, 2019
Python SortedList class derived from List
# sorted list
class SortedList(list):
def __init__(self, initial_list_values):
def append(self, new_value) -> None:
for pos, value in enumerate(self):
if new_value <= value:
Martlark /
Last active Aug 28, 2018
Simple script to get logs from the pods of a deployment
#!/usr/bin/env bash
for p in $(kubectl get pods | grep ^${DEPLOYMENT}- | cut -f 1 -d ' '); do
echo ---------------------------
echo $p
echo ---------------------------
kubectl logs $p
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
by Andrew Rowe 2015.
npm install websocket
You can’t perform that action at this time.