Skip to content

Instantly share code, notes, and snippets.

@jrossi
jrossi / lutron_pico_5_light.yaml
Last active April 23, 2023 22:12 — forked from smartqasa/lutron_pico_5_light.yaml
Lutron Pico 5 Button - Light Entity Control
blueprint:
name: Lutron Pico 5 Button - Light Entity Control
description: "This blueprint allows for the association a Lutron Pico 5 Button (model PJ2-3BRL-GXX-X01) remote with a light entity. It is designed to simulate the operation of a standard Lutron Caseta wall dimmer including the press and hold functionality for the raise/lower buttons. It allows for the control over the brightness step percentage and transition speed and the assignment of any action to the middle button."
source_url: https://gist.github.com/cymone-smart/9814a750a0d0cfb196fa1fa7ae3630bb
domain: automation
input:
pico_1:
name: Pico Device
@jrossi
jrossi / keybase.md
Created June 18, 2015 18:56
keybase.md

Keybase proof

I hereby claim:

  • I am jrossi on github.
  • I am jrossi (https://keybase.io/jrossi) on keybase.
  • I have a public key whose fingerprint is C109 AE5B AF86 524A 0AD3 5297 B70B 4A72 E1C8 30C5

To claim this, I am signing this object:

package main
import (
"flag"
"net"
"os"
"syscall"
"github.com/golang/glog"
)
@jrossi
jrossi / minexample.go
Last active August 29, 2015 14:14
error issues
package main
import (
"fmt"
"github.com/coreos/go-etcd/etcd"
"log"
"os"
"reflect"
)
# Install Golang 1.4 and Arc65 + dependencies on fresh Amazon AWS EC2 Ubuntu 14.04 LTS
echo "install basic requirements"
apt-get update && upgrade
apt-get install build-essential mercurial git libssl-dev pkg-config tree
echo "download Go and install it, as well as create GOPATH directory"
cd ~
wget http://golang.org/dl/go1.4.linux-amd64.tar.gz && tar -xf go1.4.linux-amd64.tar.gz && rm go1.4.linux-amd64.tar.gz
mv go /usr/local && mkdir -p /usr/local/gopath
[buildbot@localhost ossec-hids]$ pwd
/home/buildbot/packages/ossec-hids
[buildbot@localhost ossec-hids]$ mock -r el7-x86_64 ossec-hids-2.8-45.art.src.rpm
No handlers could be found for logger "trace.__main__"
Traceback (most recent call last):
File "/usr/sbin/mock", line 306, in <module>
def do_buildsrpm(config_opts, chroot, options, args):
File "/usr/sbin/mock", line 512, in main
uidManager._becomeUser(0, 0)
File "<peak.util.decorators.rewrap wrapping mockbuild.uid._becomeUser at 0x01D32A28>", line 3, in _becomeUser
coverity = BuildFactory()
coverity.addStep(Git(repourl='git://github.com/ossec/ossec-hids.git', mode='incremental'))
coverity.addStep(ShellCommand(workdir="build/src", command=["make", "clean"]))
coverity.addStep(ShellCommand(workdir="build/src", command=["/home/jrossi/cov-analysis-linux64-7.0.2/bin/cov-build","--dir", "cov-int","make", "all"]))
coverity.addStep(ShellCommand(workdir="build/src", command=["tar","czvf","ossec_coverity.tgz","cov-int"]))
coverity.addStep(ShellCommand(workdir="build/src",
hideStepIf=lambda results, s: 1,
command=["curl",
@jrossi
jrossi / keybase.md
Created June 12, 2014 22:27
keybase.md

Keybase proof

I hereby claim:

  • I am jrossi on github.
  • I am jrossi (https://keybase.io/jrossi) on keybase.
  • I have a public key whose fingerprint is CD4A 14E7 2975 7D26 25A8 CA3F 909E BD25 C553 A69A

To claim this, I am signing this object:

Table of Contents

  • bug fix of eventchannel timestamp pull: by jrossi
  • Align eventchannel log format with eventlog, fixes #155 pull: by gaelmuller
  • fix active-response on mac os installation