Skip to content

Instantly share code, notes, and snippets.

View jfklingler's full-sized avatar

John Klingler jfklingler

View GitHub Profile
@jfklingler
jfklingler / lambda_function.py
Created June 28, 2023 21:58 — forked from matt2005/lambda_function.py
Alexa Smart Home Skill Adapter for Home Assistant
"""
Copyright 2019 Jason Hu <awaregit at gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@jfklingler
jfklingler / keybase.md
Created March 13, 2019 22:25
keybase.md

Keybase proof

I hereby claim:

  • I am jfklingler on github.
  • I am jfklingler (https://keybase.io/jfklingler) on keybase.
  • I have a public key ASA_TKdghPt1L_d13q0h1wjjMnqf76KZWA5HoBsjayBMfwo

To claim this, I am signing this object:

# Where to get input
input {
# syslog inputs
tcp {
port => 5000
tags => ["system"]
type => "syslog"
}
udp {
port => 5000
@jfklingler
jfklingler / bdnet.sh
Created August 17, 2015 12:51
Reset boot2docker network
#!/bin/bash
if_prefix=${VB_IF_PREFIX:-vboxnet}
if_name=$(ifconfig | grep $if_prefix | awk -F':' '{print $1}')
if [[ $if_name == "" ]]; then
echo "Couldn't find $if_prefix interface" >&2
exit 1
fi
@jfklingler
jfklingler / Vagrantfile
Created September 19, 2014 13:59
Build RPM with Maven on Windows, OS X, etc. using Vagrant
# This quick and dirty vagrant set up will let you build RPMs on systems
# that don't (or don't easily) support building RPMs. Just place this
# Vagrantfile in your project root, or pull the "rpm-build" VM definition
# into your existing Vagrantfile if you're already using vagrant.
#
# The first 'vagrant up rpm-build' will set up the VM and build the RPMs
# Subsequent 'vagrant provision rpm-build' will rebuild the RPMs
# You can 'vagrant ssh rpm-build', go to the appropriate target/ for
# your project under /vagrant, and inspect your RPM with
# 'rpm -qlp --scripts <rpm file name>'.