Skip to content

Instantly share code, notes, and snippets.

View grimsy's full-sized avatar

Geoff Jacobs grimsy

  • Sydney, Australia
View GitHub Profile
@grimsy
grimsy / houseinspections.sh
Created April 21, 2017 01:15
auto imports ics files from realestate.com.au into a dedicated google calendar (using gcalcli). set up a cron to find *.ics in Downloads folder and call this script with the full path to the file as an argument.
#!/bin/bash
ADDRESS=`cat $1 | grep SUMMARY | sed -e 's/SUMMARY\://g' | sed -e 's/\ -\ Inspection//g'`
sed -i "/SUMMARY:*/a LOCATION:$ADDRESS" $1
/usr/local/bin/gcalcli --calendar "House Inspections" import $1 && rm $1

Keybase proof

I hereby claim:

  • I am grimsy on github.
  • I am grimsy (https://keybase.io/grimsy) on keybase.
  • I have a public key ASD3f5jCaz2B2S6tPfnsRMxOxDl-etaOWluoxFw5unFFCwo

To claim this, I am signing this object: