Skip to content

Instantly share code, notes, and snippets.

View jabibi's full-sized avatar
🏢
Working in Madrid

Javi Melendez jabibi

🏢
Working in Madrid
View GitHub Profile
@jabibi
jabibi / r2019w10.txt
Created March 5, 2019 16:44
[DEPLOY] release 2019w10
20180838
/home/ubuntu12/workspace/git_ibil61/inge_ibil/inv_agreement_ext.py
/home/ubuntu12/workspace/git_ibil61/inge_ibil/sale_order_ext.py
20180781
/home/ubuntu12/workspace/git_ibil61/inge_ibil/res_users_ext.py
/home/ubuntu12/workspace/git_ibil61/inge_ibil/vistas/res_users_ext_view.xml
20180677
/home/ubuntu12/workspace/git_ibil61/inge_ibil/sale_order_ext.py
javi@lenovo:~/Downloads$ curl -v -O -J -L https://www7.aeat.es/wlpl/SSII-FACT/ws/fe/SiiFactFEV1SOAP
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 195.76.38.173...
* TCP_NODELAY set
* Connected to www7.aeat.es (195.76.38.173) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: none
# -*- coding: utf-8 -*-
# Copyright 2018 Javi Melendez <javimelex@gmail.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import datetime
import pytz
DEFAULT_SERVER_DATETIME_FORMAT = "%Y-%m-%d %H:%M:%S"
DEFAULT_SERVER_DATETIME_FORMAT_TZ = DEFAULT_SERVER_DATETIME_FORMAT + " %z"
# -*- coding: utf-8 -*-
# Copyright 2018 Javi Melendez <javimelex@gmail.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import datetime
import pytz
DEFAULT_SERVER_DATETIME_FORMAT = "%Y-%m-%d %H:%M:%S"
DEFAULT_SERVER_DATETIME_FORMAT_TZ = DEFAULT_SERVER_DATETIME_FORMAT + " %z"
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# set -o xtrace
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
__file="${__dir}/$(basename "${BASH_SOURCE[0]}")"
__base="$(basename ${__file} .sh)"
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# set -o xtrace
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
__file="${__dir}/$(basename "${BASH_SOURCE[0]}")"
__base="$(basename ${__file} .sh)"
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2018 Javi Melendez <javimelex@gmail.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="aeat_sii_tax_agency_spain" model="aeat.sii.tax.agency">
<field name="name">Agencia Tributaria española</field>
<field name="wsdl_out">https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/ssii_1_1/fact/ws/SuministroFactEmitidas.wsdl</field>
<field name="wsdl_in">https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/ssii_1_1/fact/ws/SuministroFactRecibidas.wsdl</field>
<field name="wsdl_pi">https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/ssii_1_1/fact/ws/SuministroBienesInversion.wsdl</field>
<field name="wsdl_ic">https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/ssii_1_1/fact/ws/SuministroOpIntracomunitarias.wsdl</field>
@jabibi
jabibi / Ubuntu 18.04.sh
Last active May 14, 2018 06:38
Ubuntu 18.04 with Eclipse & PyDev & Subclipse
# Ubuntu 18.04 minimal installation
apt install openjdk-11-jdk
apt install python-pip
# eclipse: install javascript-oxygen in /opt/eclipse/javascript-oxygen
# pydev: http://dl.bintray.com/fabioz/pydev/6.3.2
# subclipse: http://dl.bintray.com/subclipse/releases/subclipse/latest
# egit: http://download.eclipse.org/egit/updates
# github mylyn: http://download.eclipse.org/egit/github/updates
# JavaHL
apt install libsvn-java
@jabibi
jabibi / random_nif.py
Last active February 13, 2018 11:47
Genera NIF aleatorio de 10000000Z a 99999999R (python2, python3)
import random
print(
(lambda x: '%s%s' % (x, "TRWAGMYFPDXBNJZSQVHLCKE"[x % 23]))(
random.randint(10000000, 99999999)
)
)
@jabibi
jabibi / delete-git-recursively.sh
Created February 13, 2018 08:46 — forked from facelordgists/delete-git-recursively.sh
Recursively remove .git folders
( find . -type d -name ".git" && find . -name ".gitignore" && find . -name ".gitmodules" ) | xargs rm -rf