This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "4.2", | |
"title": "traccar" | |
}, | |
"host": "traccar.fakturacion.com", | |
"basePath": "/api", | |
"schemes": [ | |
"http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
from lxml import etree | |
from OpenSSL import crypto | |
import xmlsig | |
import datetime | |
import pytz | |
import hashlib | |
import urllib | |
def sign_file(cert, password, request): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ds:Signature Id="Signature87773"> | |
<ds:SignedInfo> | |
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/> | |
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> | |
<ds:Reference URI="#Signature87773-SignedProperties14164" Type="http://uri.etsi.org/01903#SignedProperties"> | |
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> | |
<ds:DigestValue>yd7SUTdnnhgJo/5CtcEO87TjnO4=</ds:DigestValue> | |
</ds:Reference> | |
<ds:Reference URI="#KeyInfo47295"> | |
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::::::::::::::::::::::::::: | |
:::::::::::::::: SSH tunnel | |
sudo launchctl stop com.edb.launchd.postgresql-9.3 | |
ssh -N -L 5432:127.0.0.1:5432 -i /path/to/key.pem [email protected] | |
ssh -i /path/to/key.pe [email protected] | |
::::::::::::::::::::::::::: | |
::::::::::::: base de datos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
mv wkhtmltox/bin/wkhtmlto* /usr/bin | |
apt-get install -y openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig |