Skip to content

Instantly share code, notes, and snippets.

Rod Cordova gitrc

Block or report user

Report or block gitrc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
''' This script will download the detailed energy usage from dominion power and insert it into InfluxDB which you can then visualize with Grafana
import mechanize
import cookielib
import csv
import pytz
gitrc / sendiMessage.applescript
Created Nov 18, 2013
send iMessages from command line. Useful for Nagios and other things.
View sendiMessage.applescript
on run {targetBuddyPhone, targetMessage}
tell application "Messages"
set targetService to 1st service whose service type = iMessage
set targetBuddy to buddy targetBuddyPhone of targetService
send targetMessage to targetBuddy
end tell
end run
gitrc /
Last active Dec 28, 2015
Don't bother with copying PCAP files, just pipe tcpdump over SSH into wireshark! Great for embedded system work.
# from your workstation run below where <expression> is your tcpdump expression
# works great on OSX
ssh "/path/to/tcpdump -s 0 -U -w - -i ethX <expression>" |wireshark -i - -k
gitrc /
Created Nov 18, 2013
Watch recorded programs from your TiVo using curl, tivodecode, and mplayer.
# tivo stream before tivostream was.
/usr/bin/curl --cookie sid=abc -k --digest -u tivo:${MAK} -c /dev/null $1 | /usr/bin/tivodecode -m ${MAK} -- - | /usr/bin/mplayer -vf pp=lb -cache 64768 -
# end.
You can’t perform that action at this time.