Skip to content

Instantly share code, notes, and snippets.

View mrsarm's full-sized avatar
🏠
Working from home

Mariano Ruiz mrsarm

🏠
Working from home
View GitHub Profile
@mrsarm
mrsarm / gunicorn_startup.sh
Last active December 16, 2015 16:09 — forked from TimFletcher/gunicorn_startup.sh
Startup Unix script for Gunicorn server.
#!/bin/sh
#
# /etc/init.d/gunicorn
#
# Startup script for Gunicorn server.
#
# Author: Tim Fletcher (2011)
# Modified by Mariano Ruiz <mrsarm@gmail.com> (2013)
#
# Original source:
@mrsarm
mrsarm / backupliferay.sh
Last active December 16, 2015 16:18
Backup Liferay bundled with Tomcat: BBDD, data folder and complete instalation in a .tar.gz file
#!/bin/bash
#
# Liferay backup script.
#
# Author: Mariano Ruiz (2012-2013)
# http://www.mrdev.com.ar
#
DATE=`date "+%Y%m%d"`
@mrsarm
mrsarm / tomcat.sh
Last active September 13, 2020 08:00
Apache Tomcat Unix Script to start / stop / restart, or check current status
#!/bin/sh
#
# /etc/init.d/tomcat
#
# Startup script for Apache Tomcat Servlet Engine.
#
# Author: Mariano Ruiz <mrsarm@gmail.com> (2012)
#
@mrsarm
mrsarm / openerp.sh
Created April 26, 2013 14:22
OpenERP Unix Startup Script. It's a fork of the original OpenERP script but with the "status" option to check if the daemon is running
#!/bin/sh
#
# /etc/init.d/openerp
#
# Startup script for OpenERP server.
#
# Author: OpenERP SA
# Modified by Mariano Ruiz <mrsarm@gmail.com> (2013)
### BEGIN INIT INFO
@mrsarm
mrsarm / openerp-server.conf
Created June 26, 2013 15:36
OpenERP 6.1 server configuration. Variables changes: addons_path, log_handler, xmlrpc_port
[options]
addons_path = /opt/oerp/openerp-6.1/addons,/opt/oerp/openerp-6.1/web/addons,/opt/oerp/extra-addons-6.1,/python/projects/eoconsulting/openerp-esale
admin_passwd = admin
assert_exit_level = error
cache_timeout = 100000
cpu_time_limit = 60
csv_internal_sep = ,
db_host = False
db_maxconn = 64
db_name = False
@mrsarm
mrsarm / vbox-nat.sh
Created September 14, 2013 06:06
VirtualBox add/remove NAT rules
#!/bin/sh
#
# vbox-nat
#
# VirtualBox add/remove NAT rules.
#
# Author: Mariano Ruiz <mrsarm@gmail.com>
#
# License GPLv3 (2011-2013)
#
@mrsarm
mrsarm / openerp-httpd.conf
Created February 28, 2014 18:32
OpenERP Reverse Proxy Configuration for Apache 2 Server
#
# /etc/apache2/sites-available/openerp
#
# OpenERP Reverse Proxy Configuration for Apache 2.
#
# Authors: 2014 Mariano Ruiz <mrsarm@gmail.com>
#
# After copy this file execute:
#
# sudo a2ensite openerp
@mrsarm
mrsarm / openerp_add_partner_constraints.sql
Created July 18, 2014 20:58
OpenERP / Odoo Script - Adds Partner ID constraints in those columns without FK
/*
* 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
@mrsarm
mrsarm / pycharm.desktop
Created September 1, 2014 14:29
/usr/share/applications/pycharm.desktop: PyCharm Desktop Icon
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm IDE
Comment=Python IDE
Exec="/python/pycharm/bin/pycharm.sh" %f
Icon=/python/pycharm/bin/pycharm.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
@mrsarm
mrsarm / odoo-server.conf
Created September 1, 2014 17:51
Odoo/OpenERP v8 server configuration
[options]
admin_passwd = admin
db_user = odoo
db_password = postgres
xmlrpc_port = 8069
log_handler = werkzeug:CRITICAL
; tools.proxy.on = True
; tools.proxy.base = 'http://local.erp'