Skip to content

Instantly share code, notes, and snippets.

@hanovo
hanovo / dnspodsh.sh
Last active August 29, 2015 14:07 — forked from zrong/dnspodsh.sh
#!/bin/bash
##############################
# dnspodsh v0.3
# 基于dnspod api构架的bash ddns客户端
# 作者:zrong(zengrong.net)
# 详细介绍:http://zengrong.net/post/1524.htm
# 创建日期:2012-02-13
# 更新日期:2012-03-11
##############################
/*
* OpenERP / Odoo Script - Adds Partner ID constraints.
*
* Issue:
* Sometimes, OpenERP / Odoo defines foreign keys without constraints.
* This mainly happens with related fields with store=True,
* which create a column of integers without constraints.
*
* Author: Mariano Ruiz <mrsarm@gmail.com>
* Created: 2014-07-18
$ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2
$ tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2
$ mv wkhtmltopdf-amd64 /usr/bin/wkhtmltopdf
// In case you got the issue
// wkhtmltopdf: error while loading shared libraries:
// libfontconfig.so.1: cannot open shared object file: No such file or directory
//
// run the command below:
$ yum install urw-fonts libXext libXrender fontconfig libfontconfig.so.1