Skip to content

Instantly share code, notes, and snippets.

@mvargeson
mvargeson / bumpme
Last active April 30, 2018 22:05
bumpme
Mon Apr 30 22:05:18 UTC 2018

Keybase proof

I hereby claim:

  • I am mvargeson on github.
  • I am mvargeson (https://keybase.io/mvargeson) on keybase.
  • I have a public key ASCHF0ISnyZJ-XDiT4BziJzkvOj7PrDYmjVbGY2iHrZBbgo

To claim this, I am signing this object:

@mvargeson
mvargeson / tinytim.py
Last active August 23, 2018 21:41
Find orphaned source files by looking at list of children and checking all possible parents
#!/usr/bin/env python3
from argparse import ArgumentParser
from glob import glob
from os.path import join, split, splitext, realpath
from re import compile, search
def main():
parser = ArgumentParser(description="Find orphaned source files by looking at list of children and checking all possible parents.")
parser.add_argument(
"src",
@mvargeson
mvargeson / README.md
Created October 9, 2016 23:24 — forked from grantland/README.md
NextBus API
@mvargeson
mvargeson / docker-compose-wait-for-db.sh
Created June 25, 2016 04:14
wait for db container to be available before starting server
#!/bin/bash
bash -c 'while ! </dev/tcp/db/5432; do sleep 1; done; nodal db:bootstrap && nodal s;'
@mvargeson
mvargeson / watchdog.sh
Created April 24, 2014 00:00
Watchdog script that is meant to run in most *nix environments
#!/bin/bash
#
# Watchdog Script
#
# This script is meant to be run as a cron job. This needs to be run as root or a user
# that can start system services.
#
# It looks to see if $NAME is running. If $NAME is not running then it attempts to start
# the process and send notifications.
#