Skip to content

Instantly share code, notes, and snippets.

View xmlking's full-sized avatar
🌝
Write code that will last longer than You

Sumanth Chinthagunta xmlking

🌝
Write code that will last longer than You
View GitHub Profile
@xmlking
xmlking / windows-git
Created April 16, 2022 21:54
windows-dev-setup.md
```shell
git config --global core.protectNTFS false
git config --global core.longpaths true
```
@xmlking
xmlking / Test.md
Last active February 15, 2022 18:02

Diagrams

  graph TD;
      A-->B;
      A-->C;
      B-->D;
      C-->D;
@xmlking
xmlking / curl-with-http3-macos.md
Created December 4, 2021 20:09
Installing curl with http3 on MacOS

Work-in-pogress

Ref: cloudflare/homebrew-cloudflare#21

 # Clean up any old version of curl you may have already tried to install
brew remove -f curl

# Download the curl ruby install script provided by cloudflare
@xmlking
xmlking / spring-native-build-error
Created June 24, 2021 17:02
spring native build error
Step 1: clone `github.com:xmlking/micro-apps`
Step 2: run `gradle :apps:entity-service:bootBuildImage`
gradle :apps:entity-service:bootBuildImage
Starting a Gradle Daemon (subsequent builds will be faster)
Type-safe dependency accessors is an incubating feature.
Type-safe project accessors is an incubating feature.
> Configure project :
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
@xmlking
xmlking / main.go
Last active May 16, 2020 19:44
go-micro: you can also use Unix Domain Sockets (UDS) as address
package main
import (
"net"
"github.com/micro/go-micro/v2"
"github.com/xmlking/logger/log"
sgrpc "github.com/micro/go-micro/v2/server/grpc"
@xmlking
xmlking / istio.md
Created April 5, 2020 17:41
istio install

Istio

Install

brew install istioctl
Optionally souce below file to enable auto-completion
. /Users/schintha/Developer/Apps/istio-1.5.1/tools/_istioctl
@xmlking
xmlking / minikube.md
Last active September 19, 2020 17:15

Minikube

Setup

brew install hyperkit # not required if docker4mac is installed
brew install minikube
# To make hyperkit the default driver:
minikube config set vm-driver hyperkit

mac tips

  • Grep three lines....

    # highlight `app:`
    kustomize build $BASE | grep -C 3 app:
    
    # Compare the output directly to see how staging and production differ:
@xmlking
xmlking / ko.md
Created July 6, 2019 21:49
ko : Deploy GoLang microservices to k8s

Demo of ko

ko is a little unknown gem, lost in the GitHub maze.

ko is widely used in knative development but somehow very little advocacy has been done around this tool.

It allows you to:

  • build Go binaries
  • containerize them and publish to a registry
@xmlking
xmlking / golang.md
Last active September 1, 2023 17:29
Setup golang environment on MacOS without admin privileges

GoLang

Guide to setup golang development environment on MacOS without admin privileges

you you have local homebrew, install GoLang with brew install go and skip to Project step

for complete project with VSCode settings, refer hello project