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 task takes in a XDT transform file and transforms it, following any inheritance chain. | |
There should be at least one base transform for this to work; otherwise just use Microsoft's | |
regular TransformXml task. --> | |
<!-- EXAMPLE USAGE: | |
<TransformXmlHierarchy | |
Source="source.xml" | |
Destination="transformed.xml" | |
TaskDirectory="path/to/directory/of/Microsoft.Web.Publishing.Tasks" /> | |
--> | |
<UsingTask |
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
#region Imports | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Collections; | |
using System.Configuration; | |
using System.IO; | |
#endregion |
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-xml '//package' -Path "packages.config" | % { """{0}"": ""{1}""" -f $_.Node.id,$_.Node.version }) -join ",`n" |
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
var priority = $("td.priority").text(); | |
$(".subject div").first().prepend("<div>[" + priority + "]</div>"); | |
$(".subject div").first().append( | |
"<div> <a href='" + document.location + "'>"+ document.location + "</a></div>" | |
); | |
$(".subject").first().append( | |
"<button id='copyButton'>Copy</button>" | |
); |
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 | |
REM !/bin/bash | |
REM trap '[ "$?" -eq 0 ] || read -p "Looks like something went wrong... Press any key to continue..."' EXIT | |
set VM=default | |
set DOCKER_MACHINE="./docker-machine.exe" | |
REM if [ ! -z "$VBOX_MSI_INSTALL_PATH" ]; then |
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 | |
REM SETLOCAL EnableDelayedExpansion | |
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do ( | |
set "DEL=%%a" | |
) | |
echo say the name of the colors, don't read | |
call :ColorText 0a "blue" | |
call :ColorText 0C "green" | |
call :ColorText 0b "red" |
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 | |
REM SETLOCAL EnableDelayedExpansion | |
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do ( | |
set "DEL=%%a" | |
) | |
echo say the name of the colors, don't read | |
call :ColorText 0a "blue" | |
call :ColorText 0C "green" | |
call :ColorText 0b "red" |
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 | |
(echo REM pyvm.cmd) > "%TEMP%\_env.cmd" | |
powershell %~dp0\pyvm.ps1 %* | |
call "%TEMP%\_env.cmd" |
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-NuspecVersion($nuspec = $null) { | |
if ([string]::IsNullOrEmpty($nuspec)) { | |
$nuspec = Get-ChildItem . -Filter *.nuspec | select -First 1 | |
} | |
$content = Get-Content $nuspec | |
$verRegex = "<version>(.*)</version>" | |
[string]$line = $content | where { $_ -match $verRegex } | select -First 1 | |
$ver = $matches[1] | |
return $ver | |
} |
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
[CmdletBinding()] | |
param ($path = ".", [switch][bool]$importonly) | |
function get-envinfo($checkcommands) { | |
$result = @{} | |
write-verbose "Powershell version:" | |
$result.PSVersion = $PSVersionTable.PSVersion | |
$result.PSVersion | format-table | out-string | write-verbose |
OlderNewer