Skip to content

Instantly share code, notes, and snippets.

View toabi's full-sized avatar

Tobias Birmili toabi

View GitHub Profile
@toabi
toabi / appliance-notification.yaml
Last active December 19, 2023 09:34
My HA Blueprints
blueprint:
name: Appliance has finished
description: Do something when an appliance (like a washing machine or dishwasher)
has finished as detected by a power sensor.
domain: automation
input:
power_sensor:
name: Power Sensor
description: Power sensor entity (e.g. from a smart plug device).
selector:
@toabi
toabi / gist:d965617ad54788cd35f4
Created July 30, 2015 14:19
brew install -v php56 --with-libmysql --with-homebrew-curl
This file has been truncated, but you can view the full file.
$ brew install -v php56 --with-libmysql --with-homebrew-curl
==> Installing php56 from homebrew/homebrew-php
==> Downloading https://php.net/get/php-5.6.11.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php56-5.6.11
==> Verifying php56-5.6.11 checksum
tar xf /Library/Caches/Homebrew/php56-5.6.11
==> ./configure --prefix=/usr/local/Cellar/php56/5.6.11_2 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.6 --with-config-file-path=/usr/local/etc/php/5.6 --with-config-file-scan-dir=/usr/local/etc/php/5.6/conf.d --mandir=/usr/local/Cellar/php56/5.6.11_2/share/man --enable-bcmath --enable-calendar --enable-dba --enable-exif --enable-ftp --enable-gd-native-ttf --enable-mbregex --enable-mbstring --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-zip --with-freetype-dir=/usr/local/opt/freetype --with-gd --with-gettext=/usr/local/opt/gettext --with-iconv-dir=/usr --with-icu-dir=/usr/local/opt/icu4c --with-jpeg-dir
@toabi
toabi / keybase.md
Created October 27, 2014 12:50
keybase.md

Keybase proof

I hereby claim:

  • I am toabi on github.
  • I am toabi (https://keybase.io/toabi) on keybase.
  • I have a public key whose fingerprint is FECB CFDC CA0E 1294 D9B2 4C74 75A8 846E 6F71 3813

To claim this, I am signing this object:

@toabi
toabi / app.coffee
Created October 3, 2011 10:39
Express Example (without view templates)
_ = require 'underscore'
express = require 'express'
db = require './data'
app = express.createServer()
app.configure ->
app.set 'views', __dirname + '/views'
app.set 'view engine', 'jade'
app.set 'name', 'MiniCMS'
app.use express.bodyParser()
@toabi
toabi / iTunes2LadioCast.scpt
Created May 8, 2010 00:25
update LadioCast meta data with current iTunes song. Polls every 15 seconds.
set lastName to ""
set lastArtist to ""
repeat
tell application "iTunes"
set trackName to name of current track
set trackArtist to artist of current track
end tell