Skip to content

Instantly share code, notes, and snippets.

View cdcabrera's full-sized avatar

CD Cabrera cdcabrera

View GitHub Profile
@cdcabrera
cdcabrera / README.md
Last active July 9, 2017 02:00
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
cdcabrera / post-commit
Last active August 29, 2015 14:05
GitShots, take a snapshot when you commit.
#!/bin/bash
#
# Where I pulled this from: https://gist.github.com/jellea/3438926
#
# 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: