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
# installs to /opt/gradle | |
# existing versions are not overwritten/deleted | |
# seamless upgrades/downgrades | |
# $GRADLE_HOME points to latest *installed* (not released) | |
gradle_version=2.9 | |
wget -N https://services.gradle.org/distributions/gradle-${gradle_version}-all.zip | |
sudo unzip -foq gradle-${gradle_version}-all.zip -d /opt/gradle | |
sudo ln -sfn gradle-${gradle_version} /opt/gradle/latest | |
sudo printf "export GRADLE_HOME=/opt/gradle/latest\nexport PATH=\$PATH:\$GRADLE_HOME/bin" > /etc/profile.d/gradle.sh | |
. /etc/profile.d/gradle.sh |
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
%% File: `plainnat_simple.bst' | |
%% A modification of `plainnat.bst' for use with natbib package. | |
%% Hides URL, DOI, ISSN, ISBN and Note in Bibliography. | |
%% | |
%% Original Copyright 1993-2007 Patrick W Daly | |
%% Max-Planck-Institut f\"ur Sonnensystemforschung | |
%% Max-Planck-Str. 2 | |
%% D-37191 Katlenburg-Lindau | |
%% Germany | |
%% E-mail: daly@mps.mpg.de |
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
# Ansible EC2 external inventory script settings | |
# | |
[ec2] | |
# to talk to a private eucalyptus instance uncomment these lines | |
# and edit edit eucalyptus_host to be the host name of your cloud controller | |
#eucalyptus = True | |
#eucalyptus_host = clc.cloud.domain.org |
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
# do not rely on specific architecture | |
BuildArch: noarch | |
# suppress automatic detection of requirements | |
AutoReqProv: no |
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
# download and install | |
antversion=1.7.1 | |
wget http://archive.apache.org/dist/ant/binaries/apache-ant-${antversion}-bin.tar.gz | |
sudo tar xvfvz apache-ant-${antversion}-bin.tar.gz -C /opt | |
sudo ln -sfn /opt/apache-ant-${antversion} /opt/ant | |
sudo sh -c 'echo ANT_HOME=/opt/ant >> /etc/environment' | |
sudo ln -sfn /opt/ant/bin/ant /usr/bin/ant | |
# check installation | |
ant -version |
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/bash | |
JDK_UPDATE_VERSION=144 | |
JDK_BUILD_VERSION=b01 | |
JDK_HASH=090f390dda5b47b9b721c7dfaa008135 | |
echo "installing Oracle jdk1.8.0_${JDK_UPDATE_VERSION}..." | |
wget -N --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u$JDK_UPDATE_VERSION-$JDK_BUILD_VERSION/$JDK_HASH/jdk-8u$JDK_UPDATE_VERSION-linux-x64.tar.gz | |
sudo mkdir -p /opt/jdk | |
sudo tar -zxf jdk-8u${JDK_UPDATE_VERSION}-linux-x64.tar.gz -C /opt/jdk | |
sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_${JDK_UPDATE_VERSION}/bin/java 100 |
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
cscript /nologo wget.js http://example.com |
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/bash | |
# | |
# existing versions are not overwritten/deleted | |
# seamless upgrades/downgrades | |
# $M2_HOME points to latest *installed* (not released) | |
# config | |
mirror=http://mirror.cc.columbia.edu/pub | |
mvnversion=3.0.5 |
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
# architecture # | |
lscpu | |
# release # | |
# RHEL, CentOS | |
cat /etc/redhat-release | |
# Ubuntu | |
cat /etc/issue | |
lsb_release -a |
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/bash | |
# jdk | |
sudo su root | |
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u73-b02/jdk-8u73-linux-x64.tar.gz | |
tar -zxf jdk-8u73-linux-x64.tar.gz -C /opt | |
update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_73/bin/java 100 | |
echo 'export JAVA_HOME=/opt/jdk1.8.0_73' >> /home/ubuntu/.bash_profile | |
rm jdk-8u73-linux-x64.tar.gz |
NewerOlder