How to interface with a Stream Deck device.
The device uses the HID protocol to communicate with its software.
{ | |
pkgs | |
, lib | |
, stdenv | |
, fetchurl | |
, bash | |
, python3 | |
, wget | |
}: |
#/bin/bash | |
# Fail on first error | |
set -e | |
APP=${1?dokku app name required} | |
MAILCATCHER_APP=mailcatcher-${APP} | |
MAILCATCHER_APP_DOCKER_NAME=${MAILCATCHER_APP}.web.1 | |
MAILCATCHER_HOST=${MAILCATCHER_APP} | |
MAILCATCHER_SMTP_PORT=1025 |
some_variable = {{some_variable}} |
document.addEventListener("DOMNodeInserted", function(e) { | |
walk(document.body); | |
}, false); | |
function walk(node) | |
{ | |
// Source: http://is.gd/mwZp7E | |
var child, next; |
# create a redis app | |
flynn create --remote "" redis | |
# create a release using the latest (at the time of writing) Docker Redis image | |
flynn -a redis release add -f config.json "https://registry.hub.docker.com?name=redis&id=868be653dea3ff6082b043c0f34b95bb180cc82ab14a18d9d6b8e27b7929762c" | |
# scale the server to one process. This may time out initially as the server pulls the image, but watch "flynn -a redis ps" and should come up. | |
flynn -a redis scale server=1 | |
# redis should now be running in the cluster at redis.discoverd:6379 |
application:open-your-keymap | |
application:open-your-stylesheet | |
autocomplete:attach | |
autoflow:reflow-paragraph | |
bookmarks:clear-bookmarks | |
bookmarks:jump-to-next-bookmark | |
bookmarks:jump-to-previous-bookmark | |
bookmarks:toggle-bookmark | |
bookmarks:view-all | |
check:correct-misspelling |
SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.
apt-get install sshpass
After finding a lot of other posts on the topic that didn't work out for me this one did the trick so I'm reposting for my own sense of self preservation.
Copy the Virtualbox autostart plist template file to your system's LaunchDaemons folder.
sudo cp \
/Applications/VirtualBox.app/Contents/MacOS/org.virtualbox.vboxautostart.plist \
--- | |
:backends: | |
- yaml | |
- gpg | |
:gpg: | |
:datadir: '/etc/puppet/hiera' | |
:yaml: | |
:datadir: '/etc/puppet/hiera' |