NVK on Nostr: QR codes on terminal for passing things to phone… ie `qr foo` ``` #!/usr/bin/env ...
Published at
2023-04-19 13:24:51Event JSON
{
"id": "5591d3a10015739b0c83033d6df5f2816630a482376b5675ffc17c9174123cbc",
"pubkey": "e88a691e98d9987c964521dff60025f60700378a4879180dcbbb4a5027850411",
"created_at": 1681910691,
"kind": 1,
"tags": [],
"content": "QR codes on terminal for passing things to phone…\n\nie `qr foo`\n\n```\n#!/usr/bin/env python3\nimport os, sys, pyqrcode\n\np = ' '.join(sys.argv[1:])\nif not p:\n print(f'{sys.argv[0]} data-for-qr')\n sys.exit(1)\n\nq = pyqrcode.create(p)\nprint(q.terminal())\n\n```\nhttps://gist.github.com/nvk/1b45aea3e63201c65c5aed14304dd366 https://nostr.build/i/nostr.build_87ff4f623b9d4f6590e4eca8b9e885e757536a27a6b4da3b958570a39af2f987.png ",
"sig": "fa5c54f44936c14cd38428dbb4452eb92c1885901da469a714bc9c5bf7cbeb5c89bc83ed20ea4ec6e06940324209c9e53fda4f7f2efe64e406e09d23e8b4a2fa"
}