Staying behind a proxy can be very annoying, with macosx it’s nice and easy to set a global proxy.
Unfortunately command line programs don’t care about those settings, so we have to manually set them every time.
With the script you’ll find below we set globally the proxy for ftp, http, rsync and subversion:
Read the rest of this entry »
If you are at least lazy as me and you use macosx and you hate the mouse I just found this little “shortcut”.
Just go to your favorite terminal and do something like that:
sh-3.2# pbcopy < file
Now in your copy buffer you have your text file (pbcopy defaults to ASCII, see man pbcopy for further informations) and you can paste it everywhere you want or using pbpaste from terminal.
Of course you can also put them in pipes, as for example this deletes comments from a shells script and puts the result in the copy buffer:
sh-3.2# grep -v '^#' file | pbpaste
Otherwise you should:
open the file
close the file
This is much faster, isn’t it?