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
# https://www.varnish-cache.org/docs/2.1/tutorial/vcl.html | |
# https://www.varnish-cache.org/trac/wiki/VCLExamples | |
# Summary | |
# 1. Varnish will poll the backend at /health_check to make sure it is | |
# healthy. If the backend goes down, varnish will server stale content | |
# from the cache for up to 1 hour. | |
# 2. Varnish will pass X-Forwarded-For headers through to the backend | |
# 3. Varnish will remove cookies from urls that match static content file | |
# extensions (jpg, gif, ...) |
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
c:\python27\python openerp-server -c oe.conf -i sales_team,sale_stock,sale_service,sale_order_dates,sale_mrp,sale_margin,sale_layout,sale_journal,sale_crm,sale_analytic_plans,purchase_analytic_plans,product_extended,product_visible_discount,product_margin,product_expiry,product_email_template,website_sale,website_sale_delivery,website_sale_options,website_quote,account_asset,hr_payroll_account,im_livechat,mrp_operations,payment_transfer,project_timesheet,delivery,crm_partner_assign,fleet,purchase_requisition --stop-after-init -d %1 |
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
$ cat .pip/pip.conf | |
[global] | |
use-mirror=true | |
mirrors=http://mirrors.aliyun.com | |
index-url=http://mirrors.aliyun.com/pypi/simple |
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 -*- | |
############################################################################## | |
# | |
# OpenERP, Open Source Management Solution | |
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as | |
# published by the Free Software Foundation, either version 3 of the |
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
#!/bin/bash | |
############################################################################## | |
# | |
# Copyright (c) 2004-2009 TINY SPRL. (http://tiny.be) | |
# | |
# $Id$ | |
# | |
# WARNING: This program as such is intended to be used by professional | |
# programmers who take the whole responsability of assessing all potential | |
# consequences resulting from its eventual inadequacies and bugs |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on 09/11/2011 | |
@author: Carlo Pires <[email protected]> | |
""" | |
import tnetstring | |
from werkzeug.contrib.sessions import SessionStore | |
SESSION_TIMEOUT = 60*60*24*7 # 7 weeks in seconds |
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
# !/bin/bash | |
for f in $(ls -d */) | |
do | |
f=${f%%/} | |
echo $f | |
touch $f/i18n/$f.pot | |
tx set --auto-local \ | |
-r odoo-master.$f $f'/i18n/<lang>.po' \ | |
--source-lang en \ |
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 -*- | |
############################################################################## | |
# | |
# OpenERP, Open Source Management Solution | |
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as | |
# published by the Free Software Foundation, either version 3 of the |
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 redis | |
import threading | |
class Listener(threading.Thread): | |
def __init__(self, r, channels): | |
threading.Thread.__init__(self) | |
self.redis = r | |
self.pubsub = self.redis.pubsub() | |
self.pubsub.subscribe(channels) | |
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
pandoc -s buy.docx -f docx -t markdown-simple_tables-multiline_tables+pipe_tables-grid_tables -o buy.md |
OlderNewer