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/bin/env python2.7 | |
| # -*- coding: utf-8 -*- | |
| # Copyright (c) 2014 Asumi Kamikaze Inc. | |
| # Licensed under the MIT License. | |
| # Author: Alejandro M. Bernardis | |
| # Email: alejandro (dot) bernardis (at) asumikamikaze (dot) com | |
| # Created: 20/Oct/2014 12:22 | |
| import base64 | |
| import string | 
  
    
      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
    
  
  
    
  | from functools import wraps | |
| KEY = 'a' | |
| VALUE = '>>> Success :D~ <<<' | |
| def is_read_only(method): | |
| @wraps(method) | |
| def wrapper(self, *args, **kwargs): | |
| if getattr(self, '_read_only', False): | |
| raise NotImplementedError('Not Implemented...') | 
  
    
      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
    
  
  
    
  | http://www.tweaking4all.com/os-tips-and-tricks/macosx-tips-and-tricks/format-apple-restore-usb/ | 
  
    
      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
    
  
  
    
  | # pycrypto | |
| # -------- | |
| http://stackoverflow.com/questions/19617686/trying-to-install-pycrypto-on-mac-osx-mavericks | 
  
    
      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 | |
| from cStringIO import StringIO | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| from email.header import Header | |
| from email import Charset | |
| from email.generator import Generator | |
| import smtplib | |
| # Example address data | 
  
    
      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
    
  
  
    
  | # Thanks Martijn Pieters => http://stackoverflow.com/a/11242838/3161405 | |
| import re | |
| import json | |
| APPLE_SANITIZE = re.compile(r'("[^"]*")\s*=\s*("[^"]*");') | |
| APPLE_SANITIZE_COMMA = re.compile(r',(\s*})') | |
| def apple_json_sanitize(value): | |
| return json.loads( | 
  
    
      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/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Copyright (c) 2013 Asumi Kamikaze Inc. | |
| # Copyright (c) 2013 The Octopus Apps Inc. | |
| # Licensed under the Apache License, Version 2.0 (the "License") | |
| # Author: Alejandro M. Bernardis | |
| # Email: alejandro.bernardis at gmail.com | |
| # Created: 02/Dec/2013 16:48 | |
| import datetime | 
  
    
      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/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import re | |
| # Thanks nickl -> about.me/nickl | |
| # Ref: http://stackoverflow.com/a/12867228/3161405 | |
| e = re.compile(r'((?<=[a-z0-9])[A-Z]|(?!^)[A-Z](?=[a-z]))') | 
  
    
      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 json | |
| import datetime | |
| from decimal import Decimal | |
| from mongoengine.queryset import queryset_manager | |
| from mongoengine.queryset import QuerySet | |
| from mongoengine.base import BaseList, BaseDict, ObjectId | |
| def list_encoder(inst, obj, field, force_string=False): | |
| """ | 
  
    
      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
    
  
  
    
  | [general] | |
| CONFIG_SSH_KEY=/root/.ssh/id_rsa.pub | |
| CONFIG_MYSQL_INSTALL=n | |
| CONFIG_GLANCE_INSTALL=y | |
| CONFIG_CINDER_INSTALL=y | |
| CONFIG_NOVA_INSTALL=y | |
| CONFIG_NEUTRON_INSTALL=y | |
| CONFIG_HORIZON_INSTALL=y | |
| CONFIG_SWIFT_INSTALL=y | |
| CONFIG_CEILOMETER_INSTALL=y |