Skip to content

Instantly share code, notes, and snippets.

View vikaschoudhary16's full-sized avatar

Vikas Choudhary (vikasc) vikaschoudhary16

View GitHub Profile
@vikaschoudhary16
vikaschoudhary16 / backtrace.h
Created July 4, 2020 05:52
envoy-debugging
vikas@ proxy ((HEAD detached at d2d90deb)) $ cat extensions/metadata_exchange/backtrace.h
#pragma once
#include <functional>
#include "absl/debugging/stacktrace.h"
#include "absl/debugging/symbolize.h"
#include "common/common/logger.h"
//#include "common/common/version.h"
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: sample-device-plugin
namespace: kube-system
labels:
k8s-app: sample-device-plugin
spec:
selector:
matchLabels:
@vikaschoudhary16
vikaschoudhary16 / install-tmux
Created January 6, 2018 12:05 — forked from relaxdiego/install-tmux
Install tmux 2.2 on CentOS 7.1
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/local
make
sudo make install
@vikaschoudhary16
vikaschoudhary16 / print_file_line.go
Created December 23, 2017 04:25
golang file_line caller prints
Add this to pkg and this print:
@vikaschoudhary16
vikaschoudhary16 / openshift-aio.sh
Created September 7, 2017 11:11 — forked from sjenning/openshift-aio.sh
local openshift AIO
_output/local/bin/linux/amd64/openshift start --write-config=openshift.local.config
sudo _output/local/bin/linux/amd64/openshift start --master-config openshift.local.config/master/master-config.yaml --node-config openshift.local.config/node-<node-name>/node-config.yaml
export KUBECONFIG=openshift.local.config/master/admin.kubeconfig
export PATH=$PATH:$PWD/_output/local/bin/linux/amd64
oc get nodes (should work)