Categories
Linux

Mac addresses Linux

This is how we can get the mac addresses of all the interfaces on the system.

$ /sbin/lspci -v | grep -i “Device Serial Number”

Categories
Linux

Keep doing the last thing until you do it properly.

I do not know if this has any practical use, but yes there is a way we can tell our commands to keep running it unless it becomes successful, or else give you an exit status of 1. I would not be making my commands work so hard, but since its possible, let me post here.

$ until !!; do :; done

Categories
Linux

Things I learnt to do with emacs.

1. To tweet.
2. To Blog.
3. As a personal todo and task taker using org-mode.
4. As an IRC Client.
5. As a text based web browser.
6. As an MUA(Mail User Agent).
7. As a shell terminal.
8. As a file manager.
9. Using github as version control.
10. Last but not the least as an editor, to code and do things amazingly. Take the tour.

Categories
Linux

weblogger.el

This post is being posted by webblog.el module of emacs.

Categories
editor vim

Vim on ipad

Was looking for a emacs clone on ipad, but it seems emacs uses lots of lisp and as per Apple’s store policies, can’t have an application on iPhone and IPads which uses code which can internally execute processes or may traverse across the application boundaries or the internals of the system, hence emacs is not ported and after some googling I figured out it never will be since, emacs does believe in the freedom and Apple otherwise.

Though, I manage to download vim clone for ipad(and I am sure vim does uses some scripts).

Categories
Linux

Famous emacs users(who are not famous for using emacs)

Was using emacs from quite sometime as my primary editor for two reasons one as to learn more about emacs as an editor and two a wonderful platform to do many things. And during my learning curve came across this page created by “Wenshan” and this list is just amazing.

Famous Emacs Users (that are not famous for using Emacs)

But of course using emacs will not end up making me a great programmer, so these relatively known people and me might only thing in common is we used emacs at some point of time(or may have kept using).

Categories
Linux

Pop up windows in kde and gnome.

I use this primarily to pop up something while I am usually working on doing some coding and need a reminder.

zenity –info –text “Remember the milk”

This pops up a window telling me what to do. Setting this with “at” helps me schedule it too.

Categories
Linux

Summary of disk…

Summary of disk usage, excluding other filesystems, summarised and sorted by size

du -xks * | sort -n

Categories
Linux

Programming languages

curl http://en.wikipedia.org/wiki/List_of_programming_languages | grep "li>" | awk -F"title=" '{ print $2 }' | awk -F\" '{ print $2 }'

list all programming launguages

Categories
Linux

$ ps axu | grep…

$ ps axu | grep [a]pache2

grep processes list avoiding the grep itself