Skip to content

Instantly share code, notes, and snippets.

View rarchk's full-sized avatar

Ronak Kogta rarchk

View GitHub Profile
@rarchk
rarchk / auth.py
Last active May 11, 2020 15:30
auth.py
import argparse
import sys
import time
import requests
def ParseConfig(argv):
"""Parse configuration from commmand line."""
parent_parser = argparse.ArgumentParser(
@rarchk
rarchk / service-checklist.md
Created September 27, 2019 00:34 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@rarchk
rarchk / istio.md
Last active October 29, 2017 08:07
ISTIO meetup notes

ISTIO

Socket activation vs Signals

Signals provide events in non-local addressable space. They work well with local events and local unix procedures. But not well for cluster. There was a need of distributed signals.

Socket activation is one way, where modern daemon handles events.

Apline vs CentOS images

@rarchk
rarchk / linkerd.md
Created October 29, 2017 05:36
Fosscafe Linkerd Meetup notes

LinkerD Meetup

Host based environment

Client (curl)-------------> Service/Server at http port 80/8080 (192.168.1.1)

Let's talk about communication

  • how an http level application will keep track of request and response.
  • we know that how it happens at tcp/ip level. We delegate lot of things to them.
  • But we want to achieve this functionality at application level. That is the world of microservices
  • arp -a

Keybase proof

I hereby claim:

  • I am rarchk on github.
  • I am rarchk (https://keybase.io/rarchk) on keybase.
  • I have a public key whose fingerprint is 6EEF C98D 8E30 813C EA47 8CFB F620 AB1B 3672 E16D

To claim this, I am signing this object:

# Fedora 25 dependencies
sudo dnf install automake autoconf libtool gettext intltool gperf libcap-devel libmount-devel xmlto -y
# Setting up SystemD
git clone https://github.com/coreos/systemd
cd systemd
git checkout v231
./autogen.sh
./configure
make
# Ubunut 16.XX dependencies
sudo apt-get install automake autoconf libtool gettext autotools-dev intltool gperf libcap-dev libmount-dev xsltproc xmlto -y
# Setting up SystemD
git clone https://github.com/coreos/systemd
cd systemd
git checkout v231
./autogen.sh
./configure
make
@rarchk
rarchk / maps.go
Created February 23, 2017 03:36
Go
/* Simple Program to show Maps handeling in go */
package main
import(
"fmt"
)
func main() {
/* Creating a map with string key and int value */
fooMap := make(map[string]int);
@rarchk
rarchk / array.go
Created February 23, 2017 03:36
Go Arrays
/* Simple Program to show Array handeling in go */
package main
import(
"fmt"
)
func main() {
/* Playing with array */
var fooArray [3]int;
@rarchk
rarchk / variables.go
Last active February 23, 2017 03:36
Go Variables
/* Simple Program to show Variable handeling in go */
package main
import(
"fmt"
"strconv"
)
/* Declaring variables */
var fooString1 string ="ho ho";
var fooString2, fooString3 = "ram" , "bo";