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
| # primero separo el video de PyAr Grande en videos mas cortos de 5min | |
| mkvmerge -o pyar --split duration:00:05:00.000 Python\ Argentina\ Meetup\ \(720p_30fps_H264-192kbit_AAC\).mp4 | |
| # spliteo uno de los videos por donde justo empieza la charla | |
| mkvmerge -o foobar --split duration:00:00:12.000 pyar_-011 | |
| # mover el foobar que nos interesa y reemplazar el archivo de pyar | |
| mv foobar-002 pyar_-011 |
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 logging | |
| from os.path import join | |
| from logging.handlers import TimedRotatingFileHandler | |
| class CURRENT_ENVIRONMENT(object): | |
| LOGGING_FOLDER = '.' | |
| root_logger = logging.getLogger() | |
| root_handler = TimedRotatingFileHandler( | |
| filename=join(CURRENT_ENVIRONMENT.LOGGING_FOLDER, 'web.log'), |
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
| # app.py file | |
| import logging_conf | |
| app = Flask(__name__) | |
| # -------------------------------------------- | |
| # logging_conf.py | |
| import logging |
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
| curl -L -O http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem | |
| curl -L -O http://rubyforge.org/frs/download.php/74596/ruby_core_source-0.1.5.gem | |
| curl -L -O http://rubyforge.org/frs/download.php/63094/ruby-debug19-0.11.6.gem | |
| curl -L -O http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem | |
| export RVM_SRC=/usr/include/ruby-1.9.1/ruby-1.9.3-p0/ | |
| gem install archive-tar-minitar | |
| gem install ruby_core_source-0.1.5.gem -- --with-ruby-include=$RVM_SRC | |
| gem install linecache19-0.5.13.gem -- --with-ruby-include=$RVM_SRC |