Skip to content

Instantly share code, notes, and snippets.

View nu1silva's full-sized avatar
🎯
Focusing on FOSS

Nuwan Silva nu1silva

🎯
Focusing on FOSS
View GitHub Profile
@nu1silva
nu1silva / Transform
Created July 16, 2015 09:42
XSLT Transform
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="/">
<BANK_TR>
<TIMESTAMP>
<xsl:value-of select="/TRANSACTION/TRANS_TIMESTAMP"/>
</TIMESTAMP>
<TRANSACTION_ID>
@nu1silva
nu1silva / TransformProxy
Created July 16, 2015 09:46
XSLT Transform Proxy
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="Transform1"
transports="https http"
startOnLoad="true"
trace="disable">
<description/>
<target>
<inSequence>
<xslt key="conf:/xslt/transform.xslt"/>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://org.apache.axis2/xsd" xmlns:xsd1="http://dto.configuration.store.user.identity.carbon.wso2.org/xsd">
<soapenv:Header/>
<soapenv:Body>
<xsd:editUserStore>
<xsd:userStoreDTO>
<xsd1:className>org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager</xsd1:className>
<xsd1:domainId>t1.com</xsd1:domainId>
<xsd1:description>t1.com</xsd1:description>
<!-- Mandatory Fields -->
@nu1silva
nu1silva / httpserver.go
Created October 10, 2015 05:03
golang_http_server
package main
// Imports fmt and net/http packages
import "fmt"
import "net/http"
// Create a basic handler
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "It's Alive!!!")
}

Keybase proof

I hereby claim:

  • I am nu1silva on github.
  • I am nu1silva (https://keybase.io/nu1silva) on keybase.
  • I have a public key ASD_-dz6O5nVcZCaEyiJz0JT-SIz1xnSmGps87Nk0UTIuQo

To claim this, I am signing this object: