This file contains hidden or 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
FROM java:7 | |
MAINTAINER Velrok | |
RUN mkdir -p /opt/mb | |
ADD ./target/mb.jar /opt/mb/mb.jar | |
ADD ./VERSION /opt/mb/VERSION | |
ADD ./public /opt/mb/public | |
WORKDIR /opt/mb |
This file contains hidden or 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 | |
set -e | |
lein ring uberjar | |
./increment_version.rb $@ | |
docker build --rm=true -t registry.giantswarm.io/velrok/mb:$(cat ./VERSION) . | |
docker push registry.giantswarm.io/velrok/mb:$(cat ./VERSION) |
This file contains hidden or 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
swarm delete -y mb | |
swarm create --var=version=$(cat ./VERSION) swarm.json | |
sleep 1 | |
swarm start mb | |
sleep 1 | |
swarm status mb |
This file contains hidden or 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
{ | |
"app_name": "mb", | |
"services": [ | |
{ | |
"service_name": "mb-service", | |
"components": [ | |
{ | |
"component_name": "mb", | |
"image": "registry.giantswarm.io/velrok/mb:$version", | |
"ports": [ "3000/tcp" ], |
This file contains hidden or 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
[{:key :email-consent | |
:type :yes-no | |
:tags [#{:application/energy-offline}] | |
:schema (shared/map-has {:email-consent shared/Yes-No}) | |
:group groups/account | |
:label "Would you like E.ON to email you account management reminders?" | |
:help-text "E.ON may also use these details to write to you about your account once your switch is complete."}] |
This file contains hidden or 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
# run lein repl if no repl was allready started for this project | |
function chpwd { | |
if [[ -e "$(pwd)/project.clj" ]] && [[ ! -e "$(pwd)/.nrepl-port" ]] | |
then | |
echo "Detected clojure project but no .nrepl-port -> running: lein repl." | |
lein repl & | |
fi | |
} |
This file contains hidden or 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 | |
if [ -n "$1" ] | |
then | |
minutes=$(($1 * 60)) | |
echo "going to sleep in $1 minutes" | |
sleep $minutes | |
fi | |
echo "sleeping now" | |
osascript -e 'tell app "Finder" to sleep' |
This file contains hidden or 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
%% This BibTeX bibliography file was created using BibDesk. | |
%% http://bibdesk.sourceforge.net/ | |
%% Created for Waldemar S at 2013-10-02 14:53:53 +0200 | |
%% Saved with string encoding Unicode (UTF-8) | |
This file contains hidden or 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
(def adjectives [ | |
"adorable" | |
"adventurous" | |
"aggressive" | |
"alert" | |
"attractive" | |
"average" | |
"beautiful" | |
"blue-eyed " | |
"bloody" |