Skip to content

Instantly share code, notes, and snippets.

View KPChakravarthy's full-sized avatar

Krishna Prasad C KPChakravarthy

  • CognitiveClouds
  • Bangalore
View GitHub Profile
@KPChakravarthy
KPChakravarthy / vscode-mods.json
Created September 16, 2022 05:35 — forked from impmja/vscode-mods.json
Visual Studio Code: Mods
{
"recommendations": [
"CoenraadS.bracket-pair-colorizer",
"mikestead.dotenv",
"oderwat.indent-rainbow",
"robertohuertasm.vscode-icons",
"esbenp.prettier-vscode",
"jsynowiec.vscode-insertdatestring",
"alefragnani.project-manager",
"codezombiech.gitignore",
@KPChakravarthy
KPChakravarthy / pre-commit
Created September 9, 2022 04:56 — forked from swateek/pre-commit
PreCommit Hook - Convert Tab to Spaces for Golang Files
#!/bin/bash
# Print an introduction line in cyan
printf "\033[0;36mPre-commit hook - For Checking Tabs in Golang Files...\033[0m \n"
# Grab feed of staged files
files=$(git diff --name-only --cached -- "*.go")
numfiles=$( printf '%s' "$files" | grep -c '^' )
if [ $numfiles -eq 0 ]