Skip to content

Instantly share code, notes, and snippets.

download-tomcat:
cmd.run:
- name: curl http://mirrors.advancedhosters.com/apache/tomcat/tomcat-8/v8.0.30/bin/apache-tomcat-8.0.30.tar.gz > tomcat.tar.gz
- cwd: /home/tomcat
- user: tomcat
- unless: test -f "/tomcat.tar.gz"
import binascii
binary_string = binascii.unhexlify("092100229de68fe7af5a4bd279ddfa8667c4d3a0a0ba3ef31049227dbd9a216c85036e")
f = open('binary', 'w')
f.write(binary_string)
f.close()
00000000 09 21 00 22 9d e6 8f e7 af 5a 4b d2 79 dd fa 86 |.!.".....ZK.y...|
00000010 67 c4 d3 a0 a0 ba 3e f3 10 49 22 7d bd 9a 21 6c |g.....>..I"}..!l|
00000020 85 03 6e |..n|
00000023