Skip to content

Instantly share code, notes, and snippets.

View kimkimhun's full-sized avatar

Chakkrawut Kuntakum kimkimhun

View GitHub Profile
@kimkimhun
kimkimhun / grafana custom.ini
Created August 15, 2020 01:32 — forked from mvadu/grafana custom.ini
nginx config for using grafana, Influxdb via reverse proxy with authentication
# The full public facing url
#root_url = %(protocol)s://%(domain)s:%(http_port)s/
root_url = http://localhost:80/grafana/
@kimkimhun
kimkimhun / main.go
Created October 27, 2019 06:57 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@kimkimhun
kimkimhun / kubectl.md
Created August 6, 2019 03:02 — forked from so0k/kubectl.md
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@kimkimhun
kimkimhun / introrx.md
Created April 24, 2019 05:14 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@kimkimhun
kimkimhun / install-kops.sh
Created February 20, 2019 13:10 — forked from yetanotherchris/install-kops.sh
Install Kops and prequisites on Ubuntu
# Install AWS CLI, Kubectl, Kops
sudo apt update
sudo apt install -y awscli
sudo snap install kubectl --classic
curl -LO https://github.com/kubernetes/kops/releases/download/1.7.0/kops-linux-amd64
chmod +x kops-linux-amd64
mv ./kops-linux-amd64 /usr/local/bin/kops
# Setup the AWS profile
aws config
@kimkimhun
kimkimhun / tmux-cheatsheet.markdown
Last active January 31, 2019 07:41 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname