Skip to content

Instantly share code, notes, and snippets.

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.
@eyalgo
eyalgo / idea-install.sh
Last active August 29, 2015 14:17
Installing IntelliJ
# 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
@eyalgo
eyalgo / install-jdk.sh
Created March 25, 2015 22:13
Install JDK
# 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
@eyalgo
eyalgo / jdk_home.sh
Last active August 29, 2015 14:17
File to set JDK Home when logging in
# Put this file under /etc/profile.d
export JAVA_HOME=/usr/java/latest
export PATH=$PATH:JAVA_HOME/bin
@eyalgo
eyalgo / install-eclipse.sh
Last active August 29, 2015 14:17
How to install eclipse on linux
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
@eyalgo
eyalgo / eclipse.sh
Created March 25, 2015 23:02
eclipse executable
#!/bin/sh
# name it eclipse
# put it in /usr/bin
# chmod 755 /usr/bin/eclipse
export ECLIPSE_HOME="/opt/eclipse/latest"
$ECLIPSE_HOME/eclipse $*
@eyalgo
eyalgo / eclipse.desktop
Created March 25, 2015 23:18
eclipse desktop for linux
# create /usr/local/share/applications/eclipse.desktop
# Paste the following
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse Luna 4.4.2
Exec=eclipse
Icon=/opt/eclipse/latest/icon.xpm
Terminal=false
@eyalgo
eyalgo / maven-install.sh
Created March 25, 2015 23:39
install maven
# root
su -
# installation location
mkdir /opt/maven
# unzip
tar -zxvf /path/.../apache-maven-3.3.1-bin.tar.gz -C /opt/maven
# link
@eyalgo
eyalgo / maven-env.sh
Last active August 29, 2015 14:17
maven environment
# put it in /etc/profile.d
export M2_HOME=/opt/maven/latest
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
@eyalgo
eyalgo / install-git.sh
Created March 26, 2015 00:04
install git from source
su -
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
yum install gcc perl-ExtUtils-MakeMaker
yum remove git
# Download source
# check latest version in http://git-scm.com/downloads
cd /usr/src