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 / 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 / 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

@xmlking
xmlking / docker-compose.yml
Last active March 24, 2023 01:12
cassandra healthcheck and dependency for docker compose
version: '2.1'
services:
cassandra:
image: cassandra:latest
networks:
- reactive-network
volumes:
- cassandra_data:/var/lib/cassandra
# - ${PWD}/data/cassandra/data:/var/lib/cassandra
@xmlking
xmlking / app.js
Last active March 7, 2023 14:52
angular authentication with angular modules: http-auth-interceptor, angular-growl , angular-ui : UI-Router & UI-Bootstrap , restangular
angular.module('ConsoleUIApp', ['ui.router','ui.bootstrap','ngAnimate','angular-growl', 'restangular','http-auth-interceptor'])
.config(function ($stateProvider, $urlRouterProvider, growlProvider, RestangularProvider, $httpProvider) {
// For any unmatched url, redirect to /state1
$urlRouterProvider.otherwise("/home");
$stateProvider
.state('home', {
url: "/home",
templateUrl: "views/home.html",
@xmlking
xmlking / kubernetes.md
Last active November 12, 2022 11:56
Kubernetes Cheat Sheet

Kubernetes

Install

Prerequisites

  1. Bash v5+ checkout Upgrading Bash on macOS
  2. bash-completion@2

Install Docker and Kubernetes(k8s)

@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 / 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 / async-generator-example.ts
Created February 24, 2019 00:22
async generator example
// @ts-ignore
const fetch = require('node-fetch');
function delay(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function* getBooksPaged({ q, pageSize, lastPageIndex }) {
let currentIndex = 0;
let isDone = false;
@xmlking
xmlking / index.html
Last active November 6, 2020 12:28
web-bluetooth demo with Polar H7 Heart Rate Monitor *** need Chrome v54 ***
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles.css">
<script src="script.js"></script>
</head>
<body>
<div class='hr-table'>
<div class='hr-row'>
<div class='hr-cell'>
<div class='hr-header'>Heart Rate:</div>