Skip to content

Instantly share code, notes, and snippets.

View ergoz's full-sized avatar
๐Ÿ˜ˆ
let's rock

Sergey Morozov ergoz

๐Ÿ˜ˆ
let's rock
View GitHub Profile
@ergoz
ergoz / reset-proxmox-cluster.sh
Created July 15, 2024 19:09 — forked from nderjung/reset-proxmox-cluster.sh
Reset proxmox cluster
#/bin/bash -xe
systemctl stop pvestatd.service
systemctl stop pvedaemon.service
systemctl stop pve-cluster.service
systemctl stop corosync
systemctl stop pve-cluster
sqlite3 /var/lib/pve-cluster/config.db "delete from tree where name = 'corosync.conf';"
@ergoz
ergoz / .zshrc
Created July 4, 2024 15:41 — forked from fcaldera/.zshrc
zsh configuration with zplug
export ZPLUG_HOME=/usr/local/opt/zplug
# Essential
source $ZPLUG_HOME/init.zsh
# Async for zsh, used by pure
zplug "mafredri/zsh-async", from:github, defer:0
# oh-my-zsh
zplug "lib/completion", from:oh-my-zsh
blueprint:
name: Notifications & Announcements
description: >
# ๐Ÿ“ข Notifications & Announcements
**Version: 1.0**
State your trigger and spread the word ๐Ÿ’ฌ ๐Ÿ”‰
@ergoz
ergoz / renew_ssl_cert.yaml
Created June 17, 2024 16:56 — forked from TJ-developer/renew_ssl_cert.yaml
Homeassistant Blueprint for SSL-Certificate renewal
blueprint:
name: Renew Let's Encrypt Certificate
description: Renew Certificate when due date is below given value
domain: automation
input:
cert_expiry_sensor:
name: Certificate Expiry Sensor
description: Sensor from the Certificate Expiry Integration (https://www.home-assistant.io/integrations/cert_expiry)
selector:
entity:
blueprint:
name: Calendar Notifications & Actions
description: >
# ๐Ÿ“… Calendar Notifications & Actions
**Version: 1.5**
Transform Your Calendar: Turn Events Into Notifications and Actions! ๐Ÿ“…๐Ÿ””โš™๏ธ
@ergoz
ergoz / appliance-notifications.yaml
Created June 17, 2024 16:51 — forked from Blackshome/appliance-notifications.yaml
appliance-notifications.yaml
blueprint:
name: Appliance Notifications & Actions
description: >
# ๐Ÿ“ณ Appliance Notifications & Actions
**Version: 2.2**
๐Ÿค” Watts your appliance up to, you're always in the know from start to finish!๐Ÿ›Ž๏ธ๐Ÿ”Œ๐Ÿ’ธ
blueprint:
name: Low Battery Notifications & Actions
description: >
# ๐Ÿชซ Low Battery Notifications & Actions
**Version: 2.3**
๐Ÿš€ Stay Charged, Stay Smart! Let's automate and take charge of your battery maintenance!๐Ÿ”‹โšก
blueprint:
name: Bathroom Humidity Exhaust Fan
description: >
# ๐Ÿšฟ Bathroom Humidity Exhaust Fan
**Version: 2.4**
Step into the future of freshness - customize it your way and let the automated fan system handle the humidity control for you! ๐ŸŒฟ๐Ÿšฟ
@ergoz
ergoz / fzf-ssh.zsh
Created May 13, 2024 10:17 — forked from siriusjack/fzf-ssh.zsh
fzf-ssh integration for zsh
function ssh-fzf () {
local selected_host=$(grep "Host " ~/.ssh/config | cut -b 6- | fzf --query "$LBUFFER")
if [ -n "$selected_host" ]; then
BUFFER="ssh ${selected_host}"
zle accept-line
fi
zle reset-prompt
}
zle -N ssh-fzf
bindkey '^\' ssh-fzf
@ergoz
ergoz / config.yaml
Created April 19, 2024 12:47 — forked from davidejones/config.yaml
Hugo recursive partial to output navigation
languages:
en:
menu:
main:
- identifier: menu_home
name: "Home"
url: "/home/"
weight: 10
- identifier: menu_about
name: "About"