Skip to content

Instantly share code, notes, and snippets.

View ecarreras's full-sized avatar
💡
IT for utilities

Eduard Carreras ecarreras

💡
IT for utilities
View GitHub Profile
@ecarreras
ecarreras / delete_workflows_duplicats.sql
Created May 31, 2021 19:15 — forked from eberloso/delete_workflows_duplicats.sql
Consultar i eliminar workflows duplicats
delete from wkf_workitem where id in (select min(wkd.id) from wkf_workitem wkd where wkd.inst_id in (select
inst_id
from
wkf_workitem wki
JOIN wkf_instance ins ON ins.id = wki.inst_id
group by
inst_id, ins.res_id, ins.res_type, ins.uid
having
count(*) > 1
@ecarreras
ecarreras / report.py
Last active August 29, 2015 14:26 — forked from tinogis/report.py
Get and view an erp5 pdf report from command line
from erppeek import Client
import sys
import base64
from subprocess import call
import time
report = 'xml_report_name'
ids = [object_id]
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import BaseHTTPServer
import sys
import time
import urlparse
import json
@ecarreras
ecarreras / pr.md
Last active December 14, 2015 21:28 — forked from kennethreitz/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add a new remote. Obviously, change the github url to match your project's URL. It ends up looking like this:

@ecarreras
ecarreras / pr.md
Created September 17, 2012 09:50 — forked from kennethreitz/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

Now add this lines:

[remote "github"]
	url = git@github.com:joyent/node.git
	fetch = +refs/pull/*/head:refs/remotes/github/pr/*