Skip to content

Instantly share code, notes, and snippets.

Florian Motlik flomotlik

Block or report user

Report or block flomotlik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
flomotlik /
Created Feb 27, 2014
ElasticSearch install
unzip elasticsearch*.zip
cd elasticsearch*
bin/plugin -install elasticsearch/elasticsearch-analysis-phonetic/2.0.0.RC1
# Make sure to use the exact parameters you want for elasticsearch and give it enough sleep time to properly start up
nohup bash -c "./bin/elasticsearch 2>&1 &" && sleep 5; cat nohup.out
cd ~/clone
View gist:11207875
cd ~/bin
unzip ngrok*
flomotlik /
Created Apr 26, 2014
Check for branch name with Regex
echo $COMMIT_BRANCH | grep -E "^(\d\.?)+$" > /dev/null
if [ "$match_result" -eq "0" ]
# Exit if any command fails only when the deployment runs
set -e
flomotlik / use_mongo_2.4
Last active Aug 29, 2015
Run Mongo 2.4
View use_mongo_2.4
#Change the path to the downloaded file here to update the mongo version
tar xvzf mongo*
cd mongo*
mkdir ~/mongodb
# You can change the parameters mongodb starts with here
nohup bash -c "./bin/mongod --port 27018 --dbpath ~/mongodb 2>&1 &" && sleep 6; cat nohup.out
cd ~/clone
View Codeship OLD Privacy Policy
Your privacy is critically important to us. At Codeship we have a few fundamental principles:
We don’t ask you for personal information unless we truly need it. (We can’t stand services that ask you for things like your gender or income level for no apparent reason.)
We don’t share your personal information with anyone except to comply with the law, develop our products, or protect our rights.
We don’t store personal information on our servers unless required for the on-going operation of one of our services.
In our products, we aim to make it as simple as possible for you to control what’s visible to the public, seen by search engines, kept private, and permanently deleted.
Below is our privacy policy which incorporates these goals:
flomotlik / CodeDeploy policy
Last active Aug 29, 2015
CodeDeploy policies
View CodeDeploy policy
#Link to CodeDeploy IAM details:
"Version": "2012-10-17",
"Statement": [
"Effect": "Allow",
"Action": [
View docker_cleanup.bashrc
function docker_cleanup {
# Find all containers that have exited
containers=`docker ps -a -q | xargs`
if [[ $containers ]]; then
# Remove exited containers
docker stop $containers
docker rm $containers
echo "No containers to remove"
flomotlik / Public_Key.asc
Created Jul 20, 2015
Codeship PGP Public Key
View Public_Key.asc
Comment: GPGTools -
flomotlik / capybara.rb
Created Dec 3, 2010
Drop file into spec/support when using rspec and capybara
View capybara.rb
require 'capybara/rails'
require 'capybara/session'
Capybara.run_server = true
Capybara.default_selector = :css
Capybara.default_wait_time = 2
Capybara.ignore_hidden_elements = true
View gist:1162437
Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 540 bytes, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: /data/github/current/lib/github/config/failbot.rb:5: undefined method `setup' for Failbot:Module (NoMethodError)
remote: from /data/github/current/config/basic.rb:168:in `require'
remote: from /data/github/current/config/basic.rb:168
remote: from hooks/post-receive:13:in `require'
remote: from hooks/post-receive:13
You can’t perform that action at this time.