Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
Use this command in Textmate to paste some text without any surrounding whitespace.
1
965
posted 18 years ago by hyperwhat
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
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