Skip to content

Instantly share code, notes, and snippets.

@epcim
Forked from BPScott/QR-Code-Example
Created June 15, 2022 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epcim/17f11bb81ec70d8d432dc892045ad303 to your computer and use it in GitHub Desktop.
Save epcim/17f11bb81ec70d8d432dc892045ad303 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