Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Run this command when you are in the directory where you want to changes the files that get ignored.
1
880
posted 17 years ago by jachin
test with echo instead of mv
example removes spaces after dots, replaces spaces with _, removes ' , and -, and finally lowercases filenames
1
1093
posted 17 years ago by iblis
Execute multiple commands in background, wait for each to be finished and evaluate their return codes.
0
1021
posted 17 years ago by nohn
Sets a module's weight to the lowest number. This assures that your module is ran before all other modules. Userfull if you want your implementation of a hook to be ran first.
Add this to your .install file. Replace your_modulename with the name of...
2
888
posted 17 years ago by berkes
Adobe Air has a few security settings that stops you executing certain AIR methods when inside the sandbox. The code below bridges between the root document and the security sandbox, allowing you to open a URL in AIR in a default browser.
1
1068
posted 17 years ago by 1man
Add these lines to Drupals settings.php. Probably works on other systems, then Drupal too.
1
1135
posted 17 years ago by berkes
The -P handles partial transfers, I'm using this for big audio/video files.
2
1005
posted 17 years ago by mandric
Searches an array $haystack for $needle. Returns the value of the element which contains the first result. Use strstr_array() for case-sensitive searches and stristr_array() for case-insensitive searches.
1
2251
posted 17 years ago by engel
Everything is either true or untrue, or both true and untrue, or neither true nor untrue - nagarguna
2
1254
posted 17 years ago by zvasanth
Everything is either true or untrue, or both true and untrue, or neither true nor untrue
0
2999
posted 17 years ago by zvasanth