Skip to content

Instantly share code, notes, and snippets.

@jeremychase
jeremychase / gist:7153913
Last active December 26, 2015 12:49
Making war deployment idempotent, but this feels a little fishy.
- name: MD5 current WAR
shell: md5sum /var/lib/tomcat7/webapps/ROOT.war | awk '{print $1}'
register: md5_old
- name: MD5 new WAR
shell: md5sum /tmp/ROOT-{{ apiresult.json.number }}.war | awk '{print $1}'
register: md5_new
- name: Notifying install-war because WARs differ
command: 'true' # An action is required, so do nothing.
20:19 -!- L is now known as Guest10290
20:19 < Anastasius> HELLO
20:20 < Guest10290> Anastasius HELLO IM WRITTING FROM SPAIN
20:21 < Guest10290> IM TRYING TO TALK WITH ANYBODY ABOUT ONE VERY IMPORTANT THING.
20:21 < Guest10290> SORRY MY ENGLISH IF I DO NOT KNOW HOW TO EXPLAIN
20:21 < Anastasius> Cool. Can you do it without the caps lock?
20:22 < Guest10290> sure sorry.
20:22 < Anastasius> :)
20:22 < Guest10290> so, im locking for scientist
20:22 < Guest10290> looking
@jeremychase
jeremychase / gist:6214579
Created August 12, 2013 20:03
baller haskell program
module Test
where
x = 5
y = (6, "Hello")
z = x * fst y
foo = mod 15 3
square x = x * x