Skip to content

Instantly share code, notes, and snippets.

@fewstera
fewstera / bash_profile
Last active May 10, 2018 10:21
Shell function to kill process running on port
# Taken from https://github.com/kevinSuttle/dotfiles/commit/9458141f40094d96952adc7c423cbdddeb909a81#diff-0eaa46c12c8190dcb4e4b46838220683
# Usage: `kill-port 8080` to kill the process running on port 8080
kill-port() {
if [ -z "$1" ]; then
echo "Usage: kill-port [port number]" >&2
return 1
fi
lsof -i TCP:$1 | awk '/LISTEN/{print $2}' | xargs kill -9
}
{
"organic_tracking_token": "eyJ2ZXJzaW9uIjozLCJwYXlsb2FkIjp7ImlzX2FuYWx5dGljc190cmFja2VkIjpmYWxzZSwidXVpZCI6ImQ5OWQwNzhiMDZkYjRhNTViNjlhMDkyZDc2ZGQ0YTMwIn0sInNpZ25hdHVyZSI6IiJ9",
"client_cache_key": "MTAyNzA1NDQ0NDk3NDA0NTgyNw==",
"code": "5A1JN9qfqD",
"has_more_comments": false,
"taken_at": 1436654452,
"photo_of_you": false,
"caption_is_edited": false,
"comments": [
{