#!/bin/bash time=$(date +%s%N) s=$(for b in `bc<<<"obase=256;$time"`; do j=000`bc<<<"obase=8;$b"` j="\\${j: -3}" echo -n $j done) eval "echo \$'$s'"|base64
Friday, December 28, 2007
base64 representation of current time
Thursday, December 6, 2007
A place
If we can partition our life into stages, will there be one that we can stand? Or, it's going to be an eternal struggle to reach the next? I need strength...
Wednesday, November 21, 2007
The Chase is On
There is no point in live where one should feel content with one's growth, in power and ability generally, in mind and control particularly. While contriving, expressing ideas and moving are just the beginnings, the rate will likely determine everything.
Friday, November 16, 2007
Friday, November 2, 2007
remove duplicate paths from $PATH in BASH
Here is one that I came up with:
PATH=`awk -F: '{for(i=1;i<=NF;i++){if(!($i in a)){a[$i];printf s$i;s=":"}}}'<<<$PATH`
PATH=`awk -F: '{for(i=1;i<=NF;i++){if(!($i in a)){a[$i];printf s$i;s=":"}}}'<<<$PATH`
Friday, October 26, 2007
torque, rsync, and selinux
Somehow, rsync dies quietly when run inside a qsub script if selinux is enabled (on a Fedora 7 system). I can by-pass this by changing the security context inside the script. However, this should be the job of torque. Anyway, make selinux permissive is the simplest way of dealing with it.
Wednesday, August 22, 2007
Beneficial
Addiction is about giving up the freedom of will to instinctive impulses. What to gain are usually biological comforts. But, what to lose is the very reason for being in this world.
Subscribe to:
Posts (Atom)