Welcome To Snipplr


Everyone's Recent Snippets



1 ... 517 518 519 520 521 ... 553
A one-liner to remove any temporary files modified over one day ago. Removes files from /tmp/ Run without the '-exec rm {} \;' part to check that it is matching the right set of files - this can be dangerous if run by root! If you want to remove fi...
1 1416 posted 18 years ago by wolfie
[quote] Verbose booting shows you the actual process of Mac OS X's startup. You'll see drivers get loaded and services launch. This command should work on any recent (New World) Macintosh: sudo /usr/sbin/nvram boot-args="-v". The -v flag tells the s...
0 1118 posted 18 years ago by rhockens
"...UNIX systems run scheduled maintenance routines — known as maintenance scripts — to clean up a variety of System logs and temporary files. By default, these are executed between 03:15 and 05:30 hours local time, depending on the script. If...
1 1340 posted 18 years ago by rhockens
Inserts the values of an array into a table. Also supports specifying if a specific field needs to be encoded using PASSWORD() Parameters: Table: Name of table to insert into Data: array of $field->$value of new data Password Field: Which field i...
3 5445 posted 18 years ago by depmed
0 1154 posted 18 years ago by vanne
0 1052 posted 18 years ago by tjhanley
1 1081 posted 18 years ago by skatan
1 1467 posted 18 years ago by eethann
Use this command in Textmate to paste some text without any surrounding whitespace.
1 965 posted 18 years ago by hyperwhat
0 986 posted 18 years ago by vanne
get the image size and reduces it dynamically
3 1569 posted 18 years ago by valcartei
A simple way to build iPhone specific interface with Rails
2 1125 posted 18 years ago by ctran
Taken from a lynda.com tutorial on learning actionscript. Lots of comments for the moment.
0 1124 posted 18 years ago by 1man
Convert 12hs format to 24hs format. In example: 10:00:00 a.m. return timestamp for 22:00. Or use: strtotime('1970-01-01 '.$hora);
1 1182 posted 18 years ago by nicolaspar
0 1169 posted 18 years ago by eethann
0 1068 posted 18 years ago by wintondeshong
Useful when your server runs out of disk space
1 1116 posted 18 years ago by benpjohnson
The escape_javascript funtion is taken from Rails (http://rails.rubyonrails.com/classes/ActionView/Helpers/JavaScriptHelper.html#M000633). Most of the work on this was done by pnomolos and n00ge on the E Text Editor forums.
1 1279 posted 18 years ago by charlesroper
simple example of startDrag and stopDrag using AS3
5 1971 posted 18 years ago by mswallace
1 1132 posted 18 years ago by nicolaspar
1 ... 517 518 519 520 521 ... 553