Skip to content

Instantly share code, notes, and snippets.


Bharat Kunwar brtknr

Block or report user

Report or block brtknr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
brtknr /
Created Apr 12, 2019 — forked from amshinde/
K8s Raw Block storage support with Kata

Running Kata Containers in Minikube for Kubernetes 1.14+

minikube is an easy way to try out a kubernetes (k8s) cluster locally. It utilises running a single node k8s stack in a local VM.

Kata Containers is an OCI compatible container runtime that runs container workloads inside VMs.

Wouldn't it be nice if you could use kata under minikube to get an easy out of the box experience to try out Kata? Well, turns out with a little bit of config and setup that is already supported, you can!

brtknr / default.partial
Created Nov 28, 2018
nginx config to do proxy_pass to a locally hosted server (/etc/nginx/sites-available/default)
View default.partial
location /bus/ {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
rewrite ^/bus(/.*)$ $1 break;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
brtknr /
Created Nov 9, 2018 — forked from lazywei/
Install mosh server without root permission
# this script does absolutely ZERO error checking. however, it worked
# for me on a RHEL 6.3 machine on 2012-08-08. clearly, the version numbers
# and/or URLs should be made variables. cheers,
mkdir mosh
cd mosh
brtknr /
Last active Oct 16, 2018
DevStack post ./ config
#!/usr/bin/env bash
# Sample ```` for user-configurable tasks to run automatically
# at the successful conclusion of ````.
# NOTE: Copy this file to the root DevStack directory for it to work properly.
# This is a collection of some of the things we have found to be useful to run
# after ```` to tweak the OpenStack configuration that DevStack produces.
# These should be considered as samples and are unsupported DevStack code.
brtknr / .vimrc
Created Sep 19, 2018
Centos .vimrc dump
View .vimrc
" Tab settings
syntax on
" General tab options
set tabstop=2 shiftwidth=2 softtabstop=2 expandtab
" Python tab options
autocmd FileType python setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab foldmethod=indent
set rtp+=/usr/local/opt/fzf
set hlsearch
set clipboard=external
brtknr / config
Created Sep 19, 2018
My .ssh/config
View config
Host *
AddKeysToAgent yes
ServerAliveInterval 120
Protocol 2
User brtknr
IdentityFile ~/.ssh/id_rsa
Port 29418
Host eod
User hpckunw1
brtknr / .tmux.conf
Created Jun 17, 2018
My tmux configuration dump on MacBook
View .tmux.conf
# Configure your default shell, Zsh in my case.
set -g default-shell $SHELL
# Override the default command to use `reattach-to-user-namespace` for
# everything.
set -g default-command "reattach-to-user-namespace -l ${SHELL}"
# Bind ']' to use pbbaste
bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
# Copyright 2014 The Kubernetes Authors All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
View cloud-init-output.log
Cloud-init v. 0.7.9 running 'init-local' at Tue, 29 May 2018 12:45:06 +0000. Up 22.23 seconds.
Cloud-init v. 0.7.9 running 'init' at Tue, 29 May 2018 12:45:11 +0000. Up 27.36 seconds.
ci-info: ++++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++
ci-info: +--------+------+-----------+-----------------+-------+-------------------+
ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
ci-info: +--------+------+-----------+-----------------+-------+-------------------+
ci-info: | eth0: | True | | | . | fa:16:3e:47:48:50 |
ci-info: | eth0: | True | . | . | d | fa:16:3e:47:48:50 |
ci-info: | lo: | True | | | . | . |
ci-info: | lo: | True | . | . | d | . |
You can’t perform that action at this time.