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 / 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 August 9, 2024 04:25
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 / 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 / index.html
Last active June 15, 2024 11:01
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>
@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;