Linux

Tracking Changes in Git Repository and Deploy Chef + Bash + Cron

I like Chef very much. Opensource version, of course, lacks some features of Enterprise Chef, for example there are no push-jobs. Imagine you’re using opensource Chef to deploy some web application using deploy_revision resource. It tracks some branch in git repository and if there are changes it deploys. The problem is that chef-client runs hourly by default and I don’t know a person who is patient enough to wait for deploy for an hour.

Extract Files With the Particular Extension From Zip Archive

“find” linux utility may be very handy if you’re trying to grind large number of files. Trying to remove many files in the particular directory using

$ rm -f ./*

you may get something like

/bin/rm: cannot execute [Argument list too long]

but if you use find, you won’t hit such an issue

$ find . -maxdepth 1 -delete

Today I was asked to extract .xml files from zip archives. There were lot of zip files and lot of files with different extensions within archives.

Debian Testing, Installation Iceweasel(Firefox Fork) Browser From Unstable

Community is doing great job supporting and contributing to Debian, guys are making as-stable-as-possible product for server installs. (Actually, I have never seen live production server running Debian, lol, but I think it should work well)

But if you’re using Debian on local box, as me, you can find it a bit too stable: at the moment Iceweasel 10.0.12 is in stable repo, 17.0.9 in testing, 24 in unstable.

Fedora 17 to Fedora 19 Upgrade

Long story short: My computer at work was running Fedora 17. Wow-wow-wow, dude, you may say, seventeen? Really? Yep. It worked for my previous collegue and worked for me for a while too without any major issues. But do you know what time is it? Upgrade time!