Skip to content

Instantly share code, notes, and snippets.


Gregor Suttie gsuttie

View GitHub Profile
View gist:5ada98f46d8e7bf0d2c5
<!DOCTYPE html>
<link href="" rel="stylesheet">
<link href=',300,300italic' rel='stylesheet' type='text/css'>
gsuttie / ldap
Created Sep 15, 2015
ldap tests
View ldap
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace Ldap.Tests
gsuttie / link to jslint forvs2012
Created Sep 13, 2015
link to jslint forvs2012
View link to jslint forvs2012
View gist:004291c3496e665c839a
Lets start using Gulp 3.8
why use a task runner -> oe more tool to add to your toolbox, solves repetition, consistently
preparing javascript/html/css for production - minify and concatenate, 1 file instead of 10 or thousands
less to css compilation
gsuttie / gist:bdf164dea1f67a590084
Created Jul 30, 2015
create a scheduled task using PowerShell
View gist:bdf164dea1f67a590084
#use for API reference
Function Create-ScheduledTask($TaskName,$RunAsUser,$TaskRun,$Schedule,$StartTime,$StartDate,$user, $password){
$cmdStartDate = if([string]::IsNullOrWhiteSpace($StartDate)){""}else{"/sd $StartDate"}
$cmdStartTime = if([string]::IsNullOrWhiteSpace($StartTime)){""}else{"/st $StartTime"}
$cmdInterval = if([string]::IsNullOrWhiteSpace($Interval)){""}else{"/ri $Interval"}
$cmdDuration = if([string]::IsNullOrWhiteSpace($Duration)){""}else{"/du $Duration"}
$Command = "schtasks.exe /create /ru $User /rp $Password /tn `"$TaskName`" /tr `"'$($TaskRun)'`" /sc $Schedule $cmdStartDate $cmdStartTime /F $cmdInterval $cmdDuration"
gsuttie / gist:d07b9e502c9afff184c6
Created Jul 30, 2015
Delete bin and obj folders using PowerShell
View gist:d07b9e502c9afff184c6
function global:DeleteBinObj()
Get-ChildItem .\ -include bin,obj -recu -Force | remove-item -force -recurse -whatif
#remove -whatif once tested its going to do what we want
View gist:6d93f1411df870780573
Enter file contents herelog4net.Config.Basiconfigurator.Configure();
in config hvae something like
<level value="All">
You can’t perform that action at this time.