Using tput to save, clear and restore the terminal contents

2010-06-17 1 min read Linux

Using tput to save, clear and restore the terminal contents $ tput smcup; echo ”Doing some things…”; sleep 2; tput rmcup Very useful for interactive scripts where you would like to return the terminal contents to its original state before the script was run. This would be similar to how vi exits and returns you to your original terminal screen.

Save and clear the terminal contents with:

tput smcup

Continue reading

Change pidgin status from the command line

2010-06-16 1 min read Bash Fedora Linux

$ purple-remote "setstatus?status=away&message=AFK" Thanks for the comment oshazard, i wasn’t aware of purple-remote existence.

  • <a href="http://www.commandlinefu.com/commands/view/4554/change-pidgin-status">View this command to comment, vote or add to favourites
  • <a href="http://feeds2.feedburner.com/commands/by/unixApe">View all commands by <a href="http://feeds2.feedburner.com/commands/by/unixApe">unixApe

<a href="http://www.commandlinefu.com"><img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/header-logo.jpg" alt="" align="bottom" />

by David Winterbottom (<a href="http://codeinthehole.com">codeinthehole.com)

<a href="http://feedads.g.doubleclick.net/~a/xmocNuFfObClC-QnA38odl3AWt8/0/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/xmocNuFfObClC-QnA38odl3AWt8/0/di" alt="" align="bottom" />
<a href="http://feedads.g.doubleclick.net/~a/xmocNuFfObClC-QnA38odl3AWt8/1/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/xmocNuFfObClC-QnA38odl3AWt8/1/di" alt="" align="bottom" />

<img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~r/Command-line-fu/~4/Ky02xAVnP7w" alt="" width="1" height="1" align="bottom" />

URL: <a href="http://feedproxy.google.com/~r/Command-line-fu/~3/Ky02xAVnP7w/change-pidgin-status">http://feedproxy.google.com/~r/Command-line-fu/~3/Ky02xAVnP7w/change-pidgin-status

Teaching Kids Programming with Free Programming Languages

2010-06-16 1 min read Linux

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category
Teaching Kids Programming with Free Programming Languages Tech Source From Bohol: &#8221;Most of these languages are graphics-based that makes them fun and attractive for young ones or even for adults who are absolute beginner in programming. So enjoy and teach your kids programming with these free programming languages.&#8221;

URL: <a href="http://linuxtoday.com/news_story.php3?ltsn=2009-10-02-010-35-OS-SW-DV">http://linuxtoday.com/news_story.php3?ltsn=2009-10-02-010-35-OS-SW-DV

wmctrl – window control manager

2010-06-16 0 min read Fedora Linux
\"Blue
Image via Wikipedia

What is <a class="zem_slink freebase/en/wmctrl" title="Wmctrl" rel="wikipedia" href="http://en.wikipedia.org/wiki/Wmctrl">wmctrl?

wmctrl  is  a  command that can be used to interact with an X Window manager that is compatible with the EWMH/NetWM specification.  wmctrl can query the <a class="zem_slink freebase/en/window_manager" title="Window manager" rel="wikipedia" href="http://en.wikipedia.org/wiki/Window_manager">window manager for information, and it can request that certain window management actions be taken.

Continue reading

17 Cool firefox tweaks.

2010-06-16 1 min read Fedora Firefox Linux

A very nice article on firefox can be found here. Though written for Ubuntu should be applicable to all distro&#8217;s.

<a href="http://www.ubuntu-inside.me/2009/07/17-cool-firefox-aboutconfig-tricks.html">http://www.ubuntu-inside.me/2009/07/17-cool-firefox-aboutconfig-tricks.html

Most of it was done in my machine even before I read the article but good to see all of them together 🙂

using kill to see if a process is alive

2010-06-15 1 min read Linux

I am making some changes to the moreutils sponge command. Sponge provides a method of prepending which is less specialized than my prepend util. However, it has trouble with large amounts of input.

Regardless, while testing my changes, I want to watch it operate. Normally, you would just do so <a href="http://bashcurescancer.com/using-kill-to-see-if-a-process-is-alive.html">…

GCompris — Kids games and learning activities and hacks.

2010-06-15 2 min read Linux

I found a nice game and learning software for Kids yesterday. It is called <a href="http://gcompris.net/" target="_blank">GCompris. Details of the software as in their website is<div class="contenu">

GCompris is an educational software suite comprising of numerous activities for children aged 2 to 10. Some of the activities are game orientated, but nonetheless still educational. Below you can find a list of categories with some of the activities available in that category.

Continue reading
Older posts Newer posts