Skip to content

Instantly share code, notes, and snippets.

View canoas's full-sized avatar

Jose Antonio Silva canoas

View GitHub Profile
@canoas
canoas / Clear-TMGCachedUrl.ps1
Created February 13, 2014 14:45
Powershell Script to clear an Url from TMG/ISA Cache
param(
$url = (Read-Host "Url? e.g http://www.maxfinance.pt/img/frame5.jpg")
)
begin {
$tmgroot = new-object -comobject FPC.Root
$tmgarray = $tmgroot.GetContainingArray()
$myCache = $tmgArray.Cache.CacheContents
$regex = ‘([a-zA-Z]{3,})://([\w-\.]+)(/[\w- ./?%&=]*)*?’
}
process {
@canoas
canoas / LeKea.homepage.md
Last active August 29, 2015 13:55
LeKEA Homepage

Office365 for Education

This is a simple guide to help you get up and running with Office365. Using this "notebook" will help you follow these simplified instructions. As you follow the recommended instructions and commands, you will be able to edit and run each snipped of code, as you learn and apply them to your Office 365 tenant.


Table of Contents

  1. Setup your access - Required!
@canoas
canoas / programarBiztalkMaps2.xslt
Created January 10, 2012 10:05
Simple Biztalk Map (compiled)
<?xml version="1.0" encoding="UTF-16"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var s0 userCSharp" version="1.0" xmlns:s0="http://ComoFuncinamOsMapas.PessoaOrigem" xmlns:ns0="http://ComoFuncinamOsMapas.PessoaDestino2" xmlns:userCSharp="http://schemas.microsoft.com/BizTalk/2003/userCSharp">
<xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
<xsl:template match="/">
<xsl:apply-templates select="/s0:PessoaOrigem" />
</xsl:template>
<xsl:template match="/s0:PessoaOrigem">
<xsl:variable name="var:v1" select="userCSharp:LogicalIsString(string(CodigoPostal/text()))" />
<xsl:variable name="var:v3" select="userCSharp:StringConcat(string(Nome/text()) , &quot; &quot; , string(Apelido/text()))" />
<ns0:PessoaDestino2>