All posts tagged with 'Shell'

Preparing for Rails 2.3.9

06-Sep-10

As much as i wish to upgrade my Rails 2.3.x application Daily Fratze to the newest tag of the Rails 2.3.x branch, i cannot. First there was the epic fail of release 2.3.6, that broke all HTML Helpers and forced the Rails XSS protection upon us. This release was immediately followed by 2.3.7 and 2.3.8. […]

Read the complete article »

Batchconvert ascii to utf8

12-May-09

Next time i see umlauts in source, I’ll scream. Loud. In the mean time I try this: find . -iname "*.java" -exec sh -c ‘iconv -f cp1252 -t utf-8 {} > {}.utf8’ \; for i in `(find . -name "*.utf8")`; do mv $i ${i/.utf8/}; donefind . -iname "*.java" -exec sh -c ‘iconv -f cp1252 -t […]

Read the complete article »

Recursively md5sum all files in a directory tree

25-Oct-08

After a server crash a wanted to compare all actual files with the backuped data. An easy way is to compare the md5 hashes like that: First create recursively md5 hashes from all files in that directory: find ./backup -type f -print0 | xargs -0 md5sum > /checksums_backup.md5find ./backup -type f -print0 | xargs -0 […]

Read the complete article »