This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define COMBINE1(X,Y) X##_##Y | |
#define COMBINE(X,Y) COMBINE1(X,Y) | |
#define QUOTE_EX(p, dummy) #p | |
#define QUOTE(p) QUOTE_EX(p, dummy) | |
#define DefMacro(p) \ | |
class COMBINE(Dummy_##p, __COUNTER__){\ | |
void info(){\ | |
auto undefinedWhenTrue = #p == QUOTE(p); \ | |
auto value = QUOTE(p);\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<UsingTask TaskName="GetNewestFiles" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
<ParameterGroup> | |
<Path ParameterType="System.String" Required="true" /> | |
<FileFilter ParameterType="System.String" Required="true" /> | |
<HowManyFiles ParameterType="System.Int32" Required="true" /> | |
<FilesToCopy ParameterType="System.String[]" Output="true" /> | |
</ParameterGroup> | |
<Task> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe ilmerge.msbuild.xml /p:out=Dependencies.dll /p:dir=dir_with_assemblies_to_merge | |
--> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<ILPath>packages\ilmerge.2.13.0307\ILMerge.exe</ILPath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First check registry: https://gist.github.com/Seikilos/ab23cf6b85e1d65936a5 | |
Then to locate symlinks and junctions: | |
dir /AL /S c:\ > symlinks.txt 2>&1 | |
or use | |
http://www.nirsoft.net/utils/ntfs_links_view.html | |
THIS DOES NOT LOCATE SIMPLE LINKS! | |
Use lnk parser: https://code.google.com/p/lnk-parser/downloads/list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
IF "%1"=="" GOTO ERROR | |
echo Searching for %1 | |
REG Query HKLM /F "%1" /S | |
REG Query HKCU /F "%1" /S | |
REG Query HKCR /F "%1" /S | |
REG Query HKU /F "%1" /S |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <string> | |
#include <functional> | |
#include <vector> | |
#include <utility> | |
/** | |
* Pipeline class. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
using System.Xml.Linq; | |
namespace YourNS | |
{ | |
public static class Utils | |
{ | |
#region Attribute Helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <functional> | |
#include <assert.h> | |
namespace Utils | |
{ | |
/** | |
* Provides arbitrary stepping functionality with a custom property type | |
*/ | |
template<typename TFunc> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Replace LISMemoryComparer.MemoryComparerManager.SplitMemoryDumpLine(string DumpLine) with: | |
private static string[] SplitMemoryDumpLine(string DumpLine) | |
{ | |
// Split by whitespace, skip whitespace | |
var lines = DumpLine.Trim().Split(' '); | |
var Result = new List<string>(); | |
foreach (var line in lines) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fixture.Customizations.Add( | |
new FilteringSpecimenBuilder( | |
new MethodInvoker( | |
new EnumerableFavoringConstructorQuery()), | |
new ObservableCollectionSpecification())); | |
internal class ObservableCollectionSpecification : IRequestSpecification | |
{ | |
public bool IsSatisfiedBy(object request) | |
{ |
NewerOlder