Skip to content

Instantly share code, notes, and snippets.

View arunvel1988's full-sized avatar

Arunvel Arunachalam arunvel1988

View GitHub Profile
@arunvel1988
arunvel1988 / set_env_var.sh
Created June 25, 2022 02:33 — forked from pykong/set_env_var.sh
Script to permanently set environment variables under Linux (Ubuntu 16.04 and later). Run as sudo. Usage: sudo set_env_var.sh key value
#!/bin/bash
# run under sudo
# script for permanently setting environment variables, found here:
# https://stackoverflow.com/questions/13046624/how-to-permanently-export-a-variable-in-linux
add_env_var()
{
KEY=$1
VALUE=$2
echo "export "$KEY"="$VALUE>>~/.bashrc

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@arunvel1988
arunvel1988 / nginx-auth.yaml
Created August 20, 2020 09:32 — forked from carlosedp/nginx-auth.yaml
NGINX Keycloak Authentication
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: nginx