Skip to content

Instantly share code, notes, and snippets.

Sebastiaan Janssen nul800sebastiaan

Block or report user

Report or block nul800sebastiaan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ProNotion
ProNotion / Purge Long Folder Structures
Last active May 12, 2016
How to Delete Files which exceed 255 Characters on Windows e.g. long filenames
View Purge Long Folder Structures
robocopy /PURGE <empty_dir> <directory_to_remove>
@terrehbyte
terrehbyte / SkypeAds.md
Created Dec 15, 2014
Removing Skype Ads
View SkypeAds.md
  1. Block ads from loading
  2. Add https://apps.skype.com to Internet Explorer's Restricted Sites
  3. Hide the placeholder for the ads
  4. Open the config file at C:\users\USERNAME\AppData\Roaming\Skype\SKYPEuserNAME\config.xml
  5. Find <AdvertPlaceholder>1</AdvertPlaceholder> and change it from 1 to 0
@aaronpowell
aaronpowell / gist:d798507cbca08d86b41a
Created Apr 30, 2014
Find csproj files referencing an assembly
View gist:d798507cbca08d86b41a
Get-ChildItem -Filter *.csproj -Recurse |
Select-Object -Property FullName,@{N="Xml"; E = {
Select-Xml -Path $_.FullName -XPath //b:Reference -Namespace @{b='http://schemas.microsoft.com/developer/msbuild/2003'} |
Select-Object -ExpandProperty Node |
Select-Object -Property Include, HintPath |
Where-Object { $_.HintPath -ne $null } |
Where-Object { $_.Include -eq "My.Assembly.Name" }
} } |
Where-Object { $_.Xml -ne $null } |
Out-GridView
@xavierdecoster
xavierdecoster / register a myget feed.markdown
Last active Aug 30, 2018
Store MyGet credentials in your roaming user profile NuGet.config
View register a myget feed.markdown

Execute the following script using your MyGet [feedUrl] and MyGet [username] , [password] and [apikey]. Run this from a commandline where you have access to nuget.exe (or set the path to your nuget.exe in a system environment variable).

Store credentials in machine-level nuget.config (non-transferable)

nuget setapikey [apikey] -source [feedUrl]
nuget sources add|update -Name [name] -source [feedUrl] -User [username] -pass [password]
@aaronpowell
aaronpowell / License.md
Created May 16, 2012
A useful exception for when you don't want to implement a feature yourself
View License.md

The MIT License

Copyright (c) 2012 Aaron Powell

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWA

@joeriks
joeriks / dncollab.cs
Created Mar 23, 2011
Umbraco DynamcNode Extensions
View dncollab.cs
///
/// This is a first attempt to make some useful extension methods to dynamic node and dynamic node list
/// Comments and collab is more than welcome!
///
/// Ref (Gareth Evans):
/// http://umbraco.com/follow-us/blog-archive/2011/2/28/umbraco-razor-feature-walkthrough-%E2%80%93-part-3
///
using System;
using System.Collections.Generic;
@joeriks
joeriks / madmimi.cshtml
Created Mar 21, 2011
Helper function to send Mad Mimi promotional email
View madmimi.cshtml
@using System.Text
@using System.Reflection
@functions {
private const string Username = "your email";
private const string APIKey = "your api-key";
private const string Sender = "your email";
public static string ToYaml(object o)
{
@cyfer13
cyfer13 / Umbraco Razor Navigation
Created Mar 21, 2011
A navigation control written using c# Razor
View Umbraco Razor Navigation
@inherits umbraco.MacroEngines.DynamicNodeContext
@using umbraco.MacroEngines
@{
Page.useStartingNodeAsHeaderNode = ConvertStringToBool(@Parameter.useStartingNodeAsHeaderNode);
Page.startingNodeId = ConvertStringToInt(@Parameter.startingNodeId);
Page.numberOfLevelsToDisplay = GetNumberOfLevelsToDisplay(@Parameter.numberOfLevelsToDisplay);
Page.cssClassForActiveTree = GetStringvalue(@Parameter.cssClassForActiveTree, "active");
Page.cssClassForCurrentlySelectedNode = GetStringvalue(@Parameter.cssClassForCurrentlySelectedNode, "selected");
Page.startingLevel = GetStartingLevel();
You can’t perform that action at this time.