I wonder...

Friday, December 28, 2007

base64 representation of current time

#!/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
Posted by cjj at 3:13 PM
Labels: code

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Published articles

Loading...

Memory?

  • ►  2014 (2)
    • ►  March (1)
    • ►  January (1)
  • ►  2012 (2)
    • ►  July (1)
    • ►  June (1)
  • ►  2011 (5)
    • ►  September (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2010 (7)
    • ►  October (2)
    • ►  July (1)
    • ►  June (1)
    • ►  May (3)
  • ►  2009 (2)
    • ►  October (1)
    • ►  February (1)
  • ►  2008 (13)
    • ►  December (1)
    • ►  September (1)
    • ►  August (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (3)
    • ►  March (2)
    • ►  February (2)
    • ►  January (1)
  • ▼  2007 (25)
    • ▼  December (2)
      • base64 representation of current time
      • A place
    • ►  November (3)
    • ►  October (1)
    • ►  August (1)
    • ►  March (3)
    • ►  February (12)
    • ►  January (3)

Labels

  • code (11)
  • gadget (1)
  • hack (7)
  • software (6)
Powered by Blogger.