Q: how to make a screenshot from the terminal
# capture images in format -t(ype) 'png' after waiting a -T(ime) of 5 seconds # and open the -P(review) after storing them to ~/Desktop/ screencapture -t png -T 5 -P ~/Desktop/screen1.png ~/Desktop/screen2.png # -t the type of image (pdf, jpg, tiff) # -T <seconds> the delay before the image is taken # -P open images in preview window # -M send images via mail # -m only take the main monitor
Q: how to remove files or directories
# remove .svn folders rm -rf `find . -type d -name .svn` # remove .DS_Store files rm -rf `find . -type f -name .DS_Store`
Q: how to start the trac-standalone server
tracd -r --port=8000 - --basic-auth="env,passwd,realm" $project/$env
where:
$project – the absolut path to your project folder (e.g. /Sites/project/)
$env – the environment name (e.g. trac)
$passwd – the absolut file to the .passwd file for the project (e.g. $project/$env/.htpasswd)
$realm – something that you like (e.g. example.org, trac)
Pretty nice post. I just stumbled upon your weblog and wanted to say that I have truly enjoyed browsing your blog posts. After all I’ll be subscribing to your rss feed and I hope you write again very soon!