Skip to content

Instantly share code, notes, and snippets.

@osvalr
osvalr / test-sunat.py
Created February 16, 2017 01:32
non-tested SUNAT
#!/bin/python
##
## This code have been taken from, and isn't tested yet by myself
## https://codeshare.io/nQXtS
## https://gitter.im/msolorzano/sunat2015
##
from suds.client import Client
from suds.wsse import *
import requests
import suds_requests
@osvalr
osvalr / validator.py
Created February 11, 2017 21:00 — forked from iiska/validator.py
Simple XML Schema validator in Python using lxml library
#! /usr/bin/python
# -*- coding: utf-8 -*-
#
# Simple XML validator done while learning the use of lxml library.
# -- Juhamatti Niemelä <iiska AT iki DOT fi>
import lxml
from lxml import etree
if __name__ == "__main__":
@osvalr
osvalr / t2d-bark.sh
Created December 24, 2016 06:49
barking docker containers for odoo instances using travisfile2dockerfile
#!/bin/bash
# Using travisfile2dockerfile this code will take charge to build your docker image and run your docker container for an
# Odoo instance just indicating the port you want to be mapped to web service as the only argument once your get into
# one folder travisfile2dockerfile created for you
# e.g.
#
# 1. run travisfile2dockerfile
# ~/ $ travisfile2dockerfile [email protected]:<ORG>/<REPOSITORY>.git <BRANCH>
#
# 2. get into your travisfile2dockerfile just-generated-folder
@osvalr
osvalr / .t2drc
Last active December 20, 2016 23:13
t2drc: template configuration for travisfile2dockerfile
#!/bin/bash
# Copy and pase this file into your user home directory
# and also add in your .bashrc or .bash_profile: ". ~/.t2drc" (without quotes)
# main docker port
# IMPORTANT: replace the MAIN_PORT value
export DOCKER_PORT=MAIN_PORT
# secondary docker port
# It is used when you having troubles with the main one, uncomment when the main one fails