blob: df467dfbe876597038f6baa23a58de248f2f8d72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
# This is a cron that runs every 15 mins and populates my emacs diary file with my calendar items
# Downloading calendar
echo "Downloading Calendar"
mkdir -p /tmp/calendar
cd /tmp/calendar
wget "https://cloud.rogs.me/remote.php/dav/public-calendars/5YgCPsaaye9KgbZr?export" -O "personal-calendar.ics" -c
#Generating the file
echo "#Generating the file"
rm ~/.emacs.d/diary
emacs --batch -l ~/.emacs.d/scripts/ics-to-org.el
echo "#Deleting everything"
#Deleting everything
rm -r /tmp/calendar
|