Skip to content

Instantly share code, notes, and snippets.

@michaelkarrer81
michaelkarrer81 / sample.conf
Created January 18, 2016 10:45 — forked from renoirb/sample.conf
Salt stack master to use remote git for both pillar and state files
##
## Use-case: Host in a remote git (on a ssh-able host) both pillars and states on Salt Stack 0.17.x
##
## See thread: https://groups.google.com/forum/#!topic/salt-users/bOz2cdY-pnY
#
# Salt stack master and minion procedure, short version:
#
# - On the Master:
#
# wget -O - http://bootstrap.saltstack.org | sudo sh -s -- -M git v0.17.0
@michaelkarrer81
michaelkarrer81 / post-receive
Created December 3, 2015 07:59 — forked from sergeylukin/post-receive
Git hook (post-receive): update working tree on PUSH
#!/bin/sh
#
# This hook is placed in Bare repository and it updates Working tree whenever a PUSH
# is executed
#
# Assuming following file structure:
# .
# |-- myproject
# |-- myproject.git
# set WORKTREE=../myproject

Odoo - Rename an addon without losing data

Rename addon

  • Change __openerp__.py addon name field
  • Change README.rst file
  • Change translations files (i18n folder, .po and .pot files)
@michaelkarrer81
michaelkarrer81 / change_db_owner.sh
Last active August 29, 2015 14:09 — forked from gingerlime/change_db_owner.sh
Change Owner of Postgres DB
#!/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