Skip to content

Instantly share code, notes, and snippets.

@confluencepoint
Forked from BPScott/QR-Code-Example
Created October 15, 2021 05:36
Show Gist options
  • Save confluencepoint/22dd42c9a27f57e3b6123b660988f890 to your computer and use it in GitHub Desktop.
Save confluencepoint/22dd42c9a27f57e3b6123b660988f890 to your computer and use it in GitHub Desktop.
QR Code generation and instant preview from the command line
#!/bin/sh
# Generates a temporary QR code and opens it in preview
# Requires qrencode from homebrew / other package manager
# Usage: qr-code TEXT
# Example: qr-code http://www.google.com
qrencode -o - $1 | open -f -a preview
# Generating throwaway QR codes from the command line for shunting URLS to mobile devices
brew install qrencode
qrencode -o - http://www.google.com | open -f -a preview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment