Skip to content

Instantly share code, notes, and snippets.

View mlocher's full-sized avatar

Marko Locher mlocher

View GitHub Profile
@mlocher
mlocher / python3_virtualenv.sh
Last active August 29, 2015 14:04
python3_virtualenv
#!/bin/sh
virtualenv -p `which python3` ~/.python3_venv
. ~/.python3_venv/bin/activate
#!/bin/sh
# assumes a clean install on a fresh linux box.
# for use w/ codeship.io
set -e
set -u
# a reference to the cloned repository's path
PWD=`pwd`
METEOR_APP_PATH="$PWD/MeteorApp"
@mlocher
mlocher / 01_Readme.md
Last active August 29, 2015 14:06
Codeship Webhook Multiplexer
@mlocher
mlocher / install_neo4j.sh
Last active August 29, 2015 14:06
Neo4j - Download and start Neo4j on e.g. a Codeship build box
#/bin/bash
VERSION="2.1.4"
PWD=`pwd`
cd ~/
wget -O neo4j-community.tar.gz http://neo4j.com/artifact.php?name=neo4j-community-${VERSION}-unix.tar.gz
tar -xzf neo4j-community.tar.gz
@mlocher
mlocher / install_phalcon.sh
Last active October 23, 2015 17:17
Install Phalcon
#!/bin/bash
PHP_VERSION="5.6"
PHALCON_VERSION="1.3.2"
PWD=`pwd`
cd ~
rm -rf ~/cphalcon
phpenv global $PHP_VERSION
@mlocher
mlocher / deploy_meteor.sh
Last active August 29, 2015 14:06 — forked from bradvogel/deploy_production.sh
Deploy via Meteor
# This script is used to deploy a Meteor 0.9 project to Modulus.io hosting using CodeShip.
# Install Meteor.
curl https://install.meteor.com > ./install_meteor
sed -i'' -e 's/PREFIX=.*/PREFIX="$HOME"/g' ./install_meteor
chmod u+x ./install_meteor
./install_meteor
# Install Modulus.
npm install -g modulus
@mlocher
mlocher / install_gradle
Last active August 29, 2015 14:07 — forked from JMBattista/install_gradle
Install Gradle
#!/bin/bash
# Allows using Gradle 2.1 with http://codeship.io
GRADLE=gradle-2.1-bin
GRADLE_URL="https://services.gradle.org/distributions/$GRADLE.zip"
wget -N $GRADLE_URL
mkdir -p ~/gradle
unzip $GRADLE.zip -d ~
@mlocher
mlocher / install_dart.sh
Created October 16, 2014 11:42
Install Dart
#!/bin/bash
# go to https://www.dartlang.org/tools/download_archive/ and choose
# the revision you want to download. use "latest" to always grab the
# latest stable version.
REV="latest"
wget https://storage.googleapis.com/dart-archive/channels/stable/release/${REV}/sdk/dartsdk-linux-x64-release.zip
unzip -o dartsdk-linux-x64-release.zip -d ~
@mlocher
mlocher / post-merge
Last active August 29, 2015 14:07 — forked from hcurotta/post-merge
BitBucket post-merge hook
#!/bin/bash
branch_name=$(git symbolic-ref --short HEAD)
if [ "$branch_name" == 'dev' ] || [ "$branch_name" == 'staging' ]
then
git commit --allow-empty -m 'empty commit to trigger deployment'
fi
@mlocher
mlocher / push.sh
Created October 30, 2014 17:59
Push a Mercurial repository to Heroku
pip install hg-git
echo "[extensions]" >> ~/.hgrc
echo "hgext.bookmarks =" >> ~/.hgrc
echo "hggit =" >> ~/.hgrc
echo "[alias]" >> ~/.hgrc
echo "push-heroku = push git+ssh://[email protected]/app.git" >> ~/.hgrc
PYTHONPATH=$(dirname $(which python))/../lib/python2.7/site-packages/
hg push-heroku
check_url "http://app.herokuapp.com"