Skip to content

Instantly share code, notes, and snippets.

View jwaldrip's full-sized avatar
:octocat:

Jason Waldrip jwaldrip

:octocat:
View GitHub Profile
@jwaldrip
jwaldrip / hvac_pause.yaml
Last active April 29, 2022 16:12 — forked from raffy-ops/hvac_pause.yaml
HA HVAC Pause Blueprint
# ver 1.2
blueprint:
name: HVAC Pause
description: Pauses HVAC when windows/doors open; resumes last state once closed
domain: automation
input:
climate_device:
description: Climate entity used for climate control.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
150ml.com
15meg4free.com
163.com
@jwaldrip
jwaldrip / commands.txt
Last active August 29, 2015 14:17 — forked from lmars/commands.txt
# create a test app
flynn create --remote="" test-app
# create a release using the latest app image
flynn -a test-app release add -f config.json "https://registry.hub.docker.com?name=brandfolder/flynn-test-app&id=d0f2136468110ad368684c7ccb04e0a756830c18926e50a4ef0e87a8b46022a5"
# scale the server to one process, it should come up.
flynn -a test-app scale web=1
# curl the app, should get 'hello earth'
# Git pre-commit hook to check all staged Ruby (*.rb/haml/coffee) files
# for Pry binding references
#
# Installation
#
# ln -s /path/to/pre-commit.sh /path/to/project/.git/hooks/pre-commit
#
# Based on
#
# http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/
require 'benchmark'
def int_pal?(num)
n = num
reverse = 0
while (num > 0)
dig = num % 10
reverse = reverse * 10 + dig
num = num / 10
end
class AppBuilder < Rails::AppBuilder
include Thor::Actions
include Thor::Shell
def test
append_test_gems
rspec_install
spork_init
guard_init
end