Skip to content

Instantly share code, notes, and snippets.

View abellmann's full-sized avatar

Andreas Bellmann abellmann

  • OPITZ CONSULTING Deutschland GmbH
View GitHub Profile
@abellmann
abellmann / install_certs.ps1
Last active July 4, 2017 12:33
Install certificates into java keystore
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
# provide a list of jdks, where the certificates will be added
$java_homes = @("C:\Program Files\Java\jdk1.8.0_121\jre", "C:\Atlassian\Bitbucket\Installation\5.0.1\jre")
# place the root cert in the directory of this script and call it root.cer
$root_cert = Join-Path $scriptPath "rootCa.cer"
# place the intermediat cert in the directory of this script and call it intermediate.cer
$intermediate_cert = Join-Path $scriptPath "intermediateCa.cer"
foreach($java_home in $java_homes)
{
@abellmann
abellmann / install-git-completion.sh
Created July 25, 2011 21:00 — forked from johngibb/install-git-completion.sh
Mac OS X - Install Git Completion
GIT_VERSION=`git --version | awk '{print $3}'`
URL="https://raw.github.com/git/git/v$GIT_VERSION/contrib/completion/git-completion.bash"
PROFILE="$HOME/.profile"
echo "Downloading git-completion for git version: $GIT_VERSION..."
if ! curl "$URL" --silent --output "$HOME/.git-completion.bash"; then
echo "ERROR: Couldn't download completion script. Make sure you have a working internet connection." && exit 1
fi