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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<version>2.5.1</version> | |
<executions> | |
<execution> | |
<id>unpack-finch-dist</id> | |
<phase>package</phase> | |
<goals> | |
<goal>unpack</goal> |
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
gautamr@gautamr-inspiron-5458:~/Downloads$ sudo mkdir /usr/lib/jvm | |
gautamr@gautamr-inspiron-5458:~/Downloads$ sudo tar -xvf jdk-8u171-linux-x64.tar.gz -C /usr/lib/jvm/ | |
# Before addin this jdk as an alternative, you can see that the new alternative is not listed: | |
sudo update-alternatives --query java | |
sudo update-alternatives --query javac | |
//update-alternatives - maintain symbolic links determining default commands | |
sudo update-alternatives --list java | |
// --install link name path priority |
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
sudo apt-get install texlive |
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
mvn eclipse:eclipse -DdownloadSources=true | |
mvn clean package -Dmaven.test.skip=true |
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
spring init --build=gradle --java-version=1.8 --dependencies web,security spring-angular-demo |
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
# | |
# Cutom Environment Variables for Tomcat | |
# | |
############################################ | |
export JAVA_HOME=/usr/lib/jvm/java-7-oracle/jre | |
export PATH=${JAVA_HOME}/bin:${PATH} | |
############################################ | |
# | |
# JAVA_OPTS |
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 | |
# ================================================================== | |
# ______ __ _____ | |
# /_ __/___ ____ ___ _________ _/ /_ /__ / | |
# / / / __ \/ __ `__ \/ ___/ __ `/ __/ / / | |
# / / / /_/ / / / / / / /__/ /_/ / /_ / / | |
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/ | |
# Multi-instance Apache Tomcat installation with a focus | |
# on best-practices as defined by Apache, SpringSource, and MuleSoft |
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
# add user; you need to set all things manually | |
useradd gautamr | |
# better to do this; home etc. will be created | |
adduser gautamr | |
# set the password for gautamr | |
passwd gautamr | |
# add sudo permission to gautamr | |
sudo usermod -aG sudo gautamr |
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 | |
CATALINA_BASE_APPS="/home/XXX/apache/tomcat-7.0.70-instance-XXX" | |
APP_DIST="$WORKSPACE/XXX/XXX" | |
APP="XXX" | |
PID_FILE="$CATALINA_BASE_APPS/tomcat7-XXX.pid" | |
if [ -f "$PID_FILE" ] | |
then | |
echo "PID file exists: $PID_FILE" | |
PID=$(<"$PID_FILE") |
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
;; Maps are function | |
(def inventors {:Lisp "McCarthy" :Clojure "Hickey"}) | |
(inventors :List) | |
;; -> McCarthy | |
;; But if you want to get something agianst nil then use get | |
(get inventors :Scala "Who?") | |
;; -> Who? | |
;; keywords are function; so following two give same output |
OlderNewer