Skip to content

Instantly share code, notes, and snippets.

View mark-dizon's full-sized avatar

Mark Dizon mark-dizon

  • Maker Studios
  • Los Angeles, CA
View GitHub Profile
@mark-dizon
mark-dizon / checkpush.sh
Created January 25, 2013 11:24
Remind user to run test suite before pushing code. Untested idea.
function checkpush(){
echo "Did you run the test suite?"
select yn in "Yes" "No"; do
case $yn in
Yes ) git push; break;;
No ) echo "Better run the tests first." exit;;
esac
done
}
@mark-dizon
mark-dizon / TCPTest.java
Last active December 14, 2015 19:59
TCP Connection to ES Server
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStreamReader;
import java.net.Socket;