Skip to content

Instantly share code, notes, and snippets.


CD Cabrera cdcabrera

View GitHub Profile
cdcabrera /
Last active Jul 9, 2017
LSOF kill processes associated with a port

Process Kill

Basic kill for those times you just can't seem to stop a process. Originally written to help stop Node processes.

Basic Use

The script has a couple of options. Use a "port"

cdcabrera / post-commit
Last active Aug 29, 2015
GitShots, take a snapshot when you commit.
View post-commit
# Where I pulled this from:
# This script will make a webcam snapshot every commit. The jpg file will have
# the commit id as the filename.
# This script requires imagesnap. Install with: 'brew install imagesnap'
# Put this file in the '.git/hooks/' name it 'post-commit' and chmod it by: