Skip to content

Instantly share code, notes, and snippets.

View medicalwei's full-sized avatar

Yao Wei medicalwei

View GitHub Profile
@joostrijneveld
joostrijneveld / gpg2qrcodes.sh
Created May 20, 2014 19:43
Producing printable QR codes for persistent storage of GPG private keys
# 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
@timdream
timdream / sessions.js
Created March 30, 2011 16:23
議程 JSON
[
{
name: '測是',
from: 1234456788, /* Unix timestamp */
to: 123456778,
type: 1,
room: 0,
language: 'zh', /* 'zh' or 'en', 我們應該不會有日文議程 */
speaker: '陳愛講', /* 名字 (頭銜)*/
speakerTitle: '測試大學愛講系教授',