Skip to content

Instantly share code, notes, and snippets.

View sullenfish's full-sized avatar

Fred Ostrander sullenfish

View GitHub Profile
@sullenfish
sullenfish / platform-cygwin.cc
Created December 30, 2010 16:08 — forked from piscisaureus/platform-cygwin.cc
V8 Workaround to Compile Node in Cygwin
// Copyright 2006-2008 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following
// disclaimer in the documentation and/or other materials provided
@sullenfish
sullenfish / reload.bash
Created March 28, 2011 12:29 — forked from appden/reload.bash
bash profile reload via Scott Kyle (aka appden)
# put this in your bash profile (change the line below if you use .bash_profile)
# refresh profile on USR1 signal
trap 'eval $(PATH= /usr/libexec/path_helper -s) && source ~/.profile' USR1
# send USR1 signal to all bash instances
reload() {
ps -xo pid,command | grep ' \-bash' | awk '{print $1}' | while read pid; do
kill -USR1 $pid
done