Skip to content

Instantly share code, notes, and snippets.

View i386kernel's full-sized avatar

Lakshya Nanjangud i386kernel

  • Sydney
  • 11:54 (UTC +11:00)
View GitHub Profile
@i386kernel
i386kernel / gist:db7e61e23ab0e7e557333bd732e1103c
Last active October 19, 2022 10:26
Centos Run Forever - Non-Persistent
apiVersion: apps/v1
kind: Deployment
metadata:
name: centos
labels:
app: centos
spec:
replicas: 1
template:
metadata:
@i386kernel
i386kernel / gist:add469f5304fc5b202ae27ba0a91389f
Last active October 19, 2022 09:55
Simple Centos OS Run Forever - Persistent
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: vsan-sc
annotations:
storageclass.kubernetes.io/is-default-class: "false"
provisioner: csi.vsphere.vmware.com
parameters:
datastoreurl: "ds:///vmfs/volumes/vsan:52025f2ef719e12e-467fbc05bf8a778f/"
fstype: ext4

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008
Compiled by Eric Pement - eric [at] pement.org version 0.27
Latest version of this file (in English) is usually at:
http://www.pement.org/awk/awk1line.txt
This file will also be available in other languages:
Chinese - http://ximix.org/translation/awk1line_zh-CN.txt
USAGE:
@i386kernel
i386kernel / setup_velero.sh
Last active September 15, 2021 12:47
This Shell script sets up Docker, Minio and Velero
#!/bin/bash
echo " "
echo "===============Script to setup Docker, Minio, NFS and Environment for Velero - Lakshya Nanjangud=============="
echo " "
echo " "
echo "---Downloading and Installing Docker---"
echo " "
sudo yum install docker
echo "---Running Docker Service---"
sudo systemctl start docker.service