>>> from hello import app
>>> from flask import current_app
>>> app_ctx = app.app_context()
>>> app_ctx.push()
>>> current_app.name
>>> app_ctx.pop()
The command $ ls -l
, for example, can return a list of the type
total 24
drwxrwxr-x 2 diego diego 4096 feb 2 11:16 logs
drwxrwxr-x 2 diego diego 4096 feb 5 13:42 __pycache__
-rw-rw-r-- 1 diego diego 185 feb 5 13:40 app.py
drwxrwxr-x 2 diego diego 4096 feb 5 13:34 templates
drwxrwxr-x 6 diego diego 4096 feb 2 10:55 venv
-rw-rw-r-- 1 diego diego 64 feb 5 13:41 wsgi.py
$ tail -n 10 -f outputfile | xargs -IL date +"%Y%m%d_%H%M%S:L"
Using ccze
$ (tail -n 10 -f outputfile | xargs -IL date +"%Y%m%d_%H%M%S:L") | ccze
This file contains 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
set nocompatible " required | |
filetype off " required | |
"allow for external clipboard buffers | |
set clipboard=unnamed | |
" set numbers on | |
set nu | |
ejemplo de arica para allData_ddl_legend.json
{
"agno": 2016,
"cod_com_alu": 15102,
"cod_com_rbd": 15101,
"cod_reg": 15,
"flow": 64,
"lat_com_alu": -19.155567,
"lat_com_rbd": -18.47895865,
This file contains 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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
" check https://github.com/VundleVim/Vundle.vim for details | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') |
- Fresh install bionic beaver
- Update dependencies
sudo apt-get install -y git curl tmux weechat net-tools
- Install pyenv
- Install build dependencies as stated in https://github.com/pyenv/pyenv/wiki
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev
- Install pyenv
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.7.0
or whatever version you like.--enable-shared
is needed for other packages to work properly, likevundle
.
- Install build dependencies as stated in https://github.com/pyenv/pyenv/wiki
- install docker-ce
- Follow post installation tasks for Ubuntu
OlderNewer