conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add script to push nuget package to nuget\n"
},
{
"from": "gpt",
"value": "param([string]$apikey) \n$pkg = ls .\\XUnitRemote\\bin\\Debug\\*.nupkg | sort-object | select-object -last 1\n./nuget.exe push $pkg.FullName -ApiKey $apikey \n"
}
] | powershell | chosen |
[
{
"from": "system",
"value": "Add some new PowerShell aliases.\n"
},
{
"from": "human",
"value": "# Use the Git and posh-git from GitHub for Windows.\n# See <http://stackoverflow.com/a/12524788>\n. (Resolve-Path \"$env:LOCALAPPDATA\\GitHub\\shell.ps1\")\n. $env:github_posh_git\\profile.example.p... | powershell | chosen |
[
{
"from": "system",
"value": "Revert changes to es start script\n"
},
{
"from": "human",
"value": "$es_version = \"5.0.0\"\nIf ($env:ES_VERSION) {\n $es_version = $env:ES_VERSION\n}\n\nIf ($env:JAVA_HOME -eq $null -or !(Test-Path -Path $env:JAVA_HOME)) {\n Write-Error \"Please ensure the ... | powershell | chosen |
[
{
"from": "system",
"value": "Allow packaging only recently modified Quarks\n"
},
{
"from": "human",
"value": "Include-PluginScripts\r\n\r\ntask SetVersion\r\n\r\ntask Pack {\r\n\tNew-Item $artifactsPath -Type directory -Force | Out-Null\r\n\tGet-ChildItem $basePath\\$projectName\\*.nuspec -Recu... | powershell | chosen |
[
{
"from": "system",
"value": "Enable strict mode for the module\n"
},
{
"from": "human",
"value": "# Import all scripts as functions\n$Scripts = Get-ChildItem -Path (Join-Path -Path $PSScriptRoot -ChildPath 'Scripts') -File\nforeach ($Script in $Scripts) {\n New-Item -Path ('Function:\\{0}' -... | powershell | chosen |
[
{
"from": "system",
"value": "Add Get/Set ExecutionPolicy cmdlets back to module\n\nWithout these declared in the Unix module manifest,\nthe related tests fail as the cmdlets cannot be found.\nThis is a regression.\n"
},
{
"from": "human",
"value": "@{\nGUID=\"A94C8C7E-9810-47C0-B8AF-65089C13A35... | powershell | chosen |
[
{
"from": "system",
"value": "Make User parameter optional in Get-NonInheritedACLs\n"
},
{
"from": "human",
"value": "# Retrieve files with a minimum number of hard links\nFunction Get-MultipleHardLinks {\n [CmdletBinding()]\n Param(\n [Parameter(Mandatory)]\n [IO.DirectoryIn... | powershell | chosen |
[
{
"from": "human",
"value": "Add an Appveyor forwarding script, still waiting to see if it can be improved\n"
},
{
"from": "gpt",
"value": "$VAR=Invoke-WebRequest https://raw.github.com/ndmitchell/neil/master/misc/appveyor.ps1\n$TEMP=New-TemporaryFile\n$FILE=$TEMP.FullName + \".ps1\"\n$VAR.Conte... | powershell | chosen |
[
{
"from": "system",
"value": "Move our output files to out too\n"
},
{
"from": "human",
"value": "$baseDir = Resolve-Path \"$PSScriptRoot/..\"\n$outDir = \"$baseDir\\out\"\n$msbuildExe = \"C:\\Program Files (x86)\\MSBuild\\12.0\\bin\\MsBuild.exe\"\n$nugetExe = \"$baseDir\\.nuget\\NuGet.exe\"\n\n... | powershell | chosen |
[
{
"from": "system",
"value": "Correct branch detection in build script\n"
},
{
"from": "human",
"value": "Push-Location $PSScriptRoot\n\nif(Test-Path .\\artifacts) { Remove-Item .\\artifacts -Force -Recurse }\n\n& dotnet restore --no-cache\n\n$branch = $(git symbolic-ref --short -q HEAD)\n$revis... | powershell | chosen |
[
{
"from": "system",
"value": "Determine status behaviour based on PS version\n"
},
{
"from": "human",
"value": "Param(\n [Parameter(Mandatory=$true)]\n [string]$VmId\n)\n\n# Include the following modules\n$Dir = Split-Path $script:MyInvocation.MyCommand.Path\n. ([System.IO.Path]::Combine($... | powershell | chosen |
[
{
"from": "human",
"value": "Create a script to restore the release files\n"
},
{
"from": "gpt",
"value": "New-Item Releases -type directory -force\n\n$wc = New-Object System.Net.WebClient\n\n$wc.DownloadFile(\"https://s3.amazonaws.com/espera/Releases/Dev/RELEASES\", \".\\Releases/RELEASES\");\n... | powershell | chosen |
[
{
"from": "system",
"value": "Use more conservative TLS settings to work on older .NET versions\n"
},
{
"from": "human",
"value": "# Powershell supports only TLS 1.0 by default. Add support for TLS 1.2 and TLS 1.3\n[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocol... | powershell | chosen |
[
{
"from": "system",
"value": "Add another cosmos db tool for vscode"
},
{
"from": "human",
"value": "###\n### Install Visual Studio Code via Chocolatey and my preferred extensions\n###\n\n$Extensions = @(\n 'ms-dotnettools.csharp',\n 'github.codespaces',\n 'ms-vscode.powershell',\n '... | powershell | chosen |
[
{
"from": "human",
"value": "Add build script for release configuration\n"
},
{
"from": "gpt",
"value": "$solutionfile = \"..\\AppFabric.Admin.sln\"\n$msbuild = $env:windir + \"\\Microsoft.NET\\Framework64\\v4.0.30319\\msbuild.exe\"\n$msbuildargs = $solutionfile + \" /t:rebuild /property:Config... | powershell | chosen |
[
{
"from": "system",
"value": "Fix twine call on Appveyor\n\nSigned-off-by: Chris Harris <a361e89d1eba6c570561222d75facbbf7aaeeafe@kitware.com>\n"
},
{
"from": "human",
"value": "trap { Write-Error $_; Exit 1 }\n\npip install twine\ntwine upload dist/*\n"
},
{
"from": "gpt",
"value": ... | powershell | chosen |
[
{
"from": "system",
"value": "Use elseif for edit command\n"
},
{
"from": "human",
"value": "chcp 65001 | out-null\n\nfunction prompt {\n '[' + $env:username + '@' + $env:computername + ' ' + $pwd + \"]`r`n$ \"\n}\n\nfunction .. {\n Set-Location ..\n}\nfunction ... {\n Set-Location ..\\... | powershell | chosen |
[
{
"from": "system",
"value": "Add new tests for Get-WinEvent\n"
},
{
"from": "human",
"value": "Describe 'Get-WinEvent' -Tags \"CI\" {\n\n # Get-WinEvent works only on windows\n It 'can query a System log' -Skip:(-not $IsWindows) {\n Get-WinEvent -LogName System -MaxEvents 1 | Shoul... | powershell | chosen |
[
{
"from": "human",
"value": "Add testcase: install vm by iso\n"
},
{
"from": "gpt",
"value": "###############################################################################\n##\n## Description:\n## Check vm, because vm is already installed by iso, so only check vm exists\n## Return passed, ... | powershell | chosen |
[
{
"from": "human",
"value": "Add temp script to create commonly used boxes\n"
},
{
"from": "gpt",
"value": "Measure-Command { \n\tMeasure-Command { make virtualbox/eval-win10x64-enterprise }\n\tMeasure-Command { make virtualbox/eval-win10x86-enterprise }\n\tMeasure-Command { make virtualbox/eval... | powershell | chosen |
[
{
"from": "system",
"value": "Edit from Staxx on my phone via github.com!"
},
{
"from": "human",
"value": "$vsixpublish = Get-ChildItem -File .\\packages -recurse | \n Where-Object { $_.Name -eq \"VsixPublisher.exe\" } | \n Sort-Object -Descending -Property CreationTime | \n Select-Obje... | powershell | chosen |
[
{
"from": "system",
"value": "Fix libs not available when running from outside project root\n"
},
{
"from": "human",
"value": "param($Command, [bool]$OpenInBrowser = $false)\n\n. \"./Sabnzbd-Lib.ps1\"\n\nswitch($Command) {\n\n \"\" {\n start_sabnzbd $OpenInBrowser\n }\n\n \"start\" {\n ... | powershell | chosen |
[
{
"from": "system",
"value": "Fix typo in setting managed flag\n"
},
{
"from": "human",
"value": "[CmdletBinding(DefaultParameterSetName = 'None')]\nparam\n(\n [String] [Parameter(Mandatory = $true)]\n $folder,\n\n [String] [Parameter(Mandatory = $true)]\n $zipFile\n)\n\n$ErrorAction... | powershell | chosen |
[
{
"from": "system",
"value": "Fix manifest encoding to UTF8\n"
},
{
"from": "human",
"value": "#requires -v 3\n\n$masterUrl=\"https://raw.githubusercontent.com/reyerstudio/devstrap/master\"\n$archiveUrl=\"https://github.com/reyerstudio/devstrap/archive\"\n\nfunction update_manifest($name) {\n $... | powershell | chosen |
[
{
"from": "system",
"value": "Add Comment based help link\n"
},
{
"from": "human",
"value": "function ConvertFrom-Base64 {\n <#\n .SYNOPSIS\n Converts the specified string, which encodes binary data as base-64 digits, to an equivalent 8-bit unsigned integer array.\n\n .DESCRIPTIO... | powershell | chosen |
[
{
"from": "system",
"value": "Fix extension of release files.\n"
},
{
"from": "human",
"value": "$ffmpeg = \"ffmpeg-20191118.0.0-d831edc\"\n$version = ($ffmpeg -split '-')[1]\n$rel32 = \"$ffmpeg-lgpl21-v142-static-md-x86\"\n$rel64 = \"$ffmpeg-lgpl21-v142-static-md-x64\"\n$wc = New-Object System.... | powershell | chosen |
[
{
"from": "system",
"value": "Upgrade to VM v7.0.46 (has 64-bit stdio function exports)\n"
},
{
"from": "human",
"value": "\n# Powershell script to pull the VM files from GitHub into the current folder.\n# Edit the following to match the version of the VM that is compatible with this image\n\npa... | powershell | chosen |
[
{
"from": "human",
"value": "Add script to download ap service certificate from azure\n"
},
{
"from": "gpt",
"value": "$appServiceCertificateName = \"res-cloud\"\n$resourceGroupName = \"res-cloud\"\n$azureLoginEmailId = \"cedd.burge@res-group.com\"\n$subscriptionId = \"cce8e938-137d-4f17-98c4-6e... | powershell | chosen |
[
{
"from": "system",
"value": "Update deployment script to link the Modix container with the CSDiscord container so they can communicate.\n"
},
{
"from": "human",
"value": "$ErrorActionPreference = 'Stop';\n\n$tag = $env:APPVEYOR_REPO_BRANCH\nif(-not [System.String]::IsNullOrWhitespace($env:APPVE... | powershell | chosen |
[
{
"from": "system",
"value": "Add default configuration for powershell\n"
},
{
"from": "human",
"value": "Set-Alias ll Get-ChildItem\n"
},
{
"from": "gpt",
"value": "chcp 65001 | out-null\n\nfunction prompt {\n '[' + $env:username + '@' + $env:computername + ' ' + $pwd + \"]`r`n$ ... | powershell | chosen |
[
{
"from": "system",
"value": "tests(Compute): Load tools from the correct path.\nThis is why timeout was not having any effect.\n"
},
{
"from": "human",
"value": "# Copyright 2021 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file exce... | powershell | chosen |
[
{
"from": "human",
"value": "Add untested script to run WACK\n\nWe were not able to run WACK in the build server, but we are transfering\nthe current script to this file anyway, so the server is free of source code.\n"
},
{
"from": "gpt",
"value": "$appxs = Get-ChildItem -Recurse -Filter \"**_x8... | powershell | chosen |
[
{
"from": "system",
"value": "Remove function prototypes from psm1"
},
{
"from": "human",
"value": "\n\n\n<#\n .Synopsis\n DEPRECATED - Installing the AzureRM module installs all AzureRM cmdlets.\n\n .Description\n DEPRECATED - Installing the AzureRM module installs all AzureRM cmdlets.\n\n .P... | powershell | chosen |
[
{
"from": "system",
"value": "Update packer for nested virtualization\n"
},
{
"from": "human",
"value": "cd $env:TEMP\nwget -outfile Packer.zip -uri https://dl.bintray.com/taliesins/Packer/:Packer.1.0.0.118-HyperV.nupkg -UseBasicParsing\nExpand-Archive packer.zip\ncopy packer\\packer.exe $env:Ch... | powershell | chosen |
[
{
"from": "system",
"value": "Simplify syntax for disable .NET Core telemetry\n"
},
{
"from": "human",
"value": "if (!(Get-Command -Name dotnet -ErrorAction Ignore)) {\n Write-Verbose -Message (Get-DotFilesMessage -Message 'Skipping .NET Core settings as unable to locate dotnet.')\n return... | powershell | chosen |
[
{
"from": "human",
"value": "Add script for verifying that all repos have the same version\n"
},
{
"from": "gpt",
"value": "# Get the current version of RapidCore\n# Check that all other libraries have this version too..\n\nfunction Get-Version {\n # $path: the path to navigate to, where we s... | powershell | chosen |
[
{
"from": "system",
"value": "Remove version extraction for SSMS\n"
},
{
"from": "human",
"value": "#\n# SQL Server Management Studio 2016 snapshot script\n# https://github.com/turboapps/turbome/tree/master/sqlserver/ssms2016\n#\n# Licensed under the Apache License, Version 2.0\n# http://www.apa... | powershell | chosen |
[
{
"from": "human",
"value": "Add PS script to run Wyam\n"
},
{
"from": "gpt",
"value": "$wyam = 'Wyam.exe'\n\n$config = Join-Path $PSScriptRoot 'Wyam/config.wyam'\n$input = Join-Path $PSScriptRoot 'Wyam/Input'\n$output = Join-Path $PSScriptRoot 'Wyam/Output'\n\n. $wyam --config $config --input $... | powershell | chosen |
[
{
"from": "system",
"value": "Update vscode extension installation script\n"
},
{
"from": "human",
"value": "# Script to install extensions for Visual Studio Code\n\n\n# Install Language Extensions\n## golang\ncode --install-extension ms-vscode.go\n\n## Python\ncode --install-extension ms-python... | powershell | chosen |
[
{
"from": "human",
"value": "Add script for downloading latest Adobe Reader version.\n"
},
{
"from": "gpt",
"value": "# Remove progress bars for Invoke-Request to significantly improve performance\n$ProgressPreference = 'SilentlyContinue'\n\n# Get latest version for Acrobat Reader from their SCU... | powershell | chosen |
[
{
"from": "system",
"value": "Update upload script for appveyor to use new deployment url"
},
{
"from": "human",
"value": "function uploadRsqueak {\n [CmdletBinding()]\n param([string] $pattern)\n $loc = Get-Location\n $provider = $loc.Provider\n $files = @()\n $longfiles = $pscmdlet.GetRe... | powershell | chosen |
[
{
"from": "human",
"value": "Add ExchangeOnline settings with ignored user properties\n"
},
{
"from": "gpt",
"value": "if ($DotFilesShowScriptEntry) {\n Write-Verbose -Message (Get-DotFilesMessage -Message $PSCommandPath)\n}\n\nif (!(Test-IsWindows)) {\n return\n}\n\ntry {\n if (!$DotFi... | powershell | chosen |
[
{
"from": "system",
"value": "Use proper build directory (has configuration)\n"
},
{
"from": "human",
"value": "# Create the PerfTests directory under Binaries\\$(Configuration). There are still a number\n# of tools (in roslyn and roslyn-internal) that depend on this combined directory.\n[Cmdle... | powershell | chosen |
[
{
"from": "system",
"value": "Use Get-ToolsLocation instead of ChocolateyToolsLocation.\n\n#20.\n"
},
{
"from": "human",
"value": "$osVersion = [Environment]::OSVersion.Version.Major\r\n$osRelId = (gp 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion').ReleaseId\r\nif ($osVersion -ne 10 -o... | powershell | chosen |
[
{
"from": "system",
"value": "Use correct install path for CodeCoverage.exe\n"
},
{
"from": "human",
"value": "mkdir Temp\ncd Temp\nnuget install Microsoft.CodeCoverage -Version 16.4.0\ncd ..\n\nNew-Item -Type Directory -Force -Path \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Commu... | powershell | chosen |
[
{
"from": "system",
"value": "Add Unit Test for StartSleepTest.cs\n"
},
{
"from": "human",
"value": "Describe \"Start-Sleep\" {\n\n Context \"Validate Start-Sleep works properly\" {\n\tIt \"Should only sleep for at least 1 second\" {\n\t $result = Measure-Command { Start-Sleep -s 1 }\n\t ... | powershell | chosen |
[
{
"from": "system",
"value": "Copy Telegraf extra file into Windows package\n"
},
{
"from": "human",
"value": "$ErrorActionPreference = \"stop\"\r\nNew-Item -ItemType Directory \"$env:PKG_PATH/bin\"\r\nNew-Item -ItemType Directory \"$env:PKG_PATH/conf\"\r\nnew-item -Path \"c:\\gopath\\src\\githu... | powershell | chosen |
[
{
"from": "system",
"value": "Debug the current directory when zipping\n"
},
{
"from": "human",
"value": "function ZipFiles( $zipfilename, $sourcedir )\n{\n Add-Type -Assembly System.IO.Compression.FileSystem\n $compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal\n [System... | powershell | chosen |
[
{
"from": "human",
"value": "Add script to run web config transformations\n\n"
},
{
"from": "gpt",
"value": "$environmentName = \"Production\"\n\n# Applying web.config transformations\n$webConfigTransformatorPackages = Join-Path -Path $env:USERPROFILE -ChildPath \"\\.nuget\\packages\\WebConfigTr... | powershell | chosen |
[
{
"from": "system",
"value": "Add note about windows update\n"
},
{
"from": "human",
"value": "Import-Module .\\Functions\n\n# Install BoxStarter to handle some system configuration\ncinst BoxStarter\n\n## System Configuration\n\nSet-ExplorerOptions -showHidenFilesFoldersDrives -showFileExtensio... | powershell | chosen |
[
{
"from": "system",
"value": "[StandardPublishingCMS] Change timer job name for variations schedule for pages\n"
},
{
"from": "human",
"value": "# ------------------------------------------------------------------------------------------------------------\n# Copyright\t\t : GSoft @2015\n# Mode... | powershell | chosen |
[
{
"from": "system",
"value": "Add support for resetting scoop\n"
},
{
"from": "human",
"value": "# Usage: scoop reset <app>\n# Summary: Reset an app to resolve conflicts\n# Help: Used to resolve conflicts in favor of a particular app. For example,\n# if you've installed 'python' and 'python27', ... | powershell | chosen |
[
{
"from": "system",
"value": "Update build script for core\n"
},
{
"from": "human",
"value": "param (\n\t## The build target, i.e. Build, Rebuild, Clean\n\t[string]$Target = 'Build',\n\n\t## The build configuration, i.e. Debug/Release\n\t[string]$Configuration = 'Debug'\n)\n\n$ErrorActionPrefere... | powershell | chosen |
[
{
"from": "system",
"value": "Upgrade to VM version 7.0.54\n"
},
{
"from": "human",
"value": "\n# Powershell script to pull the VM files from GitHub into the current folder.\n# Edit the following to match the version of the VM that is compatible with this image\n\nparam \n(\n [string]$VMversi... | powershell | chosen |
[
{
"from": "system",
"value": "Add FsMtParser to build/pack nuget package\n"
},
{
"from": "human",
"value": "Push-Location $PSScriptRoot\n\nif(Test-Path .\\artifacts) { Remove-Item .\\artifacts -Force -Recurse }\n\n& dotnet restore --no-cache\n\n$branch = @{ $true = $env:APPVEYOR_REPO_BRANCH; $fa... | powershell | chosen |
[
{
"from": "system",
"value": "Use 1607 tag to have that image as first in manifest list\n"
},
{
"from": "human",
"value": "$version=$(select-string -Path Dockerfile -Pattern \"ENV CURL_VERSION\").ToString().split()[-1]\ndocker tag curl stefanscherer/curl-windows:$version-2016\ndocker push stefan... | powershell | chosen |
[
{
"from": "system",
"value": "Add exit code test in appveyor script\n"
},
{
"from": "human",
"value": "$netherRoot = $PSScriptRoot\n\n# launch Nether.Web\nStart-Process powershell \"$netherRoot\\rundev.ps1\"\n\n# test for 200 OK from GET http://localhost:5000\n# with a retry window of 300 second... | powershell | chosen |
[
{
"from": "human",
"value": "Add script to launch app via adb\n"
},
{
"from": "gpt",
"value": "a\u0000d\u0000b\u0000 \u0000s\u0000h\u0000e\u0000l\u0000l\u0000 \u0000m\u0000o\u0000n\u0000k\u0000e\u0000y\u0000 \u0000-\u0000p\u0000 \u0000$\u0000a\u0000r\u0000g\u0000s\u0000[\u00000\u0000]\u0000 \u00... | powershell | chosen |
[
{
"from": "system",
"value": "Check architecture when installing via Chocolatey.\n"
},
{
"from": "human",
"value": "$osVersion = [Environment]::OSVersion.Version.Major\r\n$osRelId = (gp 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion').ReleaseId\r\nif ($osVersion -ne 10 -or $osRelId -lt ... | powershell | chosen |
[
{
"from": "system",
"value": "Update module manifest to test PSEdition\n"
},
{
"from": "human",
"value": "#\n# Script module for module 'PSScriptAnalyzer'\n#\n\n# Clear PSDefaultParameterValues in the module scope and enable strict mode\n$PSDefaultParameterValues.Clear()\nSet-StrictMode -Version... | powershell | chosen |
[
{
"from": "human",
"value": "Update Local Module Metadata is a runbook not a reference PS module\n"
},
{
"from": "gpt",
"value": "<#\n .Synopsis\n Runs in an SMA environment and imports all metadata about a PowerShell module\n into the environment\n#>\nWorkflow Update-LocalModu... | powershell | chosen |
[
{
"from": "system",
"value": "Remove the PoSh diff alias if the real deal is present\n"
},
{
"from": "human",
"value": "if ($DotFilesShowScriptEntry) {\n Write-Verbose -Message (Get-DotFilesMessage -Message $PSCommandPath)\n}\n\nWrite-Verbose -Message (Get-DotFilesMessage -Message 'Configurin... | powershell | chosen |
[
{
"from": "system",
"value": "Add conemu and msys2 via chocolatey\n"
},
{
"from": "human",
"value": "Set-ExecutionPolicy Unrestricted\niex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))\nchoco install conemu\nchoco install msys2\n"
},
{
"from": "... | powershell | chosen |
[
{
"from": "system",
"value": "Use native powershell for unzipping\n"
},
{
"from": "human",
"value": "Write-Host \"Installing chocolatey\"\nSet-ExecutionPolicy Unrestricted\niex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))\n\n((New-Object System.Net.Web... | powershell | chosen |
[
{
"from": "system",
"value": "Fix scope of $LastObject in Out-Default function\n"
},
{
"from": "human",
"value": "Write-Verbose -Message (Get-DotFilesMessage -Message 'Configuring PowerShell ...')\n\n# Number of elements to enumerate when displaying arrays\n$FormatEnumerationLimit = 5\n\n# Defau... | powershell | chosen |
[
{
"from": "system",
"value": "Update fix based on comments for Export-Clixml and Import-Clixml Pester Test\n"
},
{
"from": "human",
"value": "Describe \"XmlCommand DRT basic functionality Tests\" -Tags DRT{\n\n\tBeforeAll {\n\t\tif(-not ([System.Management.Automation.PSTypeName]'IsHiddenTestType... | powershell | chosen |
[
{
"from": "system",
"value": "Update installation script to use file\n"
},
{
"from": "human",
"value": "$package = 'GitDiffMargin'\n\n$params = @{\n PackageName = $package;\n VsixUrl = 'https://visualstudiogallery.msdn.microsoft.com/cf49cf30-2ca6-4ea0-b7cc-6a8e0dadc1a8/file/101267/12/GitDiffMa... | powershell | chosen |
[
{
"from": "system",
"value": "Allow create or not ACR when creating k8s\n"
},
{
"from": "human",
"value": "Param(\n [parameter(Mandatory=$true)][string]$resourceGroupName,\n [parameter(Mandatory=$true)][string]$location,\n [parameter(Mandatory=$true)][string]$registryName,\n [parame... | powershell | chosen |
[
{
"from": "system",
"value": "Fix build script - nuget pack command\n"
},
{
"from": "human",
"value": "properties {\n\t# base & build directories\n\t$base_dir = . resolve-path .\\\n\t$tests_dir = \"$base_dir\\src\\ReliableUnitOfWork.SqlAzure.UnitTests\\bin\\Release\"\n\n\t# .net framework versio... | powershell | chosen |
[
{
"from": "system",
"value": "Update scoop and concfg in install script\n"
},
{
"from": "human",
"value": "if (Test-Path $PROFILE) {\n $file = Get-Item $PROFILE -Force -ea 0\n $symlink = $file.Attributes -band [IO.FileAttributes]::ReparsePoint\n if (-Not $symlink) {\n Remove-Item... | powershell | chosen |
[
{
"from": "system",
"value": "Fix package versioning in non AppVeyor environment.\n"
},
{
"from": "human",
"value": "# Set versions for AssemblyInfo.cs\n$version = ( Get-Content .\\Version.txt );\n$env:AssemblyBaseVersion = $version | foreach{ if( $_ -match \"^\\d+\\.\\d+\" ){ $matches[0] } }\ni... | powershell | chosen |
[
{
"from": "human",
"value": "Add version number updating script\n"
},
{
"from": "gpt",
"value": "# Update versions.\nparam( [string]$mode = \"fix\", [string]$suffix = $null, [bool]$forceRebuild = $false )\n\n$baseDirectory = \".\\src\"\n[string]$msbuild\nswitch( [Environment]::OSVersion.Platform... | powershell | chosen |
[
{
"from": "system",
"value": "Resolve symlink to bin dir in pwsh profile\n"
},
{
"from": "human",
"value": "# Make tab act like bash\nSet-PSReadlineKeyHandler -Key Tab -Function Complete\n\n# Disable tab completion bell\nSet-PSReadlineOption -BellStyle None\n\n# Aliases\nSet-Alias c code-insider... | powershell | chosen |
[
{
"from": "system",
"value": "Fix test timing out due to module scan\n"
},
{
"from": "human",
"value": "[CmdletBinding()]\nparam()\n\n# Arrange.\n. $PSScriptRoot\\..\\..\\..\\..\\Tests\\lib\\Initialize-Test.ps1\n$module = Microsoft.PowerShell.Core\\Import-Module $PSScriptRoot\\.. -PassThru\n$var... | powershell | chosen |
[
{
"from": "system",
"value": "Validate behaviour of Get-FunctionDefinition when the file doesn't contain any function\n"
},
{
"from": "human",
"value": "#Get public and private function definition files.\n $Public = @( Get-ChildItem -Path $PSScriptRoot\\Public\\*.ps1 -ErrorAction SilentlyCon... | powershell | chosen |
[
{
"from": "system",
"value": "Clean the install directory when installing a new version.\n\nh/t @ferventcoder on git-tfs/git-tfs#341\n"
},
{
"from": "human",
"value": "try {\n $sysDrive = $env:SystemDrive\n $gittfsPath = \"$sysDrive\\tools\\gittfs\"\n \n Install-ChocolateyZipPackage 'gittfs'... | powershell | chosen |
[
{
"from": "system",
"value": "Revert \"Update date format for windows build\"\n\nThis reverts commit 663ef3bb1c3db7f18e8eb4ca471045328291d54e.\n"
},
{
"from": "human",
"value": "$VERSION_FILE = $(split-path $MyInvocation.MyCommand.Definition) + \"\\..\\VERSION\"\n$BUILT_AT_FILE = $(split-path $M... | powershell | chosen |
[
{
"from": "human",
"value": "Test script to invoke a Mozilla HTTP Observatory Scan\n"
},
{
"from": "gpt",
"value": "<#\n .SYNOPSIS\n Invoke a Mozilla HTTP Observatory scan and wait for the scan to complete\n\n .PARAMETER Hostname\n The Hostname of the website to scan, e.g. 'www.mozil... | powershell | chosen |
[
{
"from": "system",
"value": "Fix typo in test project name.\n"
},
{
"from": "human",
"value": "Param(\n\t[switch] $Verbose\n)\n\nIf (!$Verbose) {\n\t$quietFlag = '-quiet'\n}\nElse {\n\t$quietFlag = '-appveyor'\n}\n\n$dnx = Get-Command dnx\n\nFunction Invoke-DnxTests([string] $ProjectName) {\n\t... | powershell | chosen |
[
{
"from": "system",
"value": "Fix a minor issue with the build script\n\n(Azure Websites deployment doesn't like Write-Host)\n"
},
{
"from": "human",
"value": "function Set-AppSetting($x, [string]$name, [string]$value) {\n $setting = $x.configuration.appSettings.add | where { $_.key -eq $name... | powershell | chosen |
[
{
"from": "human",
"value": "Add PowerShell script for build\n"
},
{
"from": "gpt",
"value": "Push-Location $PSScriptRoot\n\n$nuget_path = (join-path (join-path $env:LOCALAPPDATA \"Nuget\") \"nuget.exe\")\nif ((test-path (join-path $env:LOCALAPPDATA \"Nuget\")) -eq $false) {\n New-Item -Path ... | powershell | chosen |
[
{
"from": "system",
"value": "Update subset of approval tests\n"
},
{
"from": "human",
"value": "## This script is related to approval tests that protect developers from unintentional changes to the public API\n## If your change does change the API on purpose and you double-checked correctness o... | powershell | chosen |
[
{
"from": "system",
"value": "Switch to latest version of Docker & base images\n"
},
{
"from": "human",
"value": "Set-ExecutionPolicy Bypass -scope Process\nInvoke-WebRequest \"https://get.docker.com/builds/Windows/x86_64/docker-1.12.0.zip\" -OutFile \"$env:TEMP\\docker-1.12.0.zip\" -UseBasicPar... | powershell | chosen |
[
{
"from": "human",
"value": "Add a script to setup Windows services\n"
},
{
"from": "gpt",
"value": "# Install the Windows Subsystem for Linux\n# https://docs.microsoft.com/en-us/windows/wsl/install-win10 )\nEnable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux\n... | powershell | chosen |
[
{
"from": "system",
"value": "Change VisualStudio15 to ISO-based install\n"
},
{
"from": "human",
"value": "\r\n$ErrorActionPreference = 'Stop';\r\n\r\n\r\n$packageName= 'VisualStudio15'\r\n$toolsDir = \"$(Split-Path -parent $MyInvocation.MyCommand.Definition)\"\r\n$url = 'http://downl... | powershell | chosen |
[
{
"from": "system",
"value": "Move installer to root project directory\n"
},
{
"from": "human",
"value": "$script = $env:APPVEYOR_BUILD_FOLDER + \"\\Build\\Tabster.nsi\"\n& \"C:\\Program Files (x86)\\NSIS\\makensis.exe\" /DAPPLICATION_VERSION=\"$env:APPVEYOR_BUILD_VERSION\" /DSOLUTION_DIRECTORY=... | powershell | chosen |
[
{
"from": "system",
"value": "Update bundler version for windows verifcation\n\nSigned-off-by: Jaymala Sinha <a04666c8f252cd920997ac90b34d2eff29d09ccc@chef.io>\n"
},
{
"from": "human",
"value": "echo \"--- system details\"\n$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitectu... | powershell | chosen |
[
{
"from": "system",
"value": "Add source parameter to nuget\n"
},
{
"from": "human",
"value": "param([String]$key)\n\n$span = New-TimeSpan -Start 2010/1/1 -End (Get-Date)\n$version = \"beta-\" + $span.Days.ToString() + ($span.Hours * 60 + $span.Minutes).ToString(\"0000\")\n& dotnet restore\ncd .... | powershell | chosen |
[
{
"from": "system",
"value": "Split out admin mode tasks\n"
},
{
"from": "human",
"value": "@\"%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command \"iex ((New-Object System.Net.WebClient).DownloadString('https://chocolat... | powershell | chosen |
[
{
"from": "system",
"value": "Revert \"Let Jenkins download the new branch so the build doesn't blow up\"\n\nThis reverts commit 4c34a653bdfd6dd050f29de8bb381480721a507f.\n"
},
{
"from": "human",
"value": "pushd\n\n$steamData = \"C:/Steam/Data/\"\n$steamCMDPath = \"C:/Steam/steamcmd/\"\n$steamCM... | powershell | chosen |
[
{
"from": "system",
"value": "Change the integration tests to import the module\n"
},
{
"from": "human",
"value": "param\n(\n [Parameter(Mandatory = $true)]\n [String]\n $ConfigurationName\n)\n\nConfiguration $ConfigurationName\n{\n param\n (\n [Parameter(Mandatory = $true)... | powershell | chosen |
[
{
"from": "system",
"value": "Add a commit to test\n"
},
{
"from": "human",
"value": "Write-Host \"Writing .npmrc with token\"\nSet-Content -Path \".npmrc\" -Value \"registry=https://devdiv.pkgs.visualstudio.com/_packaging/Pylance/npm/registry/\"\nAdd-Content -Path \".npmrc\" -Value \"always-aut... | powershell | chosen |
[
{
"from": "system",
"value": "Add backup and roling backup options\n"
},
{
"from": "human",
"value": "Write-Host \"Ensconce - BackupHelper Loading\"\n\nFunction CleanBackups([string]$backupDir, [int]$daysToKeep)\n{\n\t$backupDate = Get-Date -Format yyyy-MM-dd_HH-mm-ss\n\t$backupPurgedate = (get-... | powershell | chosen |
[
{
"from": "system",
"value": "Set the right settings for Stroustrup.\n"
},
{
"from": "human",
"value": "# Inspired by http://eslint.org/docs/rules/brace-style#stroustrup\n@{\n IncludeRules = @(\n 'PSPlaceOpenBrace',\n 'PSPlaceCloseBrace',\n 'PSUseConsistentWhitespace',\n ... | powershell | chosen |
[
{
"from": "system",
"value": "Update build script for v.2.24 release.\n"
},
{
"from": "human",
"value": "# constants\n$version = \"2.23\"\n$driverName = \"chromedriver.exe\"\n$zipName = \"chromedriver_win32.$version.zip\"\n$downloadUrl = \"https://chromedriver.storage.googleapis.com/$version/chr... | powershell | chosen |
[
{
"from": "human",
"value": "Add script for creating docker compose environment when developing in Windows\n"
},
{
"from": "gpt",
"value": "<#\n .DESCRIPTION\n Create a docker compose .env file\n#>\n$scriptPath = Split-Path -parent $PSCommandPath\n$envFilePath = \"$scriptPath\\..\\.env\"\n$get... | powershell | chosen |
[
{
"from": "system",
"value": "Remove old GitVersion env variable\n"
},
{
"from": "human",
"value": "# Params\nparam (\n [string]$Configuration = $env:Configuration,\n [string]$PrereleaseTag = $env:PrereleaseTag\n)\n\nif (-not $Configuration) {\n $Configuration = \"Release\"\n}\n\nif (-n... | powershell | chosen |
[
{
"from": "system",
"value": "Switch back to choco poshgit version\n"
},
{
"from": "human",
"value": "## Development Tools - Git\n\nchoco install TortoiseGit\nchoco install github-desktop\n\nmkdir \"$($env:USERPROFILE)\\.ssh\" # Create .ssh folder for keys\n\nGet-Service -Name ssh-agent | Set-Se... | powershell | chosen |
[
{
"from": "system",
"value": "Remove packages directory after build\n"
},
{
"from": "human",
"value": "param(\n [string] $packageVersion = $env:PackageVersion,\n [bool] $fakeBuildRunner = $false\n)\n\n\nInvoke-Expression \".\\paket restore -f\"\n\nImport-Module -Force .\\PowershellDSCWorkf... | powershell | chosen |
[
{
"from": "system",
"value": "Move building and pushing image to Jenkins plugin\n"
},
{
"from": "human",
"value": "# Build turbobrowsers/block-ad-routes image\n# \n# Licensed under the Apache License, Version 2.0\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# update routes.txt file\n& turbo ... | powershell | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.