I hereby claim:
- I am mckeed on github.
- I am mckeed (https://keybase.io/mckeed) on keybase.
- I have a public key whose fingerprint is C586 8290 56ED AE14 3C01 04ED 41E1 CC39 AA4E D6B6
To claim this, I am signing this object:
| javascript:document.getElementsByTagName("tbody")[0].deleteRow(-1);document.getElementsByTagName("tbody")[0].deleteRow(0) |
| require 'strong_parameters' | |
| class ActiveRecord::Base | |
| include ActiveModel::ForbiddenAttributesProtection | |
| end | |
| class ActionController::Base | |
| # Use this with CanCan's load_resource to permit a set of params before | |
| # it tries to build or update a resource with them. |
| #!/bin/bash | |
| if [ ! -z `git diff --name-only HEAD@{1}..HEAD Gemfile` ] | |
| then | |
| echo -e "\033[0;31m*** Gemfile change detected, running bundle install ***\033[0m" | |
| bundle install | |
| fi | |
| if [ ! -z `git diff --name-only HEAD@{1}..HEAD db/migrate` ] | |
| then |
| #! /usr/bin/env ruby | |
| # encoding: UTF-8 | |
| require 'rubygems' | |
| require 'active_support/core_ext' | |
| require 'rest_client' | |
| require 'json' unless defined?(JSON) | |
| require 'growl' | |
| API_KEY = ENV["DARKSKY_API_KEY"] |
| #!/usr/bin/env ruby | |
| # Looks for local devices that respond to broadcast ping and have open telnet ports | |
| `ifconfig`.scan(/broadcast ([\d.]+)/) do |b,| | |
| next unless b[/^(192|10)\./] | |
| puts "Scanning #{b.gsub(/255/, '*')}" | |
| `ping -c2 #{b}`.scan(/from ([\d.]+)/).uniq.sort_by {|a,| | |
| a.split('.').map {|p| p.to_i } | |
| }.each do |a,| |
| FIELD BYTES | |
| profile ID: 2 | |
| cluster ID: 2 | |
| source EP: 1 | |
| dest EP: 1 | |
| options: 2 | |
| type: 1 | |
| source: 2 | |
| clustersp: 1 | |
| mfgsp: 1 |
| metadata { | |
| simulator { | |
| } | |
| tiles { | |
| standardTile("smoke", "device.smoke", width: 2, height: 2) { | |
| state("clear", label:"clear", icon:"st.alarm.smoke.clear", backgroundColor:"#ffffff") | |
| state("detected", label:"SMOKE", icon:"st.alarm.smoke.smoke", backgroundColor:"#e86d13") | |
| state("tested", label:"TEST", icon:"st.alarm.smoke.test", backgroundColor:"#e86d13") | |
| } |
I hereby claim:
To claim this, I am signing this object: