Max Omni / Omnimax / Xaminmo

Just a Mad Scientist and Midnight Shadow

Tasty!
Josh 2004 Happy
xaminmo
Butternut squash with coconut butter and cinnamon


Slight allergy coming up. More details on FB and Wordpress ( www.omnitech.net/blog ), but the LJ app does not support cut/paste. WTF.

Dominos Tracker API
Josh 2004 Happy
xaminmo
I wanted a way to send myself a text message when Dominos was "Out the Door". It turns out they have an XML API, so I did poor-man's BASH parsing and run this periodically to have it send me a message.
#!/bin/bash
###################################3
# Dominos Pizza Tracker
###NO ORDER:
#
#
### Timestamps:
#StartTime
#- OrderStatus "Order Placed" ????
#- OrderStatus Prep ????
#MakeTimeSecs
#- OrderStatus Bake
#OvenTime
#- OrderStatus Routing Station
#RackTime
#- OrderStatus Out the Door
#RouteTime
#- OrderStatus Delivered
#DeliveryTIme
#- OrderStatus Complete

if [[ "$DEBUG" != "" ]] ; then set -x ; fi

### Variables
PHONES="PUT YOUR PHONE NUMBERS HERE, SPACE SEPARATED"
EMAIL="PUT YOUR EMAIL HERE"  # For all status changes
SMS="SMS EMAIL HERE" # For delivery notices
FREQUENCY=PUT YOUR CRON POLLING FREQUENCY IN SECONDS HERE

### Make a temp file to save query costs
LOG=/tmp/$$.dominos
rm $LOG >/dev/null 2>&1 
touch $LOG

### Use phone number to get order
for PHONE in $PHONES ; do
	lynx -dump http://trkweb.dominos.com/orderstorage/GetTrackerData?Phone=$PHONE > $LOG
	
	### Do we even have an order?
	NOORDER=`grep '' $LOG`
	if [[ -n ${NOORDER} ]] ; then
		echo DOMINOS: NO ORDERS for $PHONE
		continue
	fi
	
	### Collect info we might need
	STATUS=`grep '.[A-Za-z]*' $LOG | cut -f 2 -d \> | cut -f 1 -d \< `
	STARTTIME=`grep '.*' $LOG | cut -f 2 -d \> | cut -f 1 -d \< `
	OVENTIME=`grep '.*' $LOG | cut -f 2 -d \> | cut -f 1 -d \< `
	RACKTIME=`grep '.*' $LOG | cut -f 2 -d \> | cut -f 1 -d \< `
	ROUTETIME=`grep '.*' $LOG | cut -f 2 -d \> | cut -f 1 -d \< `
	DELIVERYTIME=`grep '.*' $LOG | cut -f 2 -d \> | cut -f 1 -d \< `
	LASTTIME=`grep 'Time>.* | cut -f 1 -d \< | tail -1`
	ORDERKEY=`grep '.*' $LOG | cut -f 2 -d \> | cut -f 1 -d \< `
	ORDERDESCRIPTION=`grep '.*' $LOG | cut -f 2 -d \> | cut -f 1 -d \< `
	
	### See how long ago was our status
	NOW=`date +%s`
	LAST=`date -d "$LASTTIME" +%s`
	(( DIFF = $NOW - $LAST ))

	echo DOMINOS: Order $ORDERKEY for $PHONE placed at $STARTTIME and last status of $STATUS at $LASTTIME

	### If less than 3 mins and 3 seconds, we report
	if [[ ${DIFF} -lt ${FREQUENCY} ]] ; then
		case $STATUS in
		"Delivered"|"Out the Door")
			cat $LOG | mail -vs "Dominos $STATUS for $PHONE at $STARTTIME" $EMAIL,$SMS
			;;
		*)
			cat $LOG | mail -vs "Dominos $STATUS for $PHONE at $STARTTIME" $EMAIL
			;;
		esac
	fi
done

HEATMAPS!
Josh 2004 Happy
xaminmo
I updated my GPS heatmap on Strava. They only do for Cycling OR Running, but nothing else, nor a combined map. *sigh*

So, my walks that had GPS were converted to runs. Some had a little running. It zooms way out, because most of it was in the Bahamas, but there's a little blob on the ...
Read more...Collapse )
http://omnitech.net/xaminmo/2014/10/28/heatmaps/

FreedomPop is dead
Josh 2004 Happy
xaminmo
They have always seemed sketchy, but last year they worked.

In September, they disabled a lot of accounts. I try to use the device and all it does is redirect me to an i
portant notice. I follow the link to a 404.

If I log in and go to Contact Us, it redirects to the forums. The forums are ...
Read more...Collapse )
http://omnitech.net/xaminmo/2014/10/24/freedompop-is-dead/

After DR of a TSM server, do you need to restore the primary storage pool from the copy cool ?
Josh 2004 Happy
xaminmo
It depends on if it's small files or not. I normally have a small-file pool, which is the DIRMC, VMTLMC, and TOCDESTINATION. The offsite for this is kept reclaimed down to 1 tape, and I try to restore that primary pool first.

For large file, TDP, VM and image full backups, they can ...
Read more...Collapse )
http://omnitech.net/reference/2014/10/22/after-dr-of-a-tsm-server-do-you-need-to-restore-the-primary-storage-pool-from-the-copy-cool/

v7000 7.3.0.6 direct URL
Josh 2004 Happy
xaminmo
Because sometimes it's hard to find, especially when I'm on limited bandwith, this is for my easy reference
ftp://delivery04-mul.dhe.ibm.com/ecc/hsb/H59123391
Read more...Collapse )
http://omnitech.net/reference/2014/09/29/v7000-7-3-0-6-direct-url/

USB Power Packs Capacity
Josh 2004 Happy
xaminmo
In layman's terms, think of it electricity like water.
* Amps is the stream width (almost nozzle width.)
* Volts is the spray pressure.
* Watts is the volume of water in one second.

So, .00000001 amps at a million volts won't kill you, but it might poke a tiny hole in you. 1000 amps at ...
Read more...Collapse )
http://omnitech.net/reference/2014/09/13/usb-power-packs-capacity/

The Wise Old Woman
Josh 2004 Happy
xaminmo
The Wise Old Woman
Traditional Japanese folktale
retold by Yoshiko Uchida

Many long years ago, there lived an arrogant and cruel young lord who ruled over a small village in the western hills of Japan. "I have no use for old people in my village," he said haughtily. "They are neither ...
Read more...Collapse )
http://omnitech.net/xaminmo/2014/09/12/the-wise-old-woman/

Sanger Chase Ride
Josh 2004 Happy
xaminmo
Ride to Sanger with the Sharon group. I was 22 mins late leaving the house, so I told them not to delay the start time. They waited 5-6 mins for me at Hwy 377 and Bonnie Brae. It was a hard push to catch up, and Sharon pushed hard once I got in sight.


Unfortunately, this sort of punished/burned out some of the others as well, especially Jim F. Jim tried to hang on, but at the end he finally admitted he needed to work his way up to this length of ride. He completed it, but with our waiting, it was 2-3 hours extra. That being said, for being about 3 months post-op for hip replacement, he's doing awesome.

Becky took the SAG wagon back from lunch because of other committments.  Karl took it because he broke a drive-side spoke in the middle where it'd been notched by the chain about 2000 miles ago.

http://www.strava.com/activities/190791492
http://connect.garmin.com/modern/activity/584287752


Read more...Collapse )
http://omnitech.net/xaminmo/2014/09/06/sanger-chase-ride/

CCC IBC C-Group
Josh 2004 Happy
xaminmo
Short ride on cgroup. Switches to 6pm next week.
http://www.strava.com/activities/189587784
http://connect.garmin.com/activity/582327560

Read more...Collapse )
http://omnitech.net/xaminmo/2014/09/03/ccc-ibc-c-group/

You are viewing xaminmo