Skip to content

Instantly share code, notes, and snippets.

$emojis = @(
'GRINNING FACE',
'GRINNING FACE WITH SMILING EYES',
'FACE WITH TEARS OF JOY',
'SMILING FACE WITH OPEN MOUTH',
'SMILING FACE WITH OPEN MOUTH AND SMILING EYES',
'SMILING FACE WITH OPEN MOUTH AND COLD SWEAT',
'SMILING FACE WITH OPEN MOUTH AND TIGHTLY-CLOSED EYES',
'WINKING FACE',
'SMILING FACE WITH SMILING EYES',

Purplebricks Individual Contributor License Agreement

Thank you for your interest in contributing to open source software projects (“Projects”) made available by Purplebricks Group PLC or its affiliates (Purplebricks). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Purplebricks in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@purplebricks.com.

You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.

Copyright License. You hereby grant, and agree to grant, to Purp

Keybase proof

I hereby claim:

  • I am ilivewithian on github.
  • I am ilivewithian (https://keybase.io/ilivewithian) on keybase.
  • I have a public key ASClxtoYeLoL1wMakDZGAPqt9CZbk2DfNt0RRLHxDs1bJwo

To claim this, I am signing this object:

@ilivewithian
ilivewithian / logger
Last active January 3, 2018 12:02
Simple Log4Net Config
public static class Logger
{
public static ILog Create()
{
var hierarchy = (Hierarchy)LogManager.GetRepository(typeof(Logger).Assembly);
hierarchy.Root.RemoveAllAppenders();
var pl = new PatternLayout();
pl.ConversionPattern = "%d [%t] %-5p %m%n";
pl.ActivateOptions();
public static T FindParent<T>(this Control target) where T : Control
{
if (target.Parent == null)
{
return null;
}
var parent = target.Parent as T;
if (parent != null)
{
%windir%\system32\inetsrv\APPCMD.EXE unlock config /section:windowsAuthentication
%windir%\system32\inetsrv\APPCMD.EXE unlock config /section:anonymousAuthentication
<ServiceDefinition name="MyService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
<WebRole name="WebRole1">
<Startup>
<Task commandLine="Startup.cmd" executionContext="elevated" taskType="simple">
</Task>
</Startup>
</WebRole>
</ServiceDefinition>
@ilivewithian
ilivewithian / web.config.xml
Created May 13, 2012 15:38
SSL SMTP Web.config snippet
<configuration>
<system.net>
<mailSettings>
<smtp deliveryMethod=”network”>
<network host="localhost"
port="25"
enableSsl="true"
defaultCredentials="true" />
</smtp>
</mailSettings>
@ilivewithian
ilivewithian / routing.cs
Created October 17, 2011 20:21
robots.txt Route
routes.MapRoute(
"Robots.txt",
"Robots.txt",
new
{
controller = "Robots",
action = "RobotsText"
}
);
@ilivewithian
ilivewithian / Web.live.config
Created October 17, 2011 20:20
Live config transform
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<appSettings>
<add key="SiteStatus" value="live" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
</appSettings>
</configuration>