Friday, August 2, 2013

Caffeine content

Caffeine content
(Source - Mayo Clinic -

Type of coffee                    Size        Caffeine
Espresso, restaurant-style             1 oz. (30 mL)     40-75 mg
Espresso, restaurant-style, decaffeinated     1 oz. (30 mL)     0-15 mg
Generic brewed                     8 oz. (240 mL)     95-200 mg
Generic brewed, decaffeinated             8 oz. (240 mL)     2-12 mg
Generic instant                 8 oz. (240 mL)     27-173 mg
Generic instant, decaffeinated             8 oz. (240 mL)     2-12 mg
McDonald's brewed                 16 oz. (480 mL) 100 mg
McDonald's Mocha Frappe             16 oz. (480 mL) 125 mg
Starbucks Latte                 16 oz. (480 mL) 150 mg
Starbucks Pike Place brewed             16 oz. (480 mL) 330 mg
Starbucks Pike Place brewed, decaffeinated     16 oz. (480 mL) 25 mg
Keurig K-Cup                    8oz.        75-150mg, "Extra Bold" add 20%

Type of tea                    Size        Caffeine
Brewed tea          
Black tea                     8 oz. (240 mL)     14-61 mg
Black tea, decaffeinated             8 oz. (240 mL)     0-12 mg
Green tea                     8 oz. (240 mL)     24-40 mg
Iced tea          
AriZona Iced Tea, lemon-flavored         8 oz. (240 mL)     11 mg
Generic instant, unsweetened             8 oz. (240 mL)     26 mg
Lipton Brisk Lemon Iced Tea             8 oz. (240 mL)     5-7 mg

Soft drink                    Size        Caffeine
7UP                         12 oz. (355 mL) 0 mg
A & W Root Beer                 12 oz. (355 mL) 0 mg
Barq's Root Beer                 12 oz. (355 mL) 18 mg
Coca-Cola Classic                 12 oz. (355 mL) 30-35 mg
Coca-Cola Zero                     12 oz. (355 mL) 35 mg
Diet Coke                     12 oz. (355 mL) 38-47 mg
Diet Pepsi                     12 oz. (355 mL) 27-37 mg
Dr Pepper                     12 oz. (355 mL) 36 mg
Mountain Dew                     12 oz. (355 mL) 46-55 mg
Pepsi                         12 oz. (355 mL) 32-39 mg
Sprite                         12 oz. (355 mL) 0 mg

Energy drink                    Size        Caffeine
5-Hour Energy                     2 oz. (60 mL)     207 mg
AMP, regular or sugar-free             8 oz. (240 mL)     72-74 mg
Cran-Energy                     8 oz. (240 mL)     70 mg
Full Throttle                     8 oz. (240 mL)     70-72 mg
Monster                     8 oz. (240 mL)     80 mg
Red Bull                     8.4 oz (250 mL) 76-80 mg
Rockstar, regular or sugar-free         8 oz. (240 mL)     79-80 mg
Vault, regular or sugar-free             8 oz. (240 mL)     47 mg

Type of product                                Size        Caffeine
Chocolate chips, semisweet               1 cup         104 mg
Dark chocolate-coated coffee beans         28 beans    336 mg
Foosh Energy Mints                 1 mint         100 mg
Hershey's Kisses                 9 pieces     9 mg
Excedrin, Extra Strength             2 tablets     130 mg
NoDoz, Maximum Strength

Tuesday, July 23, 2013

RHEL 5 Recover root password

You can log in using single-user mode and create a new root password.

To enter single-user mode, reboot your computer. If you use the default boot loader, GRUB, you can enter single user mode by performing the following:

1. At the boot loader menu, use the arrow keys to highlight the installation you want to edit and type [A] to enter into append mode.

2. You are presented with a prompt that looks similar to the following:

    grub append> ro root=LABEL=/

3. Press the Spacebar once to add a blank space, then add the word single to tell GRUB to boot into single-user Linux mode. The result should look like the following:

    ro root=LABEL=/ single

4. Press [Enter] and GRUB will boot single-user Linux mode. After it finishes loading, you will be presented with a shell prompt similar to the following:


5. You can now change the root password by typing

    passwd root

    You will be asked to re-type the password for verification. Once you are finished, the password will be changed. You can then reboot by typing reboot at the prompt; then you can log in to root as you normally would.

Monday, June 24, 2013

Solaris - scrub HDDs

Connect to the ALOM/RSC card and open the console to the machine you are decommissioning.
Take server to 'ok' prompt

Boot from Solaris Media
     boot cdrom -s

Generate a list of disks and find out which SCSI bus the CD/DVD is on.
This, typically, is different then the HDDs.
     iostat -En

All the internal HDDs should be on the other SCSI channel, c1 This script will cycle through all the disks, zero writing for three passes

T=1;export T
while [ $T -lt 4 ]; do
echo "Starting run number $T, `date`"
for Z in `ls -1 /dev/rdsk/c0t*s2`
/usr/bin/dd if=/dev/zero of=$Z bs=1048576
format $Z <<-EOF
echo "Done formatting"
echo "Finished run number $T, `date`"
T=`expr $T + 1`

Before you power off the box for good, remember to eject the Solaris DVD
     eject /dev/dsk/c0t0d0s2

Wednesday, January 30, 2013

How to remove author name from blog entry

Select Layout from the left hand 'menu'
In the center of the screen is a white section labeled "Blog Posts", at the bottom right is Edit.
After selecting Edit, a window will pop up with check box options.  Uncheck "Posted by".

Tuesday, January 22, 2013

Apache 2 on Solaris 9

Apache 2
Installing apache2 on Solaris 9

Install apache and required packages
(obtained from

Generate SSL Key
openssl genrsa -des3 -out server.key 1024

Generate SSL Certificate Signing Request ( CSR )
openssl req -new -key server.key -out server.csr

Clear passphrase
cp server.key
openssl rsa -in -out server.key

Generate self-signed certificate
openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt

Copy files into Apache directory
cp server.crt /usr/local/apache2/conf
cp server.key /usr/local/apache2/conf

Edit httpd.conf
Under the 'DocumentRoot' entry, add -
SSLEngine on
SSLOptions +StrictRequire
SSLCertificateFile /usr/local/apache2/conf/server.crt
SSLCertificateKeyFile /usr/local/apache2/conf/server.key

Password Protect
Set initial file with a 'test' user
/usr/local/apache2/bin/htpasswd -c /usr/local/apache2/conf/.htpasswd test

Set folder access
Create .htaccess file in the root of the folder you with to password protect
AuthUserFile /usr/local/apache2/conf/.htpasswd
AuthGroupFile /dev/null
AuthName [hostname]
AuthType basic
require user test [user1] [user2] [user3]

Solaris ILOM

SCADM command directory
    # cd /usr/platform/`uname -i`/sbin

    #   ./scadm help

USAGE: scadm <command> [options]
  For a list of commands, type "scadm help"

  help, date, set, show, resetrsc, download, send_event, modem_setup,
  useradd, userdel, usershow, userpassword, userperm, shownetwork,
  consolehistory, fruhistory, loghistory, version

  scadm help => this message
  scadm date [-s] | [[mmdd]HHMM | mmddHHMM[cc]yy][.SS] => print or set date
  scadm set <variable> <value> => set variable to value
  scadm show [variable] => show variable(s)
  scadm resetrsc [-s] => reset SC (-s soft reset)
  scadm download [boot] <file> => program firmware or [boot] monitor
  scadm send_event [-c] "message" => send message as event (-c CRITICAL)
  scadm modem_setup => connect to modem port
  scadm useradd <username> => add SC user account
  scadm userdel <username> => delete SC user account
  scadm usershow [username] => show user details
  scadm userpassword <username> => set user password
  scadm userperm <username> [cuar] => set user permissions
  scadm shownetwork => show network configuration
  scadm consolehistory [-a] => show SC console log
  scadm fruhistory [-a] => show SC FRU log
  scadm loghistory [-a] => show SC event log
  scadm version [-v] => show SC version (-v verbose)