Skip to content

Instantly share code, notes, and snippets.

@BPScott
Created April 18, 2013 13:48
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save BPScott/5412821 to your computer and use it in GitHub Desktop.
Save BPScott/5412821 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