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 / app.js
Created January 29, 2025 17:40
Build-in AI
/*********************************************************************
* Web AI Agent for Flights designed and coded by Jason Mayes 2025.
*--------------------------------------------------------------------
* Connect with me on social if questions or comments:
*
* LinkedIn: https://www.linkedin.com/in/webai/
* Twitter / X: https://x.com/jason_mayes
* Github: https://github.com/jasonmayes
* CodePen: https://codepen.io/jasonmayes
*********************************************************************/
@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