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 eventlet | |
| eventlet.patcher.monkey_patch(select=True, socket=True) | |
| import json | |
| import time | |
| import codecs | |
| import httplib2 | |
| import logging | |
| logging.basicConfig(level=logging.DEBUG) |
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
| """ | |
| @author: Carlo Pires <[email protected]> | |
| """ | |
| import argparse | |
| class Commands(object): | |
| def status(self, args): | |
| print('status for {}'.format(args.module)) |
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
| """ | |
| @author: Carlo Pires <[email protected]> | |
| To generate the certificate with openssl: | |
| openssl genrsa 2048 > o365app.key | |
| openssl req -new -x509 -nodes -sha512 -days 365 -key o365app.key > o365app.crt | |
| To generate key credentials for MS Azure: | |
| python gen_key_credentials.py o365app.crt | |
| """ |
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
| <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>HTML5 date test</title> | |
| <meta name="description" content="HTML5 date test with Bootstrap 3 and webshims"> |
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
| <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>HTML5 date test</title> | |
| <meta name="description" content="HTML5 date test with Bootstrap 3 and webshims"> |
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
| <?php | |
| $ORACLE_HOST = "127.0.0.1"; | |
| $ORACLE_PORT = "1521"; | |
| $ORACLE_SID = "mysid"; | |
| $ORACLE_USER = "myuser"; | |
| $ORACLE_PASSWORD = "mypass"; | |
| $ORACLE_DSN = " | |
| (DESCRIPTION = | |
| (ADDRESS = (PROTOCOL = TCP)(HOST = $ORACLE_HOST)(PORT = $ORACLE_PORT)) |
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
| <?php | |
| $ORACLE_HOST = "127.0.0.1"; | |
| $ORACLE_PORT = "1521"; | |
| $ORACLE_SID = "mysid"; | |
| $ORACLE_USER = "myuser"; | |
| $ORACLE_PASSWORD = "mypass"; | |
| $ORACLE_DSN = " | |
| (DESCRIPTION = | |
| (ADDRESS = (PROTOCOL = TCP)(HOST = $ORACLE_HOST)(PORT = $ORACLE_PORT)) |
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
| bootstrap-tooltip.js | |
| bootstrap-popover.js | |
| bootstrap-alert.js | |
| bootstrap-button.js | |
| bootstrap-carousel.js | |
| bootstrap-collapse.js | |
| bootstrap-dropdown.js | |
| bootstrap-modal.js | |
| bootstrap-scrollspy.js | |
| bootstrap-tab.js |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on 16/12/2011 | |
| @author: Carlo Pires <[email protected]> | |
| """ | |
| import json | |
| from redis import Redis | |
| r = Redis() |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on 09/11/2011 | |
| @author: Carlo Pires <[email protected]> | |
| """ | |
| import tnetstring | |
| from werkzeug.contrib.sessions import SessionStore | |
| SESSION_TIMEOUT = 60*60*24*7 # 7 weeks in seconds |