Skip to content

Instantly share code, notes, and snippets.

ThirdRealty::SmartButton.event("Button Press Somewhere") do |label, action|
items["#{label.tr(' ', '_')}_Action"]&.command(action)
end
---
users:
- name: ubuntu
sudo: ALL=(ALL) NOPASSWD:ALL
ssh-authorized-keys:
- ssh-ed25519 AAA..YOUR..KEY..HERE
write_files:
- path: /etc/sysctl.d/10-user-watches.conf
permissions: "0644"
#!/usr/bin/env ruby
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('Gemfile', __dir__)
require 'bundler/setup'
require 'rest-client'
require 'pushover'
require 'json'
require 'yaml'
require 'stringio'