Skip to content

Instantly share code, notes, and snippets.

# Inspired by:
# * [Z2M - IKEA STYRBAR remote for multiple lights](https://community.home-assistant.io/t/z2m-ikea-styrbar-remote-for-multiple-lights/713964)
# * [ZHA - IKEA Styrbar - White Spectrum Lights](https://community.home-assistant.io/t/zha-ikea-styrbar-white-spectrum-lights/341688)
blueprint:
name: ZHA - IKEA Styrbar - Warm White Lights
description: Control a light with white spectrum and dimming via a Ikea Styrbar Remote connected trough ZHA
domain: automation
@lipkau
lipkau / FixQNapLoginFields.user.js
Last active August 23, 2024 18:01
Userscriptfor fixing the login form from QNAP, as they user a `textarea` for the username and password managers (1password in my case) can't fill it in. https://www.greasespot.net/
// ==UserScript==
// @name Fix QNap Login Fields
// @description Replace the input field for the QNap login screen for 1password to be able to fill them out
// @namespace https://gist.github.com/lipkau/
// @version 0.3
// @author Oliver Lipkau
// @match https://nas/cgi-bin/login.html*
// @icon https://www.google.com/s2/favicons?domain=myqnapcloud.com
// @grant GM_info
// @require https://code.jquery.com/jquery-3.6.0.min.js#sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=
@lipkau
lipkau / fhem_PCA301_washer.cfg
Last active December 15, 2020 02:33
FHEM definition for a washing machine connected to a PCA301 socket and sending a push notification once it's finished
# Logger
{ restoreDir_mkDir("./log", "jeelink/washer", 0) }
define FileLog_Washer FileLog ./log/jeelink/washer/%Y-%m-%d.log Washer
attr FileLog_Washer logtype text
attr FileLog_Dishwasher nrarchive 14
attr FileLog_Washer room Bathroom
{ restoreDir_mkDir("./log", "push", 0) }
define FileLog_Push FileLog ./log/push/%Y-%m-%d.log push_.*
attr FileLog_Push logtype text
@lipkau
lipkau / extensions
Last active February 6, 2024 15:01
VS Code User Settings
42Crunch.vscode-openapi
alefragnani.Bookmarks
AnbuselvanRocky.bootstrap5-vscode
annsk.alignment
asciidoctor.asciidoctor-vscode
atlassian.atlascode
bbenoist.vagrant
bmewburn.vscode-intelephense-client
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
@lipkau
lipkau / CICD_flow.md
Last active September 25, 2018 08:26
A description of a CI/CD pipeline for Powershell

CI/CD Flow description

Assumptions

  • This description uses only major, minor and build in the module's version.
  • This description uses external help instead of Comment-Based help (platyPS).
  • This description uses Pester for running tests.
  • This description hosts the source of github.

Triggers

@lipkau
lipkau / WatchIssues.ps1
Last active July 5, 2018 11:16
[AtlassianPS] [JiraPS] Subscribe to multiple Issues to be informed about changes
#requires -modules JiraPS
if (-not (Get-JiraSession)) {
Write-Error "Script requires a valid session. Use 'New-JiraSession' or edit script."
return
}
$users = @('jon.doe', 'jane.doe')
$query = "project = TV AND components = Backend"
@lipkau
lipkau / Initialize-Environment.ps1
Last active January 3, 2018 13:06
[AtlassianPS] [JiraPS] Set up the environment for JiraPS (Install, Import, Login)
function Initialize-Environment {
<#
.SYNOPSIS
Initialize the module
.DESCRIPTION
Setup the environment to work with JiraPS
.EXAMPLE
Initialize-Environment
@lipkau
lipkau / Upload-Changes.ps1
Last active October 16, 2017 08:41
[AtlassianPS] [JiraPS] Upload changes to Jira Issues
param(
# Path to the JSON file with the information to upload.
[Parameter(Mandatory = $true)]
[ValidateScript( { Test-Path $_ })]
[string]$InputFile,
# Credentials to use for the connection with Jira.
[Parameter(Mandatory = $true)]
[PSCredential]$Credential,
@lipkau
lipkau / html.json
Created May 19, 2017 15:21
Insert Snippet around selection with keybinding #vscode #sample
{
"make_strong": {
"prefix": "strong",
"body": [
"<strong>$TM_SELECTED_TEXT${1}</strong>${0}"
],
"description": "Encloses selected text in <strong></strong> tags"
},
"make_italic": {
"prefix": "italic",
@lipkau
lipkau / AtlassianTuner.user.js
Last active July 9, 2020 03:05
UserScript for Atlassian's Jira and Confluence
// ==UserScript==
// @name AtlassianTuner
// @description Custom javascript to inject onto Atlassian's Jira and Confluence to make experience better (at least for me)
// @namespace https://gist.github.com/lipkau/481342249739847f2d7f8d3099783ce4
// @author Oliver Lipkau
// @version 0.10.1
// @include https://*.bsh-sdd.com*
// @require https://code.jquery.com/jquery-2.2.4.min.js#sha256=BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=
// @require https://cdnjs.cloudflare.com/ajax/libs/anchor-js/3.2.2/anchor.min.js#sha256=WofcoLT8gToeaSmVRe28qpnlFxdBJH1n4K6Bk3YowvU=
// @run-at document-start