nsbin/until-event

40 lines
1.4 KiB
Text
Raw Normal View History

#!/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"
2017-08-21 20:45:00 +00:00
arrival="2017-09-25"; event="euler-reinstallation"
2017-11-26 13:37:30 +00:00
arrival="2018-02-02"; event="algolab-1"
2018-03-29 14:50:35 +00:00
arrival="2018-03-03"; event="Sanghee"
2018-03-30 12:03:08 +00:00
arrival="2018-06-01"; event="Plan raising funds"
2018-05-30 13:23:44 +00:00
arrival="2018-06-01"; event="Plan raising funds"
arrival="2018-08-06"; event="CIL Exam (project: 2018-07-02)"
2018-09-13 17:01:20 +00:00
arrival="2018-08-21"; event="FMSEC"
arrival="2018-11-01"; event="Begin crowdfunding"
2019-03-10 09:22:51 +00:00
arrival="2019-02-06"; event="Ende crowdfunding"
arrival="2019-08-21"; event="Master Thesis"
2019-10-03 14:06:57 +00:00
arrival="2019-09-26"; event="Flying back from Korea"
arrival="2019-12-31"; event="1387.24 instances"
2020-07-23 13:37:52 +00:00
arrival="2020-08-01"; event="83kg"
2022-02-04 07:26:43 +00:00
arrival="2022-03-31"; event="79kg"
arrival="2022-05-25"; event="79kg"
2023-10-10 13:37:51 +00:00
arrival="2023-11-06"; event="rm"
arrival="2024-03-20"; event="flight1"
arrival="2024-03-23"; event="flight2"
# arrival=""; event=""
2019-06-26 20:14:04 +00:00
2023-11-04 20:42:16 +00:00
[ -z "$arrival" ] && exit 0
export arrival event
2018-01-23 21:11:42 +00:00
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))'