Skip to content

Instantly share code, notes, and snippets.

View lboynton's full-sized avatar
😷
<img src=x onerror=alert(1)>

Lee Boynton lboynton

😷
<img src=x onerror=alert(1)>
View GitHub Profile
@lboynton
lboynton / onchange.sh
Created February 26, 2014 09:39 — forked from senko/onchange.sh
#!/bin/bash
#
# Watch current directory (recursively) for file changes, and execute
# a command when a file or directory is created, modified or deleted.
#
# Written by: Senko Rasic <[email protected]>
#
# Requires Linux, bash and inotifywait (from inotify-tools package).
#
# To avoid executing the command multiple times when a sequence of