This file contains hidden or 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
$result | Add-Member -MemberType ScriptMethod ExpandString -Value { | |
[cmdletbinding()] | |
param( | |
[Parameter( | |
Mandatory=$true)] | |
[string] | |
$unexpandedValue | |
) | |
process{ | |
if($this.ProjectInstance){ |
This file contains hidden or 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
/* | |
Attiny85_batteryMonitor | |
Ideas borrowed from: https://github.com/unixbigot/Flat-Mate | |
modified for arduino tiny core by DWhacks | |
*@@ Voltage trigger levels. | |
* |
This file contains hidden or 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
homeassistant: | |
# Name of the location where Home Assistant is running | |
name: Home | |
# Location required to calculate the time the sun rises and sets | |
latitude: ****** | |
longitude: ****** | |
# C for Celcius, F for Fahrenheit | |
temperature_unit: C | |
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones | |
time_zone: America/Sao_Paulo |
This file contains hidden or 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
homeassistant: | |
name: Home | |
latitude: <LATITUDE> | |
longitude: <LONGITUDE> | |
# C for Celcius, F for Fahrenheit | |
temperature_unit: C | |
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones | |
time_zone: Europe/Copenhagen | |
customize: | |
device_tracker.mads_desktop: |
This file contains hidden or 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
################################################################# | |
## Main and component setup | |
################################################################# | |
homeassistant: | |
# Name of the location where Home Assistant is running | |
name: Home | |
# Location required to calculate the time the sun rises and sets | |
latitude: [REDACTED] | |
longitude: [REDACTED] | |
# C for Celcius, F for Fahrenheit |
This file contains hidden or 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-Module WebAdministration | |
$port = 80 | |
$ssl = $false | |
#App Start | |
SetupOptionalVariables | |
SetupAppPools | |
SetupWebSite | |
SetupWebApplication |
This file contains hidden or 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
Add-Type -AssemblyName presentationframework | |
[xml]$XAML = @' | |
<Window | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
Title="MainWindow" Height="100" Width="20"> | |
<StackPanel> | |
<TextBox Name="textWeather" /> | |
<Button Name="buttonGet" Content="Get"/> |
This file contains hidden or 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
# Finish headless installation via `ssh [email protected]` | |
# See /boot/config.txt | |
sudo apt-get update && sudo apt-get --purge dist-upgrade | |
sudo raspi-config | |
# Add locale en.us-utf8 (but keep en.gb-utf8) | |
sudo dpkg-reconfigure locales | |
# Timezone | |
sudo dpkg-reconfigure tzdata | |
# Update firmware |
This file contains hidden or 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 python2.7 | |
# script by Alex Eames http://RasPi.tv | |
# explained here... | |
# http://raspi.tv/2013/controlled-shutdown-duration-test-of-pi-model-a-with-2-cell-lipo | |
# DO NOT use this script without a Voltage divider or other means of | |
# reducing battery voltage to the ADC. This is exaplained on the above blog page | |
import time | |
import os | |
import subprocess | |
import smtplib |
This file contains hidden or 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
ALTER PROCEDURE [dbo].[TempGetStateItem3] | |
@id tSessionId, | |
@itemShort tSessionItemShort OUTPUT, | |
@locked bit OUTPUT, | |
@lockAge int OUTPUT, | |
@lockCookie int OUTPUT, | |
@actionFlags int OUTPUT | |
AS | |
DECLARE @textptr AS tTextPtr, @length AS int, @extendExpiration bit, @now AS datetime = GETUTCDATE(); |