How to make an application icon for macOS using
iconset&iconutil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Instructions to Install OpenWRT or LEDE on WD MBL Western Digital MyBookLive (Tested on Single, but it should work on Duo too) | |
| # Recommended to use a Linux / Debian box with wget, dd, gunzip, lsblk | |
| # Using a Debian box (it could be a VM) with the harddrive connected (it could be a minimal net-install Debian) | |
| See ip with: | |
| ip addr show | |
| # connect remotely using: | |
| user@outside:~/# ssh user@10.211.55.6 | |
| # We elevate permissions or even better install and config sudo | |
| user@debian8vm:~/# su |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| References: | |
| - CircuitPython HID Keyboard and Mouse | |
| https://learn.adafruit.com/circuitpython-essentials/circuitpython-hid-keyboard-and-mouse | |
| CircuitPython libraries bundle: https://circuitpython.org/libraries | |
| Additional libraries: | |
| - adafruit_hid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pika, os, urlparse, sys | |
| from Adafruit_Thermal import * | |
| printer = Adafruit_Thermal("/dev/ttyAMA0", 19200, timeout=5) | |
| url_str = os.environ.get('CLOUDAMQP_URL','amqp://YOUR_CLOUDAMQP_URL') | |
| url = urlparse.urlparse(url_str) | |
| params = pika.ConnectionParameters(host=url.hostname, virtual_host=url.path[1:], | |
| credentials=pika.PlainCredentials(url.username, url.password)) |