Skip to content

Instantly share code, notes, and snippets.

View bumpme
Mon Apr 30 22:05:18 UTC 2018
View keybase.md

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 Aug 23, 2018
Find orphaned source files by looking at list of children and checking all possible parents
View tinytim.py
#!/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 Oct 9, 2016 — forked from grantland/README.md
NextBus API
View README.md
@mvargeson
mvargeson / docker-compose-wait-for-db.sh
Created Jun 25, 2016
wait for db container to be available before starting server
View docker-compose-wait-for-db.sh
#!/bin/bash
bash -c 'while ! </dev/tcp/db/5432; do sleep 1; done; nodal db:bootstrap && nodal s;'
@mvargeson
mvargeson / watchdog.sh
Created Apr 24, 2014
Watchdog script that is meant to run in most *nix environments
View watchdog.sh
#!/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.
#