Skip to content

Instantly share code, notes, and snippets.

@prestonw
Last active Mar 29, 2019
Embed
What would you like to do?
This snippet is used in the following article – https://willwp.com/wordpress/qr-code-creation/
# Do not copy this line, start with line 3
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Do not copy this line, start with line 3
# Install qrencode
brew install qrencode
# Do not copy this line, start with line 3
# Command to create a QR code for this article and open it in preview
qrencode -o - https://willwp.com/wordpress/qr-code-creation/ | open -f -a preview
# Size the QR code and output it to a PNG file
qrencode -s 10 -o ~/Desktop/create-a-qrcode-article.png "https://willwp.com/wordpress/qr-code-creation/"
# RTFM
qrencode -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment