This file contains 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
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" |
This file contains 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
import binascii | |
binary_string = binascii.unhexlify("092100229de68fe7af5a4bd279ddfa8667c4d3a0a0ba3ef31049227dbd9a216c85036e") | |
f = open('binary', 'w') | |
f.write(binary_string) | |
f.close() |
This file contains 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
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 |