Skip to content

Instantly share code, notes, and snippets.

@joostrijneveld
joostrijneveld / gpg2qrcodes.sh
Created May 20, 2014
Producing printable QR codes for persistent storage of GPG private keys
View gpg2qrcodes.sh
# Heavily depends on:
# libqrencode (fukuchi.org/works/qrencode/)
# paperkey (jabberwocky.com/software/paperkey/)
# zbar (zbar.sourceforge.net)
# Producing the QR codes:
# Split over 4 codes to ensure the data per image is not too large.
gpg --export-secret-key KEYIDGOESHERE | paperkey --output-type raw | base64 > temp
split temp -n 4 IMG
for f in IMG*; do cat $f | qrencode -o $f.png; done
View sessions.js
[
{
name: '測是',
from: 1234456788, /* Unix timestamp */
to: 123456778,
type: 1,
room: 0,
language: 'zh', /* 'zh' or 'en', 我們應該不會有日文議程 */
speaker: '陳愛講', /* 名字 (頭銜)*/
speakerTitle: '測試大學愛講系教授',