Skip to content

Instantly share code, notes, and snippets.

@pranav7
pranav7 / til.md
Last active December 6, 2016 09:52
Conver ruby hash to new syntax

Convert Ruby 1.8 to 1.9 Hash Syntax - for vim

:%s/:\([^ ]*\)\(\s*\)=>/\1:/g
@pranav7
pranav7 / commit.md
Last active February 26, 2025 10:51
AI git commit function using ollama

Here is how to use this

$ commit

or if you want to specifiy a model

$ commit gemma2:2b