Skip to content

Instantly share code, notes, and snippets.

var SITE_URL = "https://theurlofyourwebsitethisisrunningon.com";
var IDENTITY_URL = "https://yourenant.eu.auth0.com/";
var config = {
authority: IDENTITY_URL,
client_id: "YourAuth0ClientId",
loadUserInfo : true,
post_logout_redirect_uri : SITE_URL + "/your-logout-callback-path",
redirect_uri: SITE_URL + "/your-callback-path",
response_type: "code",
var SITE_URL = "https://theurlofyourwebsitethisisrunningon.com";
var IDENTITY_URL = "https://youridentityserver.com/";
var config = {
authority: IDENTITY_URL,
client_id: "YourClientId",
loadUserInfo : true,
post_logout_redirect_uri : SITE_URL + "/your-logout-callback-path",
redirect_uri: SITE_URL + "/your-callback-path",
response_type: "code",
FROM microsoft/windowsservercore
SHELL ["powershell"]
ENV CATALINA_HOME C:\\Tomcat\\apache-tomcat-8.5.9
RUN C:\Tomcat\apache-tomcat-8.5.9\bin\service.bat install
ADD Search/solr C:\\Tomcat\\apache-tomcat-8.5.9\\solr
ENTRYPOINT ["C:\\ServiceMonitor.exe", "Tomcat8"]
ENV JRE_HOME C:\\Java\\jre1.8.0_91
version: '2.1'
services:
web:
build:
context: .
dockerfile: Web.dockerfile
depends_on:
- db
db:
build:
version: '2.1'
services:
web:
build:
context: .
dockerfile: Web.dockerfile
depends_on:
- db
db:
build:
networks:
default:
external:
name: nat
docker pull microsoft/windowsservercore
docker pull microsoft/mssql-server-windows-express
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Telligent.Evolution.Extensibility.Api.Version1;
using Telligent.Evolution.Extensibility.Version1;
namespace ClassLibrary2
{
private readonly Regex _iframeRegex = new Regex(@"<iframe(.*)src=""(?<url>[^""].*?)""(.*?)/>", RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
public string Body
{
get
{
return _iframeRegex.Replace(_body, (match) =>
{
return string.Format(@"<iframe src=""{0}"" frameborder=""0"" webkitallowfullscreen="""" mozallowfullscreen="""" allowfullscreen=""""></iframe>", match.Groups["url"].Value);
});