Magic words:
psql -U postgresIf run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).
Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*
| BEGIN:VCALENDAR | |
| PRODID:-//Google Inc//Google Calendar 70.9054//EN | |
| VERSION:2.0 | |
| CALSCALE:GREGORIAN | |
| METHOD:PUBLISH | |
| X-WR-CALNAME:Public Holidays 2016 | |
| X-WR-TIMEZONE:Asia/Singapore | |
| X-WR-CALDESC: | |
| BEGIN:VEVENT | |
| DTSTART;VALUE=DATE:20161226 |
| <html> | |
| <head> | |
| <style> | |
| tr { | |
| page-break-inside: auto !important; | |
| } | |
| </style> | |
| </head> |
| " enable plugins | |
| filetype on | |
| syntax enable | |
| " basic settings | |
| set laststatus=2 " Always show the statusline | |
| "set term=$TERM | |
| set encoding=utf-8 " Necessary to show unicode glyphs | |
| " if $TERM!="linux" " if we are not in tty | |
| " set t_Co=256 " Tell that terminal supports 256 colors |
| downloadFile(id: string, name: string) { | |
| this.platform.ready().then(() => { | |
| const fileTransfer = new Transfer(); | |
| let url = constants.API_ENDPOINT + '/web/binary/saveas?model=ir.attachment&field=datas&filename_field=name&id=' + id; | |
| console.log(url); | |
| // let downloadBrowser = new InAppBrowser(url, '_system'); | |
| fileTransfer.download(url, cordova.file.externaldataDirectory + name, true) | |
| .then((entry) => { | |
| console.log('download complete: ' + entry.toURL()); | |
| }, (error) => { |
[NOTE] Luôn luôn pull code trước khi làm việc gì khác với git để tránh confict.
| # -*- coding: utf-8 -*- | |
| """Example Google style docstrings. | |
| This module demonstrates documentation as specified by the `Google Python | |
| Style Guide`_. Docstrings may extend over multiple lines. Sections are created | |
| with a section header and a colon followed by a block of indented text. | |
| Example: | |
| Examples can be given using either the ``Example`` or ``Examples`` | |
| sections. Sections support any reStructuredText formatting, including |
| [options] | |
| addons_path = /home/whodoo/GHN-WFS/odoo/odoo/addons,/home/whodoo/GHN-WFS/ghn_addons | |
| admin_passwd = admin | |
| auto_reload = False | |
| csv_internal_sep = , | |
| data_dir = /home/whodoo/.local/share/Odoo | |
| db_host = 127.0.0.1 | |
| db_maxconn = 64 | |
| db_name = demo | |
| db_password = False |
| docker-compose up -d | |
| docker attach myapp_web_1 |