Skip to content

Instantly share code, notes, and snippets.

View mikeboiko's full-sized avatar

Mike mikeboiko

  • Calgary, Canada
View GitHub Profile
@Icaruk
Icaruk / multipleGitProfiles.md
Last active June 3, 2024 14:48
How to have multiple profiles on git

Last update: 30-01-2024
Last view: 30-01-2024

Step 1

Go to your work folder, mine is located at: F:/Work/EnterpriseName/

And then create a .gitconfig-work with the following data:

esphome:
name: fairy_light_1
platform: ESP32
board: nodemcu-32s
# wifi settings
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pw
power_save_mode: none
@mikeboiko
mikeboiko / git-credential-rbw
Last active March 31, 2024 13:55
Use bitwarden rbw as git-credential helper
#!/usr/bin/env bash
# rbw git-credential helper
# Based on https://github.com/lastpass/lastpass-cli/blob/master/contrib/examples/git-credential-lastpass
# A credential helper for git to retrieve usernames and passwords from rbw.
# For general usage, see https://git-scm.com/docs/gitcredentials.
# Here's a quick version:
# 1. Put this somewhere in your path.
# 2. git config --global credential.helper rbw
@Ultra9k
Ultra9k / motion_switch_light.yaml
Last active April 9, 2024 19:03
This is a blueprint based on the original motion_light from Home Assistant. This one, however, allows you to control not only lights but also switches when motion is detected.
blueprint:
name: Motion-activated Switch and/or Light
description: Turn on a switch and/or light when motion is detected.
domain: automation
input:
motion_entity:
name: Motion Sensor
selector:
entity:
domain: binary_sensor