add script to export emacs calendar
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
bd7e2bd033
commit
70ccf5edbe
1 changed files with 20 additions and 0 deletions
20
export-calendar.sh
Executable file
20
export-calendar.sh
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
emacs --batch ~/vcs/notes/public-agenda.org \
|
||||||
|
--eval "(progn
|
||||||
|
(require 'org)
|
||||||
|
(org-icalendar-export-to-ics))"
|
||||||
|
|
||||||
|
name=nico
|
||||||
|
endpoint=https://s3.k8s.place5.ungleich.ch
|
||||||
|
export KUBECONFIG=~/k8s/p5-admin.conf
|
||||||
|
|
||||||
|
export S3_BUCKET_NAME=$(kubectl -n rook-ceph get configmap -o yaml ${name}-bucket-claim | yq .data.BUCKET_NAME)
|
||||||
|
export AWS_ACCESS_KEY_ID=$(kubectl -n rook-ceph get secrets -o yaml ${name}-bucket-claim | yq .data.AWS_ACCESS_KEY_ID | base64 -d ; echo "")
|
||||||
|
export AWS_SECRET_ACCESS_KEY=$(kubectl -n rook-ceph get secrets -o yaml ${name}-bucket-claim | yq .data.AWS_SECRET_ACCESS_KEY | base64 -d ; echo "")
|
||||||
|
|
||||||
|
|
||||||
|
s5cmd --endpoint-url ${endpoint} cp \
|
||||||
|
--acl "public-read" \
|
||||||
|
~/vcs/notes/public-agenda.ics \
|
||||||
|
s3://${S3_BUCKET_NAME}
|
Loading…
Add table
Reference in a new issue