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
#!/usr/bin/env bash | |
# usage: | |
# cd /directory/with/git/repo | |
# clonebranch <branchname> | |
# => branch is cloned to /directory/with/git/repo/../reponame-branchname | |
git clone -b $1 file://${PWD} ${PWD}/../${PWD##*/}-$1 |
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
/* Custom MailMate (http://freron.com) layout for Mailboxes view. Extends the installed widescreen | |
layout by adding a vertical thread arcs view at the right. Save it to | |
"~/Library/Application Support/MailMate/Resources/Layouts/Mailboxes/widescreen_with_thread_arcs.plist" | |
and it will be available after a restart of MailMate. */ | |
{ | |
name = "Widescreen with Thread Arcs"; | |
rootViewer = | |
{ | |
viewerType = "MmSplitView"; |
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
# 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 | |
# | |
# 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
/** | |
* Gets the stack trace from the given throwable. | |
* | |
* @param throwable | |
* a throwable | |
* @return stack trace as string | |
*/ | |
public static String getStackTrace(Throwable throwable) { | |
final StringWriter stringWriter = new StringWriter(); | |
throwable.printStackTrace(new PrintWriter(stringWriter)); |
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
# 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
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
# 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 |
OlderNewer