Skip to content

Instantly share code, notes, and snippets.

blueprint:
name: Automated Daily Snapshot
description: Create a full snapshot backup at a given time every day.
domain: automation
input:
trigger_time:
name: Snapshot creation time
description: The snapshot will be created at this time, every day
selector:
time:
blueprint:
name: Handle iOS Actions
description: Catch event ios.action_fired that is fired when you press an companion application action, and choose an action based on the actionName.
domain: automation
input:
choose_1:
name: First button identifier
default: []
action_1:
name: Action for first button

Keybase proof

I hereby claim:

  • I am rrooding on github.
  • I am rrooding (https://keybase.io/rrooding) on keybase.
  • I have a public key ASBc74WJFoH7RW1cROkELlHEB0rqXWSs-6G357dfhMOlewo

To claim this, I am signing this object:

set -e RUBY_AUTO_VERSION
function chruby_auto --on-event fish_prompt
set -l org (pwd)
set -l dir (pwd)
set -l found ''
set -l rversion ''
set -l status_code 0
while not test "$dir" = '/'
## keybindings
unbind C-b
unbind C-a
unbind %
unbind ,
unbind .
unbind n
unbind p
unbind [
unbind '"'
@rrooding
rrooding / rails-backbone.rb
Created July 12, 2012 20:20 — forked from matthijsgroen/rails-backbone.rb
Rails Backbone template
gem_group :assets do
gem 'haml_coffee_assets'
gem 'execjs'
gem 'i18n-js'
end
gem_group :assets, :development do
gem 'rails-backbone'
end
gem 'haml-rails'
gem_group :test, :development do
@rrooding
rrooding / rails-backbone.rb
Created June 12, 2012 15:01 — forked from matthijsgroen/rails-backbone.rb
Rails Backbone template
gem_group :assets do
gem 'haml_coffee_assets'
end
gem_group :assets, :development do
gem 'rails-backbone'
end
gem 'haml-rails'
gem 'draper'
gem_group :test, :development do
gem 'konacha'
apt-get install apache2 apache2-mpm-prefork apache2-prefork-dev libapr1-dev libaprutil1-dev
passenger-install-apache2-module -a
passenger-install-apache2-module --snippet > /etc/apache2/mods-available/passenger.load
a2dissite 000-default
a2enmod passenger
service apache2 restart
@rrooding
rrooding / lastfmq.rb
Created January 23, 2009 00:49
Use this script as a cronjob to generate output from mt-daapd for the lastfmsubmit daemon
#!/usr/local/bin/ruby
require 'rubygems'
require 'sqlite3'
require 'yaml'
puts "lastfmq.rb 0.1"
dbfile="/var/db/mt-daapd/songs3.db"
lastfilename="/var/db/mt-daapd/lastfmq.date"