Skip to content

Instantly share code, notes, and snippets.

View jeanabreu's full-sized avatar

Jean Abreu jeanabreu

View GitHub Profile
@altuzar
altuzar / gist:5876873
Last active December 19, 2015 01:38
Install OpenERP 7 on Digital Ocean
#!/bin/sh
# Install OpenERP 7 on Digital Ocean
# Fernando Altuzar
# Modified script from Carlos E. Fonseca Zorrilla & Mario Gielissen
# First: Create a Droplet with CentOS 32 bits
# Then:
yum -y install wget unzip
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh http://yum.pgrpms.org/9.2/redhat/rhel-6-i386/pgdg-centos92-9.2-6.noarch.rpm
@sirbrillig
sirbrillig / pgsql_backup.sh
Last active November 15, 2025 02:29 — forked from dangerousbeans/pgsql_backup.sh
Postgresql daily backup script.
#!/bin/bash
#
# Backup a Postgresql database into a daily file.
#
BACKUP_DIR=/pg_backup
DAYS_TO_KEEP=14
FILE_SUFFIX=_pg_backup.sql
DATABASE=
USER=postgres