Blog /
Linux
16 posts
2017
- Try to recover from a failed Raspberry PI SD card So my raspberry pi would no longer start. After some investigation I could only conclude that the SD card became corrupted. It would initially start but it would hang somewhere halfway. I would see…
2011
- Extract winmail.dat files in linux Source: http://www.faqforge.com/linux/how-to-open-winmail-dat-files-on-ubuntu-or-debian-linux/ The winmail.dat file is a container file format used by Microsoft Outlook to send attachments in…
- Repair corrupted zipfiles in linux Source: http://techie-buzz.com/foss/fix-corrupted-zip-files-in-linux-quick-tip.html You can easily repair “repairable” zip files downloaded on Linux by issuing the following command; zip –F…
- Argument list too long Source:http://www.linuxjournal.com/article/6060?page=0,0 Four approaches to getting around argument length limitations on the command line. At some point during your career as a Linux user, you may…
- More linux snippets Need to remove all those ^M characters from a DOS file? Try tr -d \\r < dosfile > newfile Need to find which process is taking up a certain port? sudo fuser -n tcp 8080 get details on a certain…
2010
- Subversion - Command line samples Some of the svn commands I use from time to time. Find the revision number when a branch was created svn log --verbose --stop-on-copy urltosvnbranch Merge latest changes from the runk to your branch…
- Unix - Copy files For one project we wanted to duplicate the i18n files of a codeigniter application to a new locale. This is how my colleague did it. # Copy all dirs named 'fr_FR' to a 'fr_LU' dir in the same parent…
- Unix - wordcount source: http://www.unix.com/nl/unix-dummies-questions-answers/108614-word-count.html and…
2009
- Ubuntu - rename multiple imgs I wanted to rename a bunch of pictures I had converted to black-n-white: rename -n 's/\.JPG$/_bw\.JPG/' *.JPG The -n option doesn't actually rename, it only shows what files would have been renamed…
- Linux - Add an environment variable to your profile Just something for myself. I had to install maven at the office and had to search again how to add the environment variables to my profile and have them effective immediately, without logging off/on…
- More useful Linux commands How to get some hardware info about your machine? Execute this one: sudo lshw -html > info.htm Source: colleague MV From my colleague BV I got the following interesting site:…
- Sendmail painfully slow on Ubuntu At the office I'm running ubuntu 8.04 (Hardy Heron). My machine always took quite some time to boot, mainly due to sendmail trying to do stuff I couldn't care less about. I just get my morning coffee…
- Generate a password in bash shell /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c8 source: http://funinc.org/w/20080623/generate-a-random-password-in-bash.moo/
- Find something that isn't there in Linux and other nifty snippets As I switch often between Linux and Windows, I tend to forget the most basic stuff. A little brain and a lot of garbage in it doesn't help obviously. One of the things I use quite often (and have to…
2008
- Batch resize images on Ubuntu Found this thread on how to batch resize images: http://ubuntuforums.org/showthread.php?t=170862 For horizontal conversion: for i in `ls`; do convert -resize 1600 $i hresized_$i; done For vertical…
- XAMPP control panel error on Ubuntu When trying to lauch the xamp control panel today, I got the following error: File "xampp-control-panel.py", line 21, in import gtk File "/var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py",…