
Probably hungry.
This should be way easier Feb 14
So for whatever reason, there is no standard sleep command in unix that will sleep for less than a second. I guess some distributions have usleep (microsleep) which is great if your system has it or if what your writing is just for your system. But anyways...say you want to delete a bunch of files without locking up your machine...
ls -al ~/oldFiles | perl -lne "unlink; select(undef,undef,undef,.05);"
Where .05 would be 50ms.
Special thanks to perl and google.
TextMate, DockSend, PHP and code that compiles! Jan 5
Ok so basically this will prevent you from uploading broken PHP.
Open up your Bundle Editor and paste this into the 'Transmit->DockSend File' command:
Enjoy!
SYNTAX=`/usr/bin/php -l $TM_FILEPATH`
SUCCESS="No syntax errors detected in $TM_FILEPATH"
if [ "$SYNTAX" == "$SUCCESS" ];
then
osascript -e "tell application "Transmit" to open POSIX file "$TM_FILEPATH""
else
SEARCH="Errors parsing $TM_FILEPATH"
SYNTAX="${SYNTAX/$SEARCH/}"
SEARCH="parse error, "
SYNTAX="${SYNTAX/$SEARCH/}"
SEARCH="parse error in $TM_FILEPATH "
SYNTAX="${SYNTAX/$SEARCH/}"
SEARCH="in $TM_FILEPATH "
SYNTAX="${SYNTAX/$SEARCH/}"
echo "$SYNTAX"
fi
On The Road, Dune, Enders Game, Cryptonomicon, The Code Book, Masters of Deception, The Great Gatsby, A Clockwork Orange, Transmetropolitan, Wikipedia, On Intelligence, 1984, Neuromancer, Tao Te Ching, Ishmael
BBC, Sam Adams, Anchor, PBR, White Russians, Gin and Tonic, Whiskey, Wine, Water
Top Gun, Wayne's World, The Matrix, The Replacement Killers, Die Hard, The Fifth Element, Pirates of Silicon Valley, Hackers, Sneakers, The Arrival, Braveheart, The Blackhole, Blue Planet,
Mega Man, Prince of Persia, Hot Shots Golf, Gran Tourismo, Soul Caliber, Mortal Kombat, Mario Kart 64, Mario Kart, Double Dragon, Bubble Bobble, Metroid, Zelda, Splinter Cell, The Incredible Machine, Counter-Strike, HalfLife, Unreal Tournament, Quake III, Quake, Decent 2, Doom II, Doom, Tie Fighter, A-Train, Sim City, Chess, Sorry, Hold'em, Hearts, 8 Ball, 9 Ball, Ping Pong