Skip to content

Instantly share code, notes, and snippets.

View reypm's full-sized avatar

ReynierPM reypm

View GitHub Profile
@reypm
reypm / commit-with-branch.sh
Created October 30, 2023 15:42
Add branch name to commit message
function commit-with-branch() {
# Get the current branch name
branch_name=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
# Check if we are on a valid branch
if [ -n "$branch_name" ]; then
# Read the commit message from the user
read -e -i "$branch_name: " commit_message
# Remove leading and trailing whitespace from the commit message
@reypm
reypm / README.md
Created February 2, 2023 15:05
HA Utils

List all entities

Go to Developer Tools > Templates and type:

{% for state in states %}
{{ state.entity_id }}
{%- endfor -%}
@reypm
reypm / README.md
Last active May 1, 2023 12:51
New Dev Environment Fast Setup

Fedora Server Configuration Snippets


  • Go to Parallels Desktop menu bar Devices > CD/DVD > Connect image
  • Navigate to /Applications/Parallels Desktop/Contents/Resources/Tools
  • Click on prl-tools-lin.iso (for x86_64) or the equivalent for ARM and click Open
  • Mount the Parallels Tools image to Linux virtual machine: