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
connect = require "connect" | |
child_process = require "child_process" | |
spawn = child_process.spawn | |
url = require "url" | |
getInfoRefs = (req, res) -> | |
res.setHeader "Expires", "Fri, 01 Jan 1980 00:00:00 GMT" | |
res.setHeader "Pragma", "no-cache" | |
res.setHeader "Cache-Control", "no-cache, max-age=0, must-revalidate" | |
res.setHeader "Content-Type", "application/x-#{req.query.service}-advertisement" |
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
# ------------------------------------------------------------------------ | |
# hg.pm | |
# | |
# Source Server module to handle adding version control information to | |
# PDB symbol files for source code that is stored in a Mercurial | |
# repository. | |
# | |
# Copyright (c) 2010 ImaginaryRealities, LLC | |
# ------------------------------------------------------------------------ |
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
namespace ADUserProfile | |
{ | |
using System; | |
using System.DirectoryServices; | |
using System.Globalization; | |
using Newtonsoft.Json; | |
/// <summary> | |
/// Program that will query Active Directory for a user'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
namespace Client | |
{ | |
using System; | |
using System.ServiceModel; | |
using Contracts; | |
internal class ClientProgram | |
{ | |
public static void Main(string[] args) |
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
# This function will accept component GUIDs from the pipeline | |
# and will attempt to find and delete the component records | |
# in the Windows Installer registry hive if they exist. | |
# | |
# For whatever reason, Windows Installer reverses the GUIDs | |
# when creating the component records in the registry. This | |
# function implements the logic for reversing the GUID values | |
# and building the correct registry key for each component. | |
function Remove-WindowsInstallerComponent { | |
$flags = [System.Text.RegularExpressions.RegexOptions]::Compiled -bor [System.Text.RegularExpressions.RegexOptions]::Singleline |
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
<!-- | |
The GenerateVersionInfo task will generate the VersionInfo.cs file with the | |
metadata for the current build. | |
--> | |
<UsingTask TaskName="GenerateVersionInfo" | |
TaskFactory="CodeTaskFactory" | |
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
<ParameterGroup> |
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
// Copyright 2013 Michael F. Collins, III | |
// This program will enhance the previous sample by running | |
// a program as a child process and only outputting the debug | |
// messages from the child process to standard output. | |
using System; | |
using System.IO; | |
using System.IO.MemoryMappedFiles; | |
using System.Text; |
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
internal static class NativeMethods | |
{ | |
[DllImport("kernel32.dll", CallingConvention = CallingConvention.WinApi, | |
EntryPoint = "CloseHandle", ExactSpelling = true, SetLastError = true)] | |
internal static extern bool CloseHandle(IntPtr handle); | |
[DllImport("kernel32.dll", CallingConvention = CallingConvention.WinApi, | |
CharSet = CharSet.Unicode, EntryPoint = "CreateFileW", | |
ExactSpelling = true, SetLastError = true)] | |
internal static extern IntPtr CreateFile( |
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.Threading.Tasks.Dataflow; | |
using System.Xml.Linq; | |
internal class Program | |
{ | |
private static void Main() | |
{ | |
var inputBlock = new BufferBlock<string>(); |
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.Collections.Generic; | |
using System.Threading.Tasks; | |
using System.Threading.Tasks.Dataflow; | |
using Neuron.Esb; | |
public sealed class NeuronEsbBlock : IDisposable, | |
IPropagatorBlock<ESBMessage, ESBMessage>, | |
IReceivableSourceBlock<ESBMessage> |
OlderNewer