Skip to content

Instantly share code, notes, and snippets.

View rosspatil's full-sized avatar
💻
Open Mind, Open Heart & Open Source

Roshan Patil rosspatil

💻
Open Mind, Open Heart & Open Source
View GitHub Profile
@rosspatil
rosspatil / heap-optmised-slice-return.go
Created June 6, 2019 09:57
This program provide simple hack to optimised slice return. When you return slice it will escape to heap but this program contains simple hack to avoid slice escape to heap.
package main
import (
"unsafe"
)
func main() {
heapOptimised()
normal()
@rosspatil
rosspatil / main.go
Last active August 23, 2020 05:48
Employee-opencensus-init
zipkinHTTPEndpoint := "http://localhost:9411/api/v2/spans"
reporter := httpReporter.NewReporter(zipkinHTTPEndpoint)
ze, err := zipkin.NewEndpoint("employee-service", "localhost:8080")
if err != nil {
log.Fatalln(err)
}
nativeTracer, err := zipkin.NewTracer(reporter, zipkin.WithLocalEndpoint(ze))
if err != nil {
@karansinghgit
karansinghgit / del_vscode_mac.md
Last active June 29, 2024 21:47
How to completely uninstall VSCode on Mac
  1. Close and Quit VSCode

  2. Remove VScode from Applications (just go to Finder -> Applications and move VSCode to Bin)

  3. Execute these commands in any order. The paths might be slightly different for you.

rm -fr ~/.vscode*
rm -fr ~/Library/Application\ Support/Code/

rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist