Skip to content

Instantly share code, notes, and snippets.

@clochix
Created November 1, 2020 14:42
Show Gist options
  • Save clochix/93e0647486f9cd6dc6ee6232f841e1da to your computer and use it in GitHub Desktop.
Save clochix/93e0647486f9cd6dc6ee6232f841e1da to your computer and use it in GitHub Desktop.
Code QR d’attestation de sortie
# Je doute que ça ait la moindre valeur en cas de contrôle par la maréchaussée mais ça crée un code QR au même format que celui produit par https://media.interieur.gouv.fr/deplacement-covid-19/
qrencode -o - "$(d=$(LANG=C date +"%d/%m/%Y a %H:%M") && echo -e "Cree le: $d;\n Nom: XXXX;\n Prenom: yyyy;\n Naissance: 01/01/1970 a ZZZZ;\n Adresse: 1, Rue Saint RMS 75020 PARIS;\n Sortie: $d;\n Motifs: $(dialog --no-items --menu Motif 0 0 0 travail achats sante famille handicap sport_animaux convocation missions enfants 3>&1 1>&2 2>&3)")" | tee attestation.png | feh -FZ -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment