Skip to content

Instantly share code, notes, and snippets.

View torrancew's full-sized avatar

Tray torrancew

  • San Francisco, CA
View GitHub Profile
@torrancew
torrancew / repeating-alerts-ltek.yaml
Created July 29, 2026 22:26 — forked from Ltek/repeating-alerts-ltek.yaml
Home Assistant Blueprint : Repeating Alert Notifications by LTek
blueprint:
name: ⚠️ Repeating Alert Notifications by LTek
description: |
**Repeating Alert Notifications ideal for doors, windows, locks, etc**
🚀 Version 2026.07.11.37c
- ADDED: Wake Screen for Android Notifications. Good for important messages
- ADDED: Variables for the triggering entity's Device Name and Area for use in titles, messages, and Notification ID.
@torrancew
torrancew / HueSmartButton.yaml
Last active July 12, 2026 14:20
HomeAssistant Blueprint: Hue Smart Button
blueprint:
name: Philips Hue Smart Button (ZHA)
description: >-
Simplified ZHA-only blueprint for the Philips Hue Smart Button (ROM001/RDM003).
Single touch toggles a light. Long press triggers a custom action.
domain: automation
input:
controller_device:
name: Button Device
description: Philips Hue Smart Button paired via ZHA.
@torrancew
torrancew / keybase.md
Created October 16, 2017 22:52
Keybase Identity Proof

Keybase proof

I hereby claim:

  • I am torrancew on github.
  • I am torrancew (https://keybase.io/torrancew) on keybase.
  • I have a public key ASAx5N1qpU7B2LZ8XUCaCug2DG1fPQGhtuLVi99zGLipbQo

To claim this, I am signing this object:

input {
file {
type => "syslog"
path => ["/var/log/secure", "/var/log/messages"]
tags => ["syslog"]
}
pipe {
type => "edgecast-logs"
command => "zcat /home/edgecast/logs/*.log.gz"
@torrancew
torrancew / Capfile
Created March 1, 2012 16:13
Puppet Capistrano Deploy
load 'deploy' if respond_to?(:namespace)
require 'rubygems'
require 'capistrano'
require 'railsless-deploy'
load 'config/deploy'
load 'config/cap_colors' # Optional; uses the capistrano_colors gem to customize output colorization
@torrancew
torrancew / unicorn.rb
Created January 27, 2012 19:04
Diaspora unicorn config
rails_env = ENV['RAILS_ENV'] || 'production'
#worker_processes (rails_env == 'production' ? 16 : 4)
worker_processes 3
## Load the app before spawning workers
#preload_app true
# How long to wait before killing an unresponsive worker
timeout 30
@torrancew
torrancew / run.sh
Created January 27, 2012 00:17
D* Resque Worker Runit Script
#! /bin/sh
exec 2>&1
USER=diaspora
ENV_DIR=/etc/diaspora/env
DEPLOY_PATH=/usr/local/share/diaspora
APP_ROOT=$DEPLOY_PATH/current
BUNDLE_PATH=$DEPLOY_PATH/shared/bundle
for env_var in PATH GEM_HOME GEM_PATH; do
root@castle:~# iperf -s -f m
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 0.08 MByte (default)
------------------------------------------------------------
[ 4] local 10.1.10.238 port 5001 connected with 10.1.10.134 port 43477
[ ID] Interval Transfer Bandwidth
# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
set :config_yaml, YAML.load_file(File.dirname(__FILE__) + '/deploy_config.yml')
require './config/cap_colors'
require 'bundler/capistrano'
require './config/boot'
require 'hoptoad_notifier/capistrano'
module Puppet::Parser::Functions
newfunction(:using_module, :type => :rvalue) do |args|
included = true
modules = lookupvar('kmods').split(/,/)
args.each do |mod|
unless modules.include?(mod)
included = false
end
end
included