Feb 04

Dante’s Inferno hid passwords for their website http://hellisnigh.com in the source code of various websites. When you enter them all you get to download a zip file called “earthly_rewards_dantes_inferno.zip”. I’ll let you know what it is once it finishes (46MB and climbing) — the website is really slow right now. You can probably try to download it directly here, let me know if it doesn’t work: http://www.hellisnigh.com/files/earthly_rewards_dantes_inferno.zip

Password 1: excommunicate
Password 2: scythe
Password 3: grafter
Password 4: styx
Password 5: unbaptized
Password 6: alighieri

Password 1 is found in the source of http://digg.com, 2 on http://dailymotion.com, 3 on http://gamespot.com, 4 on http://ign.com, 5 on http://gamesradar.com, 6 on http://wwe.com

Tagged with:
Nov 09

When you write a shell scripts you need to create filename with date in it. For example instead of log file name “bauson.log”, you can create a filename called “jan-02-06-bauson.log”.

The date in file will make it easy to find out all logs or reports. You can display the current date and time in the given FORMAT using date command. If you just type date command it will display in standard FORMAT:

$ date
Output:
Mon Nov 9 10:54:57 PHT 2009

To display date in MONTH-DAY-YEAR format you need to use date command as follows:

$ date +"%b-%d-%y"

Nov-09-09

As you can see I have used FORMAT as follows
date +”FORMAT”
Where, FORMAT can be any one of the following:

  • %a : Abbreviated weekday name (Sun..Sat)
  • %b : Abbreviated month name (Jan..Dec)
  • %B : Full month name, variable length (January..December)
  • %d : day of month (01..31)
  • %e : day of month, blank padded ( 1..31)
  • %H : 24 hour format (00..23)
  • %I : 12 hour format (01..12)
  • %j : day of year (001..366)

First obtained date:

$ NOW=$(date +"%b-%d-%y")

Create a file with date in filename:

$ LOGFILE="$NOW-bauson.log"

Display Filename

$ echo $LOGFILE

Usage:

10 7 * * * NOW=$(date +"%b-%d-%y"); LOGFILE="$NOW-bauson.log"; php my.php >log/$LOGFILE
Tagged with:
preload preload preload
Bless CV