This file contains hidden or 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
| # Login to server on which java application is running | |
| # Get Java PID | |
| ps -ef | grep java | |
| # Take Heapdump using commandline tool jmap which ships with jdk | |
| # jmap -dump:format=b,file=<filepath> <pid> |
This file contains hidden or 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
| # Centos 7.3 comes with 1.8.3 | |
| # so update git from centos repo | |
| yum update git | |
| # it shows nothing to update | |
| # we download git source and build and install latest git on Centos 7.3 |
This file contains hidden or 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
| Maven : My Guide | |
| Based on my experiences and learnings | |
| https://en.wikipedia.org/wiki/Apache_Maven | |
| https://maven.apache.org/what-is-maven.html |
This file contains hidden or 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 hidden or 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
| <properties> | |
| <maven.compiler.target>1.8</maven.compiler.target> | |
| <maven.compiler.source>1.8</maven.compiler.source> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
| <failOnMissingWebXml>false</failOnMissingWebXml> | |
| </properties> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1"> | |
| <display-name>my-webapp-name</display-name> |
This file contains hidden or 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
| /** | |
| * File : ${file_name} | |
| * Version : 1.0 | |
| * Date : ${date} | |
| * Author : ${user} | |
| * | |
| This file is part of ${project_name}. | |
| ${project_name} is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or |
This file contains hidden or 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
| # go to https://maven.apache.org/download.cgi | |
| # download latest version Binary tar.gz archive file | |
| # copy /opt directory | |
| cd /opt | |
| # extract tar file , replace x.x with downloaded version | |
| tar xzvf apache-maven-x.x.0-bin.tar.gz |
This file contains hidden or 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
| mongo "mongodb://cluster0-shard-00-00-ygicr.mongodb.net:27017,cluster0-shard-00-01-ygicr.mongodb.net:27017,cluster0-shard-00-02-ygicr.mongodb.net:27017/test?replicaSet=Cluster0-shard-0" --authenticationDatabase admin --ssl --username mahamuniraviraj --password <PASSWORD> |
This file contains hidden or 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
| package com.jelies.spring3tomcat7.config.quartz; | |
| import org.quartz.spi.TriggerFiredBundle; | |
| import org.springframework.beans.factory.config.AutowireCapableBeanFactory; | |
| import org.springframework.context.ApplicationContext; | |
| import org.springframework.context.ApplicationContextAware; | |
| import org.springframework.scheduling.quartz.SpringBeanJobFactory; | |
| /** | |
| * This JobFactory autowires automatically the created quartz bean with spring @Autowired dependencies. |
This file contains hidden or 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
| // Commands are starting with # | |
| Step 1: Setup Yum Repository | |
| Firstly we need to configure yum repository in our system. Create a new repo file /etc/yum.repos.d/wandisco-svn.repo and add following content as per your operating system version. | |
| [WandiscoSVN] |
NewerOlder