Skip to content

Instantly share code, notes, and snippets.

View fotisp's full-sized avatar

Fotis Paraskevopoulos fotisp

  • Existanze Integrated Solutions
  • Athens, Greece
View GitHub Profile

Odoo - Rename an addon without losing data

Rename addon

  • Change __openerp__.py addon name field
  • Change README.rst file
@fotisp
fotisp / gist:057dcdb87c4f348200c6
Last active August 29, 2015 14:18
Custom i18n handler for front end
var _=require('lodash');
module.exports= function(site){
var i18n=require('i18n');
var _myi18n = _.clone(site.options.i18n);
_myi18n.directory=site.rootDir + '/frontend-locales';
i18n.configure(_myi18n);
@fotisp
fotisp / apostrophe import files
Last active August 29, 2015 14:14
Apostrophe2 Import Files Task
/**
* You will need the following dependencies
*
* npm install --save recursive-readdir
* npm install --save lodash
* npm install --save async
*
* I am sure this can become better javascripty code but it does the job for now
*/
var recursive = require("recursive-readdir");
@fotisp
fotisp / base-node-install-ubuntu-14-04
Last active August 29, 2015 14:07
This gist will run the necessary processes to install node,npm,imagemagick et.al on a 14.04 LTS installation. It has not be tested for multiple runs, and only on a fresh install, any dependency breaks are on you.
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
print_status() {
echo
echo "## $1"