Skip to content

Instantly share code, notes, and snippets.

View michaelp85's full-sized avatar

Michael Pasqualone michaelp85

View GitHub Profile
blueprint:
name: 3D Printer Enclosure Fan Control
description: >
# Forked from Blackshome/temperature-control-exhaust-fan.yaml
# 3D Printer Enclosure Fan Control
**Version: 1.0**
The most common automation used for a Temperature Control Exhaust Fan. It really can turn anything ON and OFF on a rising & falling numeric value.
@michaelp85
michaelp85 / gist:05ece28e3a959ffda008441774170dac
Created July 30, 2020 07:33
Check Unity License and License
REM License Unity
SET unitySerial[0]=X4-XXXX-XXXX-XXXX-XXXX-XXXX
SET unitySerial[1]=X4-XXXX-XXXX-XXXX-XXXX-XXXX
SET unityUsername=redacted@example.com
SET unityPassword=redacted
REM See https://stackoverflow.com/questions/5777400/how-to-use-random-in-batch-script/5777608#5777608
REM This will return either 0 or 1, which we'll use below to set our variable to either unitySerial[0] or unitySerial[1]
set /a unitySerialNum=%random% %%2
set unitySerialToUse=!unitySerial[%unitySerialNum%]!
Verifying myself: My Bitcoin username is +michaelp. https://onename.io/michaelp
@michaelp85
michaelp85 / ExtExpressionEngineAuthDB.php
Created February 6, 2013 02:30
MediaWiki external authentication plugin interface to ExpressionEngine 2.2+
<?php
/**
* External authentication plugin interface to ExpressionEngine 2.2+
*
* Basic setup:
* - Save this file into extensions/ExtExpressionEngineAuthDB/ExtExpressionEngineAuthDB.php
* - Insert LocalSettings.php requirements, see below for what they are.
*
* This extension is a derivation of http://www.mediawiki.org/wiki/Extension:ExtAuthDB
*