- Install the package build-openstack-debian-image
# apt-get install build-openstack-debian-image
- Generate image.
# build-openstack-debian-image -r wheezy -u http://192.168.113.76:3142/ftp.debian.org/debian -ar
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
""" show models | |
This script run in Debian with openerp 7 | |
For run: | |
1. su - openerp -s /bin/bash | |
2. python openerp_models.py | |
""" | |
import openerp | |
from pprint import pprint |
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
import openerp | |
from pprint import pprint | |
def main(): | |
"""main function""" | |
dbname = 'connector-file' | |
model_name = 'res.partner' | |
cr = openerp.pooler.get_db(dbname).cursor() | |
pool = openerp.pooler.get_pool(dbname) |
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
curl --data 'login=walter&name=walter&password=test&confirm_password=test' http://192.168.0.103:8069/web/signup -H 'Content-Type: application/x-www-form-urlencoded' -H 'Cookie: instance0|ab=%22c%22; session_id=c763117e73c328eea1affa841d87d7d94d9b7e6d' |
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
C-u M-| xmllint --format - |
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
powerline-daemon --kill | |
python -m cProfile -o /tmp/profile /path/to/powerline-daemon --replace |
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
export AWS_ACCESS_KEY_ID=EXAMPLEs234asd897 | |
export AWS_SECRET_ACCESS_KEY=EXAMPLE24324h234sde34de2342de3aeb | |
export AWS_DEFAULT_REGION=us-west-2 |
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
# This job can run docker containers with docker-compose | |
# and copy a file when one of the dockers is available. | |
description "Job to manage docker-compose" | |
author "Walter Vargas <[email protected]> and Juan Mesa <[email protected]>" | |
start on filesystem and started docker | |
stop on runlevel [!2345] | |
respawn | |
script | |
/usr/local/bin/docker-compose -f /etc/app/docker-compose.yml up |
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
;;; Code: | |
(add-to-list 'default-frame-alist | |
'(font . "Source Code Pro Semibold")) | |
(require 'flycheck) | |
(add-hook 'js-mode-hook | |
(lambda () (flycheck-mode t))) | |
(setq org-agenda-files (list "~/git/org/tasks.org" |
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
(setq web-mode-content-types-alist | |
'(("jsx" . "\\.js[x]?\\'"))) |