Skip to content

Instantly share code, notes, and snippets.

View skarol's full-sized avatar

Karolina Samorek skarol

View GitHub Profile
@skarol
skarol / vacation-mode-blueprint.yaml
Last active May 3, 2023 09:38 — forked from milk-truck/vacation-mode-blueprint.yaml
Home Assistant - Vacation Mode Lights Blueprint
# source: https://community.home-assistant.io/t/vacation-lighting-replay-historical-lighting/282435
# blog post on this: https://blog.fuzzymistborn.com/smart-vacation-mode-lighting/
blueprint:
name: Blueprint - Vacation Lighting
description: Vacation Lighting - Replay Sensors to Light Behavior
domain: automation
input:
vacation_mode_toggle:
@skarol
skarol / xcode-add-symbolic-link.md
Last active September 8, 2022 08:47
Add symbolic link for new Xcode version
@skarol
skarol / swiftlint-pre-commit
Last active July 25, 2022 14:40
Pre-commit swiftlint hook
#!/bin/bash
if test -d "/opt/homebrew/bin/"; then
PATH="/opt/homebrew/bin/:${PATH}"
fi
export PATH
SWIFT_LINT=swiftlint
if which swiftlint >/dev/null; then
@skarol
skarol / xcode-duplicate-line-up-down.md
Created November 22, 2021 12:50
Xcode duplicate current line up/down

Xcode duplicate line up/down

Bind keys to duplicate lines in Xcode

  1. Open with text editor
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist