until-event 1.19 KB
Newer Older
Nico Schottelius's avatar
init  
Nico Schottelius committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh

event="Historic event"
arrival="2014-7-14"
arrival="2014-8-20"
arrival="2014-12-08"
arrival="2014-11-29"
arrival="2016-01-25"
arrival="2016-08-10"; event="First exam"
arrival="2016-08-23"; event="FMFP exam"
arrival="2017-01-24"; event="Algolabs exam"
arrival="2017-01-30"; event="Algolabs exam 2"
arrival="2017-02-07"; event="syssec"
arrival="2017-08-21"; event="cil"
Nico Schottelius's avatar
Nico Schottelius committed
15
arrival="2017-09-25"; event="euler-reinstallation"
Nico Schottelius's avatar
Nico Schottelius committed
16
arrival="2018-02-02"; event="algolab-1"
17
arrival="2018-03-03"; event="Sanghee"
Nico Schottelius's avatar
Nico Schottelius committed
18
arrival="2018-06-01"; event="Plan raising funds"
Nico Schottelius's avatar
Nico Schottelius committed
19 20
arrival="2018-06-01"; event="Plan raising funds"
arrival="2018-08-06"; event="CIL Exam (project: 2018-07-02)"
Nico Schottelius's avatar
Nico Schottelius committed
21 22
arrival="2018-08-21"; event="FMSEC"
arrival="2018-11-01"; event="Begin crowdfunding"
Nico Schottelius's avatar
Nico Schottelius committed
23 24
arrival="2019-02-06"; event="Ende crowdfunding"
arrival="2019-08-21"; event="Master Thesis"
Nico Schottelius's avatar
Nico Schottelius committed
25 26
arrival="2019-09-26"; event="Flying back from Korea"
arrival="2019-12-31"; event="1387.24 instances"
Nico Schottelius's avatar
Nico Schottelius committed
27
arrival="2020-08-01"; event="83kg"
Nico Schottelius's avatar
Nico Schottelius committed
28

Nico Schottelius's avatar
init  
Nico Schottelius committed
29 30 31

export arrival event

Nico Schottelius's avatar
Nico Schottelius committed
32
python3 -c 'import os; import datetime; day=datetime.datetime.strptime(os.environ["arrival"], "%Y-%m-%d"); delta = day - datetime.datetime.now(); print("%s is %sd away" % (os.environ["event"], delta.days + 1))'