Skip to content

Instantly share code, notes, and snippets.

View eneldoserrata's full-sized avatar

Eneldo Serrata eneldoserrata

View GitHub Profile
@eneldoserrata
eneldoserrata / docker-compose.yml
Created April 7, 2019 04:43 — forked from thomas15v/docker-compose.yml
Install odoo with docker-compose
version: '2'
services:
db:
image: postgres:9.4
restart: always
environment:
- POSTGRES_USER=odoo
- POSTGRES_PASSWORD=odoo
odoo:
image: odoo:11
@eneldoserrata
eneldoserrata / change_db_owner.sh
Created June 3, 2018 19:21 — forked from gingerlime/change_db_owner.sh
Postgresql - Changing ownership on all tables
#!/bin/bash
usage()
{
cat << EOF
usage: $0 options
This script set ownership for all table, sequence and views for a given database
Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto
@eneldoserrata
eneldoserrata / wkhtmltopdf.sh
Last active April 24, 2018 05:21 — forked from ajaxray/wkhtmltopdf.sh
Install wkhtmltopdf with Patched QT for CentOS 7 or RHEL 7.x
cd ~
yum install -y xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 openssl git-core fontconfig
wget https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-generic-amd64.tar.xz
tar xvf wkhtmltox-0.12.1_linux-generic-amd64.tar.xz
mv wkhtmltox/bin/wkhtmlto* /usr/bin
# Thanks to
# https://jaimegris.wordpress.com/2015/03/04/how-to-install-wkhtmltopdf-in-centos-7-0/
# https://gist.github.com/Rajeshr34/2e9b2438ff142e51c729b4b9b772680a