From 73a1ca528f3c69d6efe4d10b7155f9d135392d8f Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 22 Jan 2023 11:56:22 +0200 Subject: [PATCH] vcard: initial commit --- vcard/.gitignore | 1 + vcard/aminda.vcard | 17 +++++++++++++++++ vcard/generate-qr.bash | 16 ++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 vcard/.gitignore create mode 100644 vcard/aminda.vcard create mode 100755 vcard/generate-qr.bash diff --git a/vcard/.gitignore b/vcard/.gitignore new file mode 100644 index 0000000..e33609d --- /dev/null +++ b/vcard/.gitignore @@ -0,0 +1 @@ +*.png diff --git a/vcard/aminda.vcard b/vcard/aminda.vcard new file mode 100644 index 0000000..89c73e3 --- /dev/null +++ b/vcard/aminda.vcard @@ -0,0 +1,17 @@ +BEGIN:VCARD +VERSION:4.0 +FN:Aminda Suomalainen +GENDER:F +EMAIL:suomalainen+git@mikaela.info +EMAIL;TYPE=deltachat:delta@aminda.eu +KEY;MEDIATYPE=application/pgp-keys:https://www.aminda.eu/PGP/0xBAE30723.txt +KIND:individual +PHOTO;MEDIATYPE=image/jpeg:https://media.githubusercontent.com/media/Mikaela/mikaela.github.io/lfs-media/avatar/250.jpeg +URL:https://www.aminda.eu +IMPP:xmpp:mikaela@blesmrt.net +IMPP:matrix:u/_xmpp_mikaela=40blesmrt.net:matrix.org +IMPP:matrix:u/aminda:pikaviestin.fi +IMPP:xmpp:aminda_pikaviestin.fi@matrix.org +IMPP:matrix:u/mikaela.suomalainen:matrix.org +IMPP:xmpp:mikaela.suomalainen_matrix.org@matrix.org +END:VCARD diff --git a/vcard/generate-qr.bash b/vcard/generate-qr.bash new file mode 100755 index 0000000..bc49cb7 --- /dev/null +++ b/vcard/generate-qr.bash @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# Turn vcards into QR codes + + + +# loop through all vcard files +for vcard in *.vcard; do + if [ -f "$vcard" ]; then + # -l H - high error correction + # -t utf8 - output to terminal + # -r - read file + # -o output file + qrencode -l H -t utf8 -r $vcard + qrencode -l H -o $vcard.png -r $vcard + fi +done