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
import org.openhab.core.model.script.ScriptServiceUtil | |
/* | |
# UniversalDimmer for OpenHAB 3 | |
Reliably dim or colour lights or change volume of a target value over a set period of time | |
Thread: https://community.openhab.org/t/rule-to-slowly-fading-in-or-out-any-given-item-based-on-variables/54988/30?u=habau | |
Source: https://gist.github.com/neutmute/6a8e44f300b2b5a4971630371cd0dd97 | |
Requires the RegEx transformation to be installed | |
*/ |
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
DECLARE @tableName NVARCHAR(MAX), @schemaName NVARCHAR(MAX), @className NVARCHAR(MAX) | |
--------------- Input arguments --------------- | |
SET @tableName = 'CustomerView' | |
SET @schemaName = 'dbo' | |
SET @className = 'CustomerDto' | |
--------------- Input arguments end ----------- | |
DECLARE tableColumns CURSOR LOCAL FOR | |
SELECT cols.name, cols.system_type_id, cols.is_nullable FROM sys.columns cols |
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
Windows Registry Editor Version 5.00 | |
;Encoding should be UCS little endian | |
[-HKEY_CLASSES_ROOT\Directory\shell\console2here] | |
[HKEY_CLASSES_ROOT\Directory\shell\console2here] | |
@="Open console here" | |
"Icon"="C:\\apps\\console2\\vscommand.ico" | |
[-HKEY_CLASSES_ROOT\Directory\shell\console2here\command] | |
[HKEY_CLASSES_ROOT\Directory\shell\console2here\command] | |
@="\"C:\\apps\\console2\\Console.exe\" -d \"%L\"" | |
# git bash using console2 |
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
description "statsd" | |
start on startup | |
stop on shutdown | |
script | |
export HOME="/root" | |
cd /opt/statsd && node ./stats.js ./localConfig.js | |
end script |
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
#!/bin/bash | |
#Based off https://gist.github.com/2854114 | |
# node.js using PPA (for statsd) | |
sudo apt-get install python-software-properties | |
sudo apt-add-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs npm |