Skip to content

Instantly share code, notes, and snippets.

View harshanarayana's full-sized avatar
🐍
🍒⛏

Harsha Narayana harshanarayana

🐍
🍒⛏
View GitHub Profile
@aojea
aojea / force cgo resolver
Last active May 31, 2022 09:43
localhost resolution in go
GODEBUG=netdns=cgo+2 go run listen.go
GOOS: linux
go package net: using cgo DNS resolver
go package net: hostLookupOrder(localhost) = cgo
net.LookupHost addrs: [::1 127.0.0.1] err: <nil>
go package net: hostLookupOrder(localhost) = cgo
Listener address: 127.0.0.1:8080
go package net: hostLookupOrder(localhost) = cgo
Dial remote address: 127.0.0.1:8080
@misraX
misraX / macOS Installing Vim From Source.md
Last active April 2, 2020 01:19
macOS Installing Vim From Source With Python3, Python2 and Ruby Support.

README file guides to install latest vim with python2, python3 and ruby using official source installers:

These methods have been tested in macOS sierra 10.12.6 and will likely not fail in most macOS new releases.

Tested with:

  • xcode-select version 2347.
  • Python 3.6.2.
  • Python 2.7.14.
  • VIM - Vi IMproved 8.0.
@arun-gupta
arun-gupta / readme.adoc
Last active December 8, 2021 05:04
Federated Kubernetes Cluster using Kops on AWS

Let’s set up a federation between earth and mars Kubernetes cluster on AWS.

Earth cluster

  1. Create hosted zone:

    ID=$(uuidgen) && \
       aws route53 create-hosted-zone \
       --name earth.kubernetes-aws.io \