function for copy files with progress bar (using pv – pipe viewer)

2010-11-11 1 min read Bash Linux

function for copy files with progress bar (using pv – pipe viewer)

  <td>
    <div class="text codecolorer">
      &nbsp;cp_p() { if [ `echo "$2" | grep ".*/$"` ]; then pv "$1" > "$2""$1"; else pv "$1" > "$2"/"$1"; fi; }
    </div>
  </td>
</tr>
1

dont have to type new file name (it copy file under same name) and dont have to use ‘/’ in the end of destination folder (but you can if u want, its idiot proof)

Continue reading

Print all environment variables, including hidden ones

2010-11-09 2 min read Bash Fedora Linux

Print all environment variables, including hidden ones

  <td>
    <div class="text codecolorer">
      for _a in {A..Z} {a..z};do _z=${!${_a}*};for _i in `eval echo "${_z}"`;do echo -e "$_i: ${!_i}";done;done|cat -Tsv
    </div>
  </td>
</tr>
1

This uses some tricks I found while reading the bash man page to enumerate and display all the current environment variables, including those not listed by the ‘env‘ command which according to the bash docs are more for internal use by BASH. The main trick is the way bash will list all environment variable names when performing expansion on ${!A*}. Then the eval builtin makes it work in a loop.

Continue reading

Linux>1% Campaign. Prove that we are more than 1% !

2010-10-25 1 min read Linux Uncategorized

Linux>1% Campaign. Prove that we are more than 1% !

At http://www.dudalibre.com they are running a campaign to make every owner of computers running Linux register. The aim is to prove that the general assumption, that only 1 % of all computers run Linux is wrong. Everyone is needed if this effort is going to succeed.

http://www.dudalibre.com/en/gnulinuxcounter

The page can also be displayed in Spanish and French

I voted for my distro Fedora, hope you do the same for your linux distribution and prove that Linux does run on high number of desktop.

Continue reading

taskcoach – one of the best approach to manage your tasks

2010-10-22 1 min read Fedora Linux

Task coach is task planner with reminder, subtask and time tracking, simply put. More elaborate description :

Task Coach is a simple open source todo manager to manage personal tasks and todo lists. It grew out of a frustration that well-known task managers, such as those provided with Outlook or Lotus Notes, do not provide facilities for composite tasks. Often, tasks and other things todo consist of several activities.  Task Coach is designed to deal with composite tasks.

Continue reading

Browser Conkeror – fast, versatile, easy and configurable

2010-10-20 2 min read Linux

Conkeror is a browser that uses XULRunner and is a highly configurable and programmable browser.

Here is the description of the browser from the homepage:

Conkeror is a keyboard-oriented, highly-customizable, highly-extensible web browser based on Mozilla XULRunner, written mainly in JavaScript, and inspired by exceptional software such as Emacs and vi. Conkeror features a sophisticated keyboard system, allowing users to run commands and interact with content in powerful and novel ways. It is self-documenting, featuring a powerful interactive help system.

Continue reading
Older posts Newer posts