Skip to content

Instantly share code, notes, and snippets.

View njayachandran's full-sized avatar

Jayachandran Natarajan njayachandran

View GitHub Profile
kubectl get services # List all services
kubectl get pods # List all pods
kubectl get nodes -w # Watch nodes continuously
kubectl version # Get version information
kubectl cluster-info # Get cluster information
kubectl config view # Get the configuration
kubectl describe node <node> # Output information about a node
kubectl get pods # List the current pods
kubectl describe pod <name> # Describe pod <name>
kubectl get rc # List the replication controllers
@njayachandran
njayachandran / README.md
Last active July 14, 2017 09:04 — forked from mmasashi/README.md
Install Oracle instant client (sqlplus) v12.1 on MacOSX

Install Oracle instant client (sqlplus) on MacOSX

  1. Get Oracle instant client for MacOSX
  1. Unarchive downloaded zip files into a same directory
  • ex: $HOME/Downloads/instantclient_12_1
  1. Create install.sh and copy the following code and past it on that file.
# $OpenBSD: sshd_config,v 1.73 2005/12/06 22:38:28 reyk Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
@njayachandran
njayachandran / script.sh
Last active October 10, 2016 16:28
Test Script
echo "Hello world"
if [ $# -gt 0 ]; then
for parameter in $@
do
echo $parameter;
done
fi
echo $USER > /tmp/postProcessingOutput.log
echo $USER || $USERNAME;