This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias gdm="git diff master" | |
alias gmm="git checkout master; git pull; git checkout -;git merge master;" | |
alias dka='docker rm -f $(docker ps -a -q); ' | |
alias reload="mvn clean package -DskipTests; ./build.sh; ./start.sh;" | |
alias idea="open -a IntelliJ\ IDEA" | |
alias java8='export JAVA_HOME=`/usr/libexec/java_home -v 1.8`' | |
alias java11='export JAVA_HOME=`/usr/libexec/java_home -v 11`' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Use this script to test if a given TCP host/port are available | |
TIMEOUT=15 | |
QUIET=0 | |
echoerr() { | |
if [ "$QUIET" -ne 1 ]; then printf "%s\n" "$*" 1>&2; fi | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Class node is defined as : | |
class Node | |
int val; //Value | |
int ht; //Height | |
Node left; //Left child | |
Node right; //Right child | |
*/ | |
static int height(Node node) { |