$ openssl s_client -connect localhost:8443
[lots of stuff truncated]
-----END CERTIFICATE-----
subject=/C=Unknown/ST=Unknown/L=Unknown/O=openHAB/OU=Unknown/CN=openhab.org
issuer=/C=Unknown/ST=Unknown/L=Unknown/O=openHAB/OU=Unknown/CN=openhab.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import smtplib | |
import sys | |
import time | |
from optparse import OptionParser | |
from supervisor import childutils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* QuadEncoder.cpp - Library for reading moves from a quadrature rotary encoder | |
* Created by Pedro Rodrigues ([email protected]) 9, January of 2010 | |
* Released into the public domain. | |
*/ | |
#include "Arduino.h" | |
#include "QuadEncoder.h" | |
QuadEncoder::QuadEncoder(int pin1, int pin2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#Based on Adafruit's Raspberry Pi Lesson 11 Temperature sensing tutorial by Simon Monk | |
#Modified by Tim Massaro 2/2014 | |
#This script now uses a Raspberry Pi, Adafruit PiPlate LCD and | |
#two DS18B20 temp sensor to monitor the freezer and fridge unit at Channel One Food Shelf | |
#significant changes | |
#adapt for 2 sensors | |
#Display temperature on the LCD | |
#sendtext messages when temperature is out of range |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
action_with_slack_notification = %(banaction)s[name=%(__name__)s, port="%(port)$ | |
slack[name=%(__name__)s] | |
action = %(action_with_slack_notification)s | |
... |
You can use a FREE certificate from [Let's Encrypt] (https://letsencrypt.org/) to secure your [openHAB] (http://www.openhab.org/) installation.
This quick information page is based on detail from https://gist.github.com/jpmens/8029383.
To start, get the Let's Encrypt client as shown here https://letsencrypt.org/howitworks/. I checked it out into /root/letsencrypt
.
Pick a password for your keystore. Use the commandline in step 9 of [jpmen's tutorial] (https://gist.github.com/jpmens/8029383) to create jetty passwords and update the jetty.xml.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Host "me.owntracks.alr.st" { | |
import "owntracks-host" | |
} | |
object Host "5s.owntracks.alr.st" { | |
import "owntracks-host" | |
} | |
object Host "sm.owntracks.alr.st" { | |
import "owntracks-host" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ban & send a notification on slack | |
action_with_slack_notification = %(banaction)s[name=%(__name__)s, port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"] | |
slack[name=%(__name__)s, dest="%(destemail)s", protocol="%(protocol)s", chain="%(chain)s", sendername="%(sendername)s"] | |
# Choose default action. To change, just override value of 'action' with the | |
# interpolation to the chosen action shortcut (e.g. action_mw, action_mwl, etc) in jail.local | |
# globally (section [DEFAULT]) or per specific section | |
action = %(action_with_slack_notification)s |
OlderNewer