Skip to content

Instantly share code, notes, and snippets.

View luuksommers's full-sized avatar

Luuk Sommers luuksommers

View GitHub Profile
@NickCraver
NickCraver / Win10NagRemover.ps1
Last active July 25, 2023 00:20
Windows 10 Upgrade Nag Remover. This script removes the Windows 7 & 8 updates that cause the Windows 10 upgrade nags to appear and hides them to prevent re-install. Must be run as administrator.
# Simple script to remove the Windows 10 "Nag" Updates and telemetry additions for Windows 7 & 8 users
# This will uninstall the updates and hide them, preventing installation in the future
# Note: MUST BE RUN AS ADMINISTRATOR, setting updates to hidden requires admin permissions
# Updates removed:
# KB3035583 - Update installs Get Windows 10 app in Windows 8.1 and Windows 7 SP1
# https://support.microsoft.com/en-us/kb/3035583
# KB2952664 - Compatibility update for upgrading Windows 7
# https://support.microsoft.com/en-us/kb/2952664
# KB2976978 - Compatibility update for Windows 8.1 and Windows 8
# https://support.microsoft.com/en-us/kb/2976978
@netsi1964
netsi1964 / Functions.cshtml
Created May 30, 2015 21:11
Umbraco usefull global translate function
@functions {
/// <summary>
/// Using Dictionary return a translation or default value
/// If defaultValue is empty and the key was not defined, a "*"+key will be returned
/// So that you know that you need to create a translation/dictionary for that key
/// </summary>
/// <param name="key">The dictonary key to search for</param>
/// <param name="defaultValue">A optional default value</param>
/// <returns>The found dictonary</returns>
public static String Translate(string key, string defaultValue = "")
@davidfowl
davidfowl / dotnetlayout.md
Last active April 18, 2024 23:31
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@sayedihashimi
sayedihashimi / transform-xml.ps1
Last active January 17, 2024 20:02
Script which can be used to transform an XML file using XDT. All you need to do is download the script and call it. The script will download the files it needs to run.
#!/usr/bin/env powershell
<#
.SYNOPSIS
You can use this script to easly transform any XML file using XDT.
To use this script you can just save it locally and execute it. The script
will download its dependencies automatically.
Created by sayediHashimi
Modified by obscurerichard
Thanks Stack Overflow: https://stackoverflow.com/questions/8989737/web-config-transforms-outside-of-microsoft-msbuild
[AttributeUsage(System.AttributeTargets.All, AllowMultiple = true, Inherited = true)]
public class ಠ_ಠAttribute : Attribute
{
public ILog Log { get; set; }
public ಠ_ಠAttribute()
{
Log.Info("This code is bad and you should feel bad");
}
}