Skip to content

Instantly share code, notes, and snippets.

alias: Auto Close Cars Garage Door
description: ""
trigger:
- platform: state
to: open
for:
hours: 0
minutes: 0
seconds: 0
entity_id:
#!/usr/bin/env perl
use LWP::UserAgent;
use Net::MQTT::Simple;
use JSON;
use Data::Dumper;
my $mqtt = Net::MQTT::Simple->new("127.0.0.1");
my $color = {
'red' => hex("0x0000"),
'orange' => hex("0x1800"),
'yellow' => hex("0x4000"),
@northrup
northrup / openldap-openssl-jessie
Created March 30, 2016 22:10
openldap-openssl-jessie
!/bin/bash
# vagrant box add jessie https://downloads.sourceforge.net/project/vagrantboxjessie/debian80.box
# vagrant init jessie
# vagrant up
# vagrant ssh -- -A
# sudo su -
# wget --no-check-certificate -qO - https://gist.githubusercontent.com/jameswhite/5ef1524e5d99904a0e65/raw/jessie | bash > jessie.out 2>&1
apt-get update
!/bin/bash
# vagrant box add jessie https://downloads.sourceforge.net/project/vagrantboxjessie/debian80.box
# vagrant init jessie
# vagrant up
# vagrant ssh -- -A
# sudo su -
# wget --no-check-certificate -qO - https://gist.githubusercontent.com/jameswhite/5ef1524e5d99904a0e65/raw/jessie | bash > jessie.out 2>&1
apt-get update
Adventures in Authentication
Freemont, CA
radagast.ath.8bitwizard.net 45.79.101.18 / 2600:3c01::f03c:91ff:fe67:e138
Newark, NJ
saruman.ath.8bitwizard.net 45.79.153.58 / 2600:3c03::f03c:91ff:fe67:e1d0
Dallas, TX
gandalf.ath.8bitwizard.net 69.164.204.34 / 2600:3c00::f03c:91ff:fe67:e11e
2 easy steps:
1) echo -n | openssl s_client -connect AD_SERVER:AD_SERVER_PORT | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ldapserver.pem
2) keytool -import -trustcacerts -file ldapserver.pem -alias ALIAS_GOES_HERE -keystore /Users/.../Apps/jxplorer-3.3.1-osx/jxplorer-3.3.1.app/Contents/Resources/security/cacerts
@northrup
northrup / keybase.md
Last active May 10, 2016 19:18
Keybase.io Key

Keybase proof

I hereby claim:

  • I am northrup on github.
  • I am northrup (https://keybase.io/northrup) on keybase.
  • I have a public key ASA_x6zJ-kaixpKJAtqfA98lqkU7GA5L1ahtrU-OU6tsDgo

To claim this, I am signing this object: