- Create
snowflakes.js
underconfig\www
folder. - Add content from the gist
- Choose to run always (remove all below line 4),
- Or by date (remove line 4, optionally editing the dates you want the snowflakes to trigger)
- and save.
- In HA, go to Configuration > Lovelace Dashboards > Resources.
- Click 'Add Resources' and enter
local/snowflakes.js
(it's a JavaScript module) - Save it
- Enjoy the holidays
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
#oh-my-posh --init --shell pwsh --config ~/jandedobbeleer.omp.json | Invoke-Expression | |
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json" | Invoke-Expression | |
# needs Install-Module -Name Terminal-Icons -Repository PSGallery | |
Import-Module -Name Terminal-Icons | |
# https://devblogs.microsoft.com/powershell/announcing-psreadline-2-1-with-predictive-intellisense | |
Set-PSReadLineOption -PredictionSource History | |
Set-PSReadLineOption -PredictionViewStyle ListView |
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
app.UseWhen( | |
context => context.Request.Path.StartsWithSegments("/api"), | |
builder => builder.UseResponseCompression()); |
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
gci | foreach { write-host $_.fullname; push-location $_; & git fetch } |
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
- alias: Play Station from Magic Cards | |
trigger: | |
- platform: event | |
event_type: magic_card_scanned | |
event_data: | |
card_type: station | |
action: | |
# - service: notify.group_deef | |
# data_template: | |
# title: "Magic Cards {{ trigger.event.data.card_code }}" |
http://scoop.sh/ A command-line installer for Windows
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
https://github.com/lukesampson/concfg concfg is a utility to import and export Windows console settings like fonts and colors.
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
// full repo at https://github.com/DavidDeSloovere/AzureFunction-OctopusToMicrosoftTeams | |
public static async Task<object> Run(HttpRequestMessage req, TraceWriter log) | |
{ | |
log.Info("Webhook was triggered!"); | |
string jsonContent = await req.Content.ReadAsStringAsync(); | |
log.Info(jsonContent); | |
dynamic data = JsonConvert.DeserializeObject(jsonContent); |
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
const string host = "domainna.me"; | |
const string username = "chucknorris"; | |
const string password = "norrischuck"; | |
const string workingdirectory = "/highway/hell"; | |
const string uploadfile = @"c:\yourfilegoeshere.txt"; | |
Console.WriteLine("Creating client and connecting"); | |
using (var client = new SftpClient(host, port, username, password)) | |
{ | |
client.Connect(); |
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
#output to stdout in special format | |
Write-Host ("##vso[task.setvariable variable=ThisIsMyVariable;]somevalue") | |
# reuse in subsequent tasks | |
$Env:ThisIsMyVariable |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
</head> | |
</html> |
NewerOlder