Make Gnucash iCal from invoices

Something handy, make an iCal calendar file from your Gnucash datafile, I use this to create a calendar of invoiced day's so i can see if i missed any days for invoicing.

Gnucash datafile is a compressed XML file with a fairly straightforward schema, here we use xml2 command line xml swiss army knife to turn the XML into something we can grep, then use some simple formatting to output to the iCalendar output.

Accepts the gnucash datafile as argument 1, and the output as argument 2.

Warning: dont mix this up or it will wipe out your gnucash file :D

#!/bin/bash

> $2
echo "BEGIN:VCALENDAR" >>  $2
echo "VERSION:2.0" >>  $2


cat $1|gunzip -|xml2|grep "/gnc-v2/gnc:book/gnc:GncEntry/entry:date"|awk -F= '{print $2}'|awk '{print $1}'|sed 's/\-//g'|while read item
do
    echo "BEGIN:VEVENT" >>  $2
    echo "DTSTART;VALUE=DATE:$item" >>  $2
    echo "SUMMARY:InvoiceItem" >>  $2
    echo "UID:6E517E49-5699-11D8-8C8D-000A957CBED4" >>  $2
    echo "DURATION:P1H" >>  $2
    echo "END:VEVENT" >>  $2


done

echo "END:VCALENDAR" >>  $2
AttachmentSize
make-ical-of-invoice-items483 bytes

YouTube is a video-sharing

YouTube is a video-sharing website on which users can upload, share, and view video izle. Three former PayPal employees created YouTube in February 2005. In November 2006, YouTube, LLC was bought by Google Inc. for $1.65 billion, and is now operated as a subsidiary of Google. The company is based in San Bruno, California, and uses Adobe Flash Video technology to display a wide variety of user-generated video content, Melda Kamhi videoları, Melda Kamhi sevişme, Melda Kamhi frikikleri, Melda Kamhi dekolte, Melda Kamhi mini etek, including movie clips, TV clips, and music videos, as well as amateur content such as video blogging and short original videos. Most of the content on YouTube has been uploaded by individuals, although media corporations including CBS, BBC, VEVO and other organizations offer some of their material via the site, as part of the YouTube partnership program.