Skip to content

Instantly share code, notes, and snippets.

View yogendra's full-sized avatar

Yogendra Rampuria - Yogi yogendra

View GitHub Profile
@yogendra
yogendra / README.md
Last active February 17, 2021 12:18 — forked from rhardt-pivotal/node-ca-updater-daemonset.yaml
add a trusted CA to all the worker nodes in a TKG cluster

Kubernetes - Private Registry

When you use your own custom private registry, you may end up using your own private CA signed or self signed certificates. This will cause container runtime to complain about untrusted cert, etc.

Here is a simple code that can fix this for you.

kubectl apply -f https://gist.github.com/yogendra/9937ead35a4ceb6f58ab5c4dc181cec3/node-ca-updater-daemons.yaml
@yogendra
yogendra / README.md
Last active April 8, 2020 07:57 — forked from dwallraff/jumpbox.sh
Personal jumpbox bootstrap script -- curl -L dwallraff.com/jumpbox | bash

Jumpbox

This gist initialized a jumpbox

@yogendra
yogendra / kubernetes.md
Created November 15, 2018 17:02 — forked from carlessanagustin/kubernetes.md
Kubernetes tutorial steps

1. Create cluster

Cluster up and running

minikube version
minikube start
kubectl version
@echo on & @setlocal enableextensions
@echo =========================
@echo Turn off the time service
net stop w32time
@echo ======================================================================
@echo Set the SNTP (Simple Network Time Protocol) source for the time server
w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org"
@echo =============================================
@echo ... and then turn on the time service back on
net start w32time
@yogendra
yogendra / build.xml
Last active May 26, 2022 05:43 — forked from anonymous/build.xml
Simple Ant Build Script for Eclipse Dynamic Web Project #java #ant #snippet
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="package" name="PROJECT_NAME">
<!--
This script assumes:
1) CATALINA_HOME environment variable points to tomcat's directory
2) Following Folder Structure
./ (project root)
|- src/ (project.src.dir - source folder)
|- build/
| |- classes/ (project.classes.dir)
public abstract class AbstractMathOperation implements MathOperation{
public void preOperate(Integer... values){
System.out.println("This is a pre operation ");
}
public void postOperate(Integer... values){
System.out.println("This is a post operation ");
}
public Integer operate(Integer... values){
preOperate(values);
package me.yogedra.test;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
public class ReadWriteObjects {