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
import org.slf4j.Logger | |
import com.my.ProcessingJobResult | |
def Logger logger = jobLogger | |
//ProcessingJobResult is proprietary | |
def ProcessingJobResult result = jobResult | |
try { | |
logger.info("Deleting old webapps from CI - START") | |
def numberOfDirectoriesToKeep = 4 // Can be externalized to input parameter |
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
package eyalgo; | |
import static org.hamcrest.Matchers.equalTo; | |
import static org.mockito.Matchers.anyString; | |
import static org.mockito.Matchers.argThat; | |
import static org.mockito.Mockito.inOrder; | |
import static org.mockito.Mockito.mock; | |
import static org.mockito.Mockito.never; | |
import static org.mockito.Mockito.times; | |
import static org.mockito.Mockito.verify; |
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
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<source>1.8</source> | |
<target>1.8</target> | |
</configuration> | |
</plugin> |
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
# http://docs.mongodb.org/manual/reference/mongo-shell/ | |
# under monog installation | |
mongo | |
# Print a list of all databases on the server | |
show dbs | |
show collections |
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
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
import rx.Observable; | |
import com.couchbase.client.java.AsyncBucket; |
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 the following in your jvm arguments: | |
-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=3614 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false | |
(the first two are a must. I am not sure about the others…) | |
In JAVA_HOME/bin, you will find jmc.exe | |
Run it. | |
You can then configure your flight control. |
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
# root | |
su - | |
# Create IntelliJ location | |
mkdir -p /opt/idea | |
# Untar installation | |
tar -xvzf /path/.../ideaIC-14.1.tar.gz -C /opt/idea | |
# Create link for latest IntelliJ |
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
# root | |
su - | |
# Install JDK in system | |
rpm -Uvh /path/.../jdk-8u40-linux-i586.rpm | |
# Use correct Java | |
alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 2000000 | |
alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 2000000 | |
alternatives --install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 2000000 |
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
# Put this file under /etc/profile.d | |
export JAVA_HOME=/usr/java/latest | |
export PATH=$PATH:JAVA_HOME/bin |
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
su - | |
# create eclipse location | |
mkdir /opt/eclipse | |
# Unzip it | |
tar -xvzf /path/.../eclipse-java-luna-SR2-linux-gtk.tar.gz -C /opt/eclipse | |
# create link | |
ln -s /opt/eclipse/eclipse/ /opt/eclipse/latest |