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
| $ python port_checker_tcp.py -a 192.168.1.15 -p 80 | |
| $ python port_checker_tcp.py -a 192.168.1.15 -p 80 && echo "SUCCESS" | |
| $ python port_checker_tcp.py -a 192.168.1.15 -p 81 && echo "FAILURE" |
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
| virtualenv --no-site-packages . | |
| source bin/activate | |
| bin/pip install Django psycopg2 django-sentry | |
| bin/pip freeze > requirements.txt | |
| bin/django-admin.py startproject mysite | |
| cat >.gitignore <<EOF | |
| bin/ | |
| include/ | |
| lib/ | |
| EOF |
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
| import httplib, urllib | |
| from datetime import datetime | |
| def send_complain_form() : | |
| current_time = str(datetime.now()) | |
| destination = "http://uits.arizona.edu/contact" |
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
| import boto | |
| from boto.ec2.connection import EC2Connection | |
| from boto.ec2.regioninfo import RegionInfo | |
| region = RegionInfo(name="eucalyptus", endpoint=hostname) | |
| #conn = EC2Connection('<aws access key>', '<aws secret key>') | |
| connection = boto.connect_ec2(aws_access_key_id=access_key, | |
| aws_secret_access_key=secret_key, |
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
| my_first_line = "#!/home/seungjin/opt/python-2.6.6/bin/python\n" | |
| ARGV.each do |file| | |
| #file exist? | |
| if ! File.exist?(file) | |
| puts "File #{file} does not exist" | |
| exit | |
| end |
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
| #!/usr/local/bin/python | |
| ## | |
| ## All files that are a part of this project, unless explicitly noted otherwise, | |
| ## are covered by the following license: | |
| ## | |
| ## Copyright (c) 2011, The Arizona Board of Regents on behalf of The University | |
| ## of Arizona | |
| ## |
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 loop (fnc,n,o=0): | |
| o = o + 1 | |
| fnc() | |
| loop(fnc,n,o) if n > o else None | |
| def hi(): | |
| print "h" | |
| loop(hi,10) |
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
| ## | |
| ## All files that are a part of this project, unless explicitly noted otherwise, | |
| ## are covered by the following license: | |
| ## | |
| ## Copyright (c) 2011, The Arizona Board of Regents on behalf of The University | |
| ## of Arizona | |
| ## | |
| ## All rights reserved. | |
| ## | |
| ## Developed by: iPlant Collaborative as a collaboration between participants at |
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
| ## | |
| ## All files that are a part of this project, unless explicitly noted otherwise, | |
| ## are covered by the following license: | |
| ## | |
| ## Copyright (c) 2011, The Arizona Board of Regents on behalf of The University | |
| ## of Arizona | |
| ## | |
| ## All rights reserved. | |
| ## | |
| ## Developed by: iPlant Collaborative as a collaboration between participants at |
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
| ## | |
| ## All files that are a part of this project, unless explicitly noted otherwise, | |
| ## are covered by the following license: | |
| ## | |
| ## Copyright (c) 2011, The Arizona Board of Regents on behalf of The University | |
| ## of Arizona | |
| ## | |
| ## All rights reserved. | |
| ## | |
| ## Developed by: iPlant Collaborative as a collaboration between participants at |