$: curl -o ~/install-min.sh https://gist.github.com/alejandrobernardis/5624109/raw/661719eb237a390050a80b7ff61fa6955c7839d2/install-min.sh && chmod +x ~/install-min.sh && ~/install-min.sh
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 settings | |
| from mongoengine import connect as mongodb_connect | |
| from mongoengine import register_connection | |
| from pymongo.database import Database | |
| _database_settings = dict( | |
| host=settings.DATABASE_HOST, | |
| port=settings.DATABASE_PORT, | |
| username=settings.DATABASE_USER, |
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.m.bernardis at gmail.com | |
| # Created: 3/8/13, 3:03 AM |
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
| # Configrautions: | |
| # =============== | |
| .SILENT: compress compress-html compress-css compress-js | |
| .PHONY: compress compress-html compress-css compress-js | |
| deploy=$(CURDIR)/deploy | |
| chtml=/development/software/www/htmlcompressor.jar | |
| ccss=/development/software/www/yuicompressor.jar | |
| cjs=/development/software/www/closure.jar |
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
| $(java) -jar $(chtml) --compress-js --compress-css -r -t html -o $(deploy)/public/ $(deploy)/public |
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
| # Configrautions: | |
| # =============== | |
| .SILENT: help reset env front-dependencies back-dependencies deploy \ | |
| compress compress-html compress-css compress-js \ | |
| coffee coffee-watch less less-watch | |
| .PHONY: help reset env front-dependencies back-dependencies deploy \ | |
| compress compress-html compress-css compress-js \ | |
| coffee coffee-watch less less-watch |
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 base64 | |
| import datetime | |
| import string | |
| import hashlib | |
| from random import choice | |
| def secret_key(length=64): | |
| h = '%s-%s-%s-%s' % ( | |
| datetime.datetime.utcnow().strftime('%Y%m%d%H%M%S%f'), |
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.m.bernardis at gmail.com | |
| # Created: 4/6/13, 12:44 PM |
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
| cd ~ | curl -O https://gist.github.com/alejandrobernardis/5497458/raw/cfa73fdcadead945eddcdf10913228aa49c12ef8/install-env.sh | chmod +x install-env.sh | ./install-env.sh |
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
| <div class="check-password-complexity" ng:show="password"> | |
| <small class="text-muted">La contraseña es: | |
| <strong class="text-{{complexity}}" | |
| ng:bind-html-unsafe="description"></strong> | |
| </small> | |
| <div class="progress"> | |
| <div class="progress-bar progress-bar-{{complexity}}" | |
| style="width: {{percentage}}%"></div> | |
| </div> | |
| </div> |