Last update: 30-01-2024
Last view: 01-05-2025
Go to your work folder, mine is located at:
F:/Work/EnterpriseName/
And then create a .gitconfig-work
with the following data:
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 |
#!/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 |
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 |
set-hook -g client-attached 'run-shell /bin/update_display.sh' |
#!/bin/sh | |
# Wrapper script around yay to try to ignore errors | |
# Copyright © 2019 Ashkan Kiani | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, |
# ======================================================================= | |
# === Description ...: Integrate DRF with VueTable-2 | |
# === Author ........: Mike Boiko | |
# ======================================================================= | |
# If you want to integrate Django Rest Pagination with VueTable, you must | |
# change the pagination as shown below: | |
# Then, in your views.py file, the pagination_class must be set to CustomPagination | |
# See example below: | |
# from rest_framework import pagination |
--- | |
- name: Install MacOS Packages | |
hosts: localhost | |
become: false | |
vars: | |
brew_cask_packages: | |
- atom | |
- docker | |
- dropbox | |
- firefox |
def dump_func_name(func): | |
def echo_func(*func_args, **func_kwargs): | |
print('') | |
print('Start func: {}'.format(func.__name__)) | |
return func(*func_args, **func_kwargs) | |
return echo_func | |
class ClassName(object): | |
@dump_func_name |