Skip to content

Instantly share code, notes, and snippets.

@funbaker
funbaker / retrosun.py
Created November 13, 2022 22:10
GIMP RetroSun
#!/usr/bin/env python
from gimpfu import *
def retrosun(img, layer, gradient):
gimp.progress_init("Rendering RetroSun to " + layer.name + "...")
# Set up an undo group, so the operation will be undone in one step.
pdb.gimp_undo_push_group_start(img)
@funbaker
funbaker / action_send_mail.py
Created August 19, 2015 07:21
odoo action email template send
# -*- coding: utf-8 -*-
from openerp import fields, models
class {{ CLASS NAME }}(models.Model):
_inherit = '{{ INHERITED MODEL }}'
def {{ ACTION NAME }}(self, cr, uid, ids, context=None):
'''
{{ DESCRIPTION }}
'''
@funbaker
funbaker / nginx_odoo_multiprocess
Last active July 31, 2019 08:32
odoo nginx static files
upstream odoo9_xmlrpc {
server <xmlrpc address>;
}
upstream odoo9_longpolling {
server <longpolling address>;
}
server {
listen 80;