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
function InitializeWindowsCredential | |
{ | |
Write-Verbose ("Loading PasswordVault Class.") | |
[void][Windows.Security.Credentials.PasswordVault,Windows.Security.Credentials,ContentType=WindowsRuntime] | |
} | |
InitializeWindowsCredential | |
function ConvertTo-PasswordCredential | |
{ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
SELECT mf.name, | |
mf.VersionMajor, | |
mf.VersionMinor, | |
mf.VersionBuildNo, | |
mf.VersionRevision, | |
COUNT(*) AS 'Element count' | |
FROM modelelementdata med | |
JOIN modelmanifest mf ON mf.modelid = med.modelid | |
WHERE mf.VersionBuildNo BETWEEN 1000 AND 3999 | |
GROUP BY mf.name, |
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
function Get-LatestDropLocation { | |
param( | |
[Parameter(Position=0,Mandatory=$true)] [string]$tfsLocation, | |
[Parameter(Position=1,Mandatory=$true)] [string]$projectName, | |
[Parameter(Position=3,Mandatory=$true)] [string]$buildDefinitionName | |
) | |
Add-Type -AssemblyName "Microsoft.TeamFoundation.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" | |
Add-Type -AssemblyName "Microsoft.TeamFoundation.Build.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" | |
$tfsUri = New-object Uri($tfsLocation) |
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
[[email protected]:~] | |
$ traceroute 216.81.59.173 | |
traceroute to 216.81.59.173 (216.81.59.173), 64 hops max, 52 byte packets | |
1 wireless_broadband_router (192.168.1.1) 4.116 ms 0.904 ms 0.913 ms | |
2 l100.bstnma-vfttp-101.verizon-gni.net (98.110.164.1) 6.852 ms 8.155 ms 9.306 ms | |
3 g4-3-1801.bstnma-lcr-08.verizon-gni.net (130.81.110.44) 7.124 ms 9.601 ms 9.414 ms | |
4 so-0-3-0-0.bos-bb-rtr2.verizon-gni.net (130.81.29.254) 7.097 ms 9.724 ms 10.282 ms | |
5 ge-1-2-0-0.ny325-bb-rtr2.verizon-gni.net (130.81.17.24) 18.991 ms 14.711 ms 14.847 ms | |
6 0.xe-2-0-8.xt2.nyc4.alter.net (152.63.6.253) 22.222 ms 96.148 ms 38.804 ms | |
7 tengige0-6-1-0.gw8.nyc4.alter.net (152.63.21.113) 19.362 ms |
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
# As the last resource in the dnsserver::remove_slave recipe, assuming that the remove_slave | |
# "undoes" a dnsserver slave installation of some kind, without knowing what that might have been. | |
ruby_block "remove_this_recipe" do | |
block do | |
node.run_list.remove("recipe[dnsserver::remove_slave]") if node.run_list.include?("recipe[dnsserver::remove_slave]") | |
end | |
action :nothing | |
end |
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
public static void Configure(HttpConfiguration config) { | |
config.Formatters.Remove(config.Formatters.XmlFormatter); | |
config.Formatters.Remove(config.Formatters.FormUrlEncodedFormatter); | |
// From DefaultContentNegotiator class: | |
// If ExcludeMatchOnTypeOnly is true then we don't match on type only which means | |
// that we return null if we can't match on anything in the request. This is useful | |
// for generating 406 (Not Acceptable) status codes. | |
config.Services.Replace( |
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.Linq; | |
using System.Web; | |
using System.Configuration; | |
using System.IO; | |
using System.Web.Mvc; | |
using System.Runtime.Serialization; | |
using System.Runtime.Serialization.Json; | |
using Twitterizer; |
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.Linq; | |
using System.Web; | |
using System.IO; | |
using System.Web.Mvc; | |
using System.Runtime.Serialization; | |
using System.Runtime.Serialization.Json; | |
using Microsoft.IdentityModel.Protocols.WSFederation; |