Tuesday, April 24, 2012

Grep excluding .svn directories


  1. Temporary/one-time  solution:
grep -Rin "what r u looking for" *|grep -v "\.svn/*"
     2. Permanent solution (for Ubuntu/Linux) - add following line to ~/.bashrc
export GREP_OPTIONS="--exclude=*\.svn*"

Monday, April 16, 2012

Linux Kernel Cross-compilation for ARM based systems

Here is the link for small presentation regarding cross-compilation of Linux kernel for arm based systems. Presentation also includes guide for how to edit existing Linux drivers to adapt to your application.


link : Linux Kernel Compilation-ARM

Sunday, April 8, 2012

Download Youtube Videos on Linux (Behind Proxy)

  • Install youtube-dl
    • Ubuntu: sudo apt-get install youtube-dl
    • Fedora: sudo yum -y install youtube-dl
  •  Open terminal and export http_proxy
    • export http_proxy=http://username:passwd@proxy.com:port_num/
              ( escape spacial characters in password by '\')
  • Download videos
    • youtube-dl  --all-formats url-of-video