Skip to content

Instantly share code, notes, and snippets.

View matiasinsaurralde's full-sized avatar

Matias Insaurralde matiasinsaurralde

  • Paraguay
View GitHub Profile
@matiasinsaurralde
matiasinsaurralde / read.md
Last active January 18, 2019 02:10 — forked from buger/read.md
API Gateway guide to SOAP

API Gateway guide to SOAP

SOAP is a big and painful topic when it comes to API gateway support. And the reason is that the SOAP protocol itself has a very flexible declarative XML format, and its specifications are unfortunately really vague and leave a lot of things open for interpretation.

In this document, we will try to cover all possible ways how you can integrate SOAP with Tyk API Gateway, from simple pass through to calling WSDL services.

Introduction to SOAP format

A SOAP message is a XML document which is used to transmit your data, and can look as simple as:

@matiasinsaurralde
matiasinsaurralde / apitest.json
Created October 24, 2018 17:54
apitest.json
{
"name": "Tyk Test API",
"api_id": "3",
"org_id": "default",
"use_keyless": true,
"auth": {
"auth_header_name": ""
},
"version_data": {
"not_versioned": false,
@matiasinsaurralde
matiasinsaurralde / abc.R
Last active September 8, 2018 02:50 — forked from maggiesarmiento/abc.R
abc.r
# Script de R: Introduccion a R
# Goku
# Solamente si estoy en la FACEN
Sys.setenv(http_proxy="http://laboratorio:[email protected]:3128/")
Sys.setenv(https_proxy="https://laboratorio:[email protected]:3128/")
## Trabajando con Secuencias de DNA
# Una de las cosas mas basicas qeu necesitas saber hacer con R para bioinformatica es
@matiasinsaurralde
matiasinsaurralde / bindings.go
Created July 30, 2018 11:02
dlpython bindings
package python
/*
#include <dlfcn.h>
#include <stdlib.h>
#include <stdio.h>
void* python_lib;
typedef struct _pyobject {} PyObject;
typedef struct _pythreadstate {} PyThreadState;
package main
import (
"encoding/base64"
"fmt"
)
func main() {
payload := "eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ"
extern crate protobuf;
mod pubsub;
mod msg;
// use protobuf::Message;
use pubsub::{pub_msg, sub};
extern crate v8worker2;
use v8worker2::v8worker;
use std::fs::File;
package generator
import (
"bytes"
"fmt"
"go/ast"
"html/template"
"regexp"
"strconv"
"strings"
{
"name": "",
"slug": "",
"api_id": "",
"org_id": "",
"use_keyless": false,
"use_oauth2": false,
"use_openid": false,
"openid_options": {
"providers": null,
@matiasinsaurralde
matiasinsaurralde / murmur_diff.txt
Created November 22, 2017 13:22
murmur_diff.txt
14d13
< _ bmixer = new(digest32)
28,32c27
< // New32 returns new 32-bit hasher
< func New32() hash.Hash32 { return New32WithSeed(0) }
<
< // New32WithSeed returns new 32-bit hasher set with explicit seed value
< func New32WithSeed(seed uint32) hash.Hash32 {
---
> func New32() hash.Hash32 {
@matiasinsaurralde
matiasinsaurralde / tyk-gateway.yaml
Created November 10, 2017 06:59
tyk-gateway.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: tyk-gateway
namespace: tyk
spec:
replicas: 1
template:
metadata:
labels: