Skip to content

Instantly share code, notes, and snippets.

View ironicbadger's full-sized avatar

Alex Kretzschmar ironicbadger

View GitHub Profile
light:
- platform: mqtt
schema: json
effect: true
effect_list:
- bpm
- confetti
- cyclon rainbow
- dots
- fire
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 35.7796
longitude: -78.6382
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: imperial
@ironicbadger
ironicbadger / Dockerfile.rhel7
Last active November 26, 2018 20:25
Maven3.2.5
FROM registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7
MAINTAINER Gabe Montero <gmontero@redhat.com> Alex Kretzschmar <alexktz@redhat.com>
# Labels consumed by Red Hat build service
LABEL com.redhat.component="jenkins-agent-maven-35-rhel7-container" \
name="openshift3/jenkins-agent-maven-35-rhel7" \
version="3.11" \
architecture="x86_64" \
io.k8s.display-name="Jenkins Agent Maven" \
@ironicbadger
ironicbadger / convert.sh
Last active September 3, 2018 15:44
automated audiobook DRM stripping
#!/bin/bash
# ./convert -a asdfghjk
# Obtain an activation_bytes string and plug it into this script with -a.
FILES=aax/*
OUTPUT=mp3
while getopts a: option
do
case "${option}"
@ironicbadger
ironicbadger / HGST
Last active August 2, 2018 10:45
SMART reports
### conclusions
- Drive is just over 3 years old (power on time)
- No reallocated sectors
- No errors in SMART history
This drive is suitable for service.
===============================
@ironicbadger
ironicbadger / plex.yml
Created July 26, 2018 19:59
example lsio-config yml
---
# project information
plex_project_name: plex
plex_project_url: "https://plex.tv/"
plex_project_logo: "http://the-gadgeteer.com/wp-content/uploads/2015/10/plex-logo-e1446990678679.png"
plex_project_blurb: "[Plex]({{ plex_project_url }}) organizes video, music and photos from personal media libraries and streams them to smart TVs, streaming boxes and mobile devices. This container is packaged as a standalone Plex Media Server."
# container parameters
plex_param_container_name: "{{ plex_project_name }}"
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-6-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Toshiba 3.5" DT01ACA... Desktop HDD
Device Model: TOSHIBA DT01ACA300
Serial Number: X3544DGKS
LU WWN Device Id: 5 000039 ff4cff983
Firmware Version: MX6OABB0
User Capacity: 3,000,592,982,016 bytes [3.00 TB]
public class Deck {
public Deck()
{
// do something
// note the tab spacing
}
public static void main(String[] args)
{
@ironicbadger
ironicbadger / zm.cfg
Created April 4, 2018 19:08
zm configuration
# ZM supports configuration via configuration files.
# Configuration files are used if the '--cfg-file' option is given on the
# command line. All additional command line options are ignored in this case.
# Options are grouped into sections - each option is a 'key=value(s)' pair.
# Lists of values are separated by ',' (spaces are not allowed).
# Comments start with '#'.
# ZM supports the setup of multiple pools.
# Pools are ordered by their priority. Higher priority pools are configured
# above lower priority pools in this file. ZM connects to the highest priority
@ironicbadger
ironicbadger / dnsmasq.conf
Last active February 1, 2021 09:57
example dnsmasq config
$ cat /etc/dnsmasq.conf
no-resolv
server=/eu-west-1.compute.internal/10.0.24.2
server=/example.local/10.160.16.10
server=10.0.24.2
server=/example.local/10.10.16.10
server=/140.10.in-addr.arpa/10.0.24.2
server=/82.10.in-addr.arpa/10.0.24.2
address=/.apps-build.euw1.aws.example.local/10.0.25.100
address=/master-ocp-build.euw1.aws.example.local/10.0.25.100