Skip to content

Instantly share code, notes, and snippets.

@luixal
luixal / Mushroom_Input_Countdown.md
Last active March 21, 2025 22:05
Home Assistant cards configuration

Mushroom Countdown with Input Hours

This card shows an hours input card while charger is off and a countdown when charger is running for the hours selected.

There's another version that adds a simple scheduling feature in top of this here.

Screeenshots

image

image

@Blackshome
Blackshome / appliance-notifications.yaml
Last active April 27, 2025 11:43
appliance-notifications.yaml
blueprint:
name: Appliance Notifications & Actions
description: >
# 📳 Appliance Notifications & Actions
**Version: 2.8**
🤔 Watts your appliance up to, you're always in the know from start to finish!🛎️🔌💸
@slarwise
slarwise / init.vim
Last active June 12, 2023 10:01
Navigate vim splits in kitty terminal and other windows with the same skhd keybinds. Window manager yabai.
" The (neo)vim function that takes care of navigation within vim.
" Same concept as vim-tmux-navigator. If we navigate in the wanted
" direction and the winnr() hasn't changed, then we are at the edge
" and should forward the navigation to the window manager.
function! NvimYabaiNavigate(yabai_direction, vim_direction)
let win_nr_before = winnr()
execute("wincmd " . a:vim_direction)
if win_nr_before ==# winnr()
call system("yabai -m window --focus " . a:yabai_direction)
@jeetsukumaran
jeetsukumaran / Open New MacVim Buffer.scpt
Last active August 3, 2019 11:19
AppleScript to open a new MacVim buffer.
on run
tell application "System Events"
set currProcs to (name of processes)
set MacVimRunning to (currProcs contains "MacVim")
if not MacVimRunning then
tell application "MacVim" to activate
end if
tell process "MacVim"
click menu item "New Window" of menu "File" of menu bar 1
set visible to true
@agnoster
agnoster / README.md
Last active May 10, 2025 17:44
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark