Welcome To Snipplr
Everyone's Recent Bash Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Execute multiple commands in background, wait for each to be finished and evaluate their return codes.
0
1931
posted 18 years ago by nohn
The -P handles partial transfers, I'm using this for big audio/video files.
2
2125
posted 18 years ago by mandric
To find out how much swap you are using at any given time.
If there's more than 1 swapfile you could benefit from more RAM.
0
1644
posted 18 years ago by cczona
Open up terminal, paste the code below, then log your user out.
0
1894
posted 18 years ago by chrisaiv
Running this command will append a line with given values to a file you specify. Replace words between < and > with the values you desire.
1
2518
posted 18 years ago by engel
this launches vi so you can add the files/dirs you want to ignore. i'm not happy.
4
2085
posted 18 years ago by mandric
-l grep options shows the path and only the path of the matching file
0
1924
posted 18 years ago by therobot
qlmanage -p foo.png, the image immediately pops up in a Quick Look pane.
Even better, Quick Look supports slide shows. So if you cd into a folder of images and run qlmanage -p *.jpg, you'll be rewarded with a full-on presentation of your pictures....
0
1652
posted 18 years ago by jrphelps
So you don't have to type the password everytime you log in to that remote ssh server. Don't enter a passphrase when prompted, just hit enter. This example is for Mac OS X but is likely to work on *nix plats too.
5
2033
posted 18 years ago by micmath
Set a reminder. Use +hhmm to set a reminder for some hh (hours) or mm (minutes) in the future; e.g., set an alarm for 45 minutes from now as:
leave +0045
0
1567
posted 18 years ago by rhockens
-nd do not create a hierarchy of directories (save all recursively retrieved files in the current directory)
-r recursive retrieving
-l1 set maximum recursion depth to 1 (stay in that folder): set to 2 if necessary
--no-parent do not...
3
2678
posted 18 years ago by iblis
If you set the NSObjCMessageLoggingEnabled environment variable to "YES", the Objective-C runtime will log all dispatched Objective-C messages to a file named /tmp/msgSends-.
0
1866
posted 18 years ago by zingo