Skip to content

Instantly share code, notes, and snippets.

View akshaybharambe14's full-sized avatar
🎯
Focusing

Akshay Bharambe akshaybharambe14

🎯
Focusing
View GitHub Profile
@akshaybharambe14
akshaybharambe14 / context_cancel.go
Created January 25, 2020 06:42 — forked from fracasula/context_cancel.go
GoLang exiting from multiple go routines with context and wait group
package main
// Here we show how to properly terminate multiple go routines by using a context.
// Thanks to WaitGroup we'll be able to end all go routines gracefully before the main function ends.
import (
"fmt"
"os"
"context"
"sync"
@akshaybharambe14
akshaybharambe14 / InstallRedis.txt
Created November 26, 2019 04:39
Steps to install redis on linux machine
‎‎​
@akshaybharambe14
akshaybharambe14 / vsc-extensions.bat
Created May 22, 2019 17:36
Install popular vs code extensions in one go for windows
code --install-extension christian-kohler.path-intellisense
code --install-extension CoenraadS.bracket-pair-colorizer
code --install-extension DavidAnson.vscode-markdownlint
code --install-extension dbaeumer.vscode-eslint
code --install-extension eamodio.gitlens
code --install-extension esbenp.prettier-vscode
code --install-extension formulahendry.auto-close-tag
code --install-extension formulahendry.code-runner
code --install-extension jspolancor.presentationmode
code --install-extension kenhowardpdx.vscode-gist
package main
import (
"fmt"
"os"
"os/signal"
"sync"
"time"
)