Set ignore to all files of a directory with subversion: $ cd cache $ svn propset svn:ignore ‘*’ . $ svn ci . -m ‘Ignore set on cache dir.’ Show changed files between two revisions, overview $ svn diff -r 300:HEAD –summarize Show changed files between two revisions, for each revision: $ svn log -v [...]
Posts Tagged ‘commandline’
Filed under: Linux, Productivity
Social Tagging: commandline • Linux • subversion
Filed under: Mac, Snippets, Tutorials
Social Tagging: commandline • Serverstuff • Tools
This is a receipe how I save stuff to S3 from my Mac: 1.) Signup with S3: http://aws.amazon.com/s3/ (check pricing!). This will give you access to the AWS Management Console. 2.) Create a Bucket: This can be done via the AWS Management console. If you are not familiar with the concept of ‘buckets’ check-out the [...]
Recursively remove all .svn directories from a working copy: find . -name .svn -exec rm -rf {} \; Recursively remove all ._xyz-files (OSX meta file info) from your WebDav-Drive, set via hourly cron: find /var/data/ -name “._*” -exec rm {} \; Do not forget to set your path ;). Check for syntax-errors (lint) in all [...]
Filed under: Snippets, Software development, Tools, Tutorials
Social Tagging: commandline • script • subversion • Tools
This is just a link to a very good tutorial on how to make your own SVN post-commit hook using a PHP script. It sends the following information via email: Committer name Commit message List of files edited Diff of changes made http://techchorus.net/writing-php-script-send-svn-commit-changeset-email-notification
Filed under: Snippets, Tools
Social Tagging: commandline • php
I just hacked together the following quick and dirty PHP-script to use the tidy-extension from the command line. Maybe somebody else needs something like this somewhere. Check the comment for details: <?php // // (a) Save this as tidy.php // (b) Call it from commandline like this: $ php tidy.php trashed.html > tidy.html // to [...]
Filed under: Linux, Productivity
Social Tagging: commandline • Linux
I had a list of files from a large file structure as a result from a maintenance script run with lines like this: /home/web/…/sources/…/2008/12/25/4f1feabbd76f79ecab150bdee3f6ae4d.xml /home/web/…/sources/…/2008/12/25/e506e433a2d87f0275c7641da59bbf7f.xml /home/web/…/sources/…/2008/12/28/901c4f081645b986e9b1377d3f586b8e.xml /home/web/…/sources/…/2008/12/28/6bec4d4bbcf8f596c40694210d220a3b.xml /home/web/…/sources/…/2008/12/24/477c535d6111605c8f6020a959f32fde.xml /home/web/…/sources/…/2008/12/24/9f253a96fc26d8f6d9e61b8f1bdb3453.xml Each line represented a document path to a file which was supposed to be removed from the filesystem. You can do that with the following simple [...]
Filed under: Linux, Productivity, Snippets, Tools
Social Tagging: commandline • Linux • Productivity
I am currently working on a project in which we have lots of images from an old CMS waiting to be migrated into a new layout. Of course there are restrictions so it should not happen that certain image types exceed a certain max. width. OK, we have many many images… So I took a [...]
(1) Finds files in generated documentation, containing <span class=”field”>webservice:</span> and writes a file containing a clickable list of links to those pages: ~/sites/html/phpdoc_all_global$ find -type f -print0 | xargs -0 grep -li ‘<span class=”field”>webservice:</span>’ | while read in; do echo “<a href=\”$in\”>$in</a>”; done > clickable_list_page.html (2) A for-loop on the commandline. The * equals all [...]
Inspired by the book “The Productive Programmer” I was paying attention more and more on how I actually get things done and how I could better exploit existing shortcuts or faster paths. Please do not ask why, but I had the following problem: One my PHP-Apps had scattered syntax errors. The question was, how I [...]





RSS