conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add a powershell script to make it a single step to program the combined hex file to the micro\n"
},
{
"from": "gpt",
"value": "[CmdletBinding()]\r\nParam(\r\n [Parameter(Position=1, Mandatory=$True)]$HexFile,\r\n $STVPDir = \"${env:ProgramFiles(x86)}\\STMicroe... | powershell | chosen |
[
{
"from": "system",
"value": "Fix path to aver again\n"
},
{
"from": "human",
"value": "# Create a build tag, formatted like {build}.{branch}.{sha7}\n# Use aver to patch versions of assemblies and nupkg-packages\npwd\n$sha = \"$env:APPVEYOR_REPO_COMMIT\".substring(0,7)\n$env:MY_BUILD_TAG = \"$en... | powershell | chosen |
[
{
"from": "system",
"value": "tests: Fix instructions in doc validator\n\nChange-Id: Ie0d5d87da5e36e4206c6af73451ff28e3ad4b100\n"
},
{
"from": "human",
"value": "# Powershell script for running the vktrace trace/replay auto test\r\n# To run this test:\r\n# cd <this-dir>\r\n# powershell C:\... | powershell | chosen |
[
{
"from": "system",
"value": "Update Hybrid Worker DSC Config to check for MMA\n\n- Switched to using DSC to install and check for the monitoring agent\n"
},
{
"from": "human",
"value": "Configuration HybridWorkerConfiguration {\n\n param(\n\n [Parameter(Mandatory=$true)]\n [Sy... | powershell | chosen |
[
{
"from": "system",
"value": "Add 'Clean' and 'InstallDependencies' tasks for Invoke-Build\n"
},
{
"from": "human",
"value": "#Requires -Modules 'InvokeBuild'\nParam (\n [string]$BuildOutput = \"$PSScriptRoot\\BuildOutput\",\n\n [string[]]$Dependency = @('Coveralls','Pester','PsScriptAnaly... | powershell | chosen |
[
{
"from": "human",
"value": "Migrate slot swap script from AzureRM to Az Powershell\n"
},
{
"from": "gpt",
"value": "# make sure the script stops if one of the swaps failed\n$ErrorActionPreference = \"Stop\"\n\nSelect-AzSubscription -Subscription \"Websites migration\"\n\n$ParametersObject = @{\... | powershell | chosen |
[
{
"from": "system",
"value": "Add indexes for albums and images\n"
},
{
"from": "human",
"value": "# Extract the ZIP if not already extracted\n$BackupPath = Join-Path $PSScriptRoot \".\\final7.55e3678c7664.zip\"\n$Destination = Join-Path $PSScriptRoot \".\\final7\"\n\nif ((Test-Path $Destination... | powershell | chosen |
[
{
"from": "system",
"value": "Allow extraction of nupkg files with 7zip\n\n"
},
{
"from": "human",
"value": "function requires_7zip($manifest, $architecture) {\n foreach($dlurl in @(url $manifest $architecture)) {\n if(file_requires_7zip $dlurl) { return $true }\n }\n}\n\nfunction r... | powershell | chosen |
[
{
"from": "human",
"value": "Add PowerShell helper functions for activating various dev envs\n"
},
{
"from": "gpt",
"value": "# Prepend Node.js directories to PATH variable\nFunction Enable-Nodejs {\n [CmdletBinding()]\n Param(\n [Parameter(Mandatory)]\n [ValidateNotNullOrEmp... | powershell | chosen |
[
{
"from": "system",
"value": "Change the way Executor get's downloaded...\n"
},
{
"from": "human",
"value": "$packageName = \"executor\"\r\n$url = \"http://www.1space.dk/executor/Executor.zip\"\r\n$appDir = \"$($env:SYSTEMDRIVE)\\tools\\$($packageName)\"\r\n$downloadPath = \"$env:TEMP\\$($packag... | powershell | chosen |
[
{
"from": "human",
"value": "Add script to configure Azure\n"
},
{
"from": "gpt",
"value": "# Adds application settings to Azure.\n#\n# This script needs to be run before first publishing of the website to Azure or\n# if any of the settings change.\n\nparam(\n [CmdletBinding(SupportsShouldPro... | powershell | chosen |
[
{
"from": "system",
"value": "Copy build into static site folder first\n"
},
{
"from": "human",
"value": "param([string]$buildFolder, [string]$email, [string]$username, [string]$personalAccessToken, [string]$repoName)\n\nWrite-Host \"- Set config settings....\"\ngit config --global user.email $e... | powershell | chosen |
[
{
"from": "system",
"value": "Add User Agent to Powershell Client"
},
{
"from": "human",
"value": "$capcode = $args[0]\n$msgbody = $args[1]\n\n$sourcename \t= \"***Source name***\"\n$appurl \t= \"http://***App URL***/api/messages\" #http://www.example.com:3000/api/messages\n$apikey \t= \"***API ... | powershell | chosen |
[
{
"from": "system",
"value": "Update machine 0.9.0, compose 1.10.0"
},
{
"from": "human",
"value": "# install docker tools\nchoco install -y docker-machine -version 0.8.2\nchoco install -y docker-compose -version 1.9.0\n"
},
{
"from": "gpt",
"value": "# install docker tools\nchoco in... | powershell | chosen |
[
{
"from": "system",
"value": "Print message when restoring nuget packages\n"
},
{
"from": "human",
"value": "<#\n.SYNOPSIS\n Restores NuGet packages.\n.PARAMETER Path\n The path of the solution, directory, packages.config or project.json file to restore packages from.\n If not specified... | powershell | chosen |
[
{
"from": "system",
"value": "Fix nuget package restore after moving nuget.config\n"
},
{
"from": "human",
"value": "<#\n.SYNOPSIS\n Restores NuGet packages.\n.PARAMETER Path\n The path of the solution, directory, packages.config or project.json file to restore packages from.\n If not s... | powershell | chosen |
[
{
"from": "system",
"value": "Install node packages: pass python path on cli\n"
},
{
"from": "human",
"value": "function Install-NodePackages($packages) {\n\tforeach ($package in $packages) {\n\t\tUpdate-NodePackage $package\n\t}\n}\n\nfunction Get-InstalledNodePackages {\n\tif ($script:installe... | powershell | chosen |
[
{
"from": "system",
"value": "Enable WSL during choco install."
},
{
"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 1703) {\r\n\tthrow \... | powershell | chosen |
[
{
"from": "system",
"value": "Allow to specify project name from parameter\n"
},
{
"from": "human",
"value": "function Add-FluentMigration\n{\n [CmdletBinding(DefaultParameterSetName = 'Name')]\n param (\n [parameter(Position = 0,\n Mandatory = $true)]\n [string] $... | powershell | chosen |
[
{
"from": "system",
"value": "Use dism.exe OR the Get-WindowsFeature cmdlet\n"
},
{
"from": "human",
"value": "function ListWindowsFeatures\n{ \n $cachepath = \"${env:temp}/ListWindowsFeatures.xml\"\n $maxAge = 2\n\n $cache = Get-Item $cachepath -erroraction SilentlyContinue\n\n ... | powershell | chosen |
[
{
"from": "human",
"value": "Add TEPP for Group parameter\n"
},
{
"from": "gpt",
"value": "#region Initialize Cache\nif (-not [Sqlcollaborative.Dbatools.TabExpansion.TabExpansionHost]::Cache[\"group\"]) {\n\t[Sqlcollaborative.Dbatools.TabExpansion.TabExpansionHost]::Cache[\"group\"] = @{ }\n}\n... | powershell | chosen |
[
{
"from": "system",
"value": "Upgrade to VM version 7.0.40\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": "Reduce noise in package restore\n"
},
{
"from": "human",
"value": "Write-Host \"Restoring NuGet packages...\" -ForegroundColor Yellow\nnuget restore \"$PSScriptRoot\\src\" -Verbosity quiet\n\nWrite-Host \"Restoring NPM packages...\" -ForegroundColor Yellow\nPush-Loc... | powershell | chosen |
[
{
"from": "human",
"value": "Add a script for creating revisions from source codes\n"
},
{
"from": "gpt",
"value": "\r\n$ErrorActionPreference = \"Stop\"\r\n\r\n$scriptDir = Split-Path ( & {$MyInvocation.ScriptName}) -Parent\r\n\r\n$inspectCodePath = \"C:\\temp\\JetBrains.ReSharper.CommandLineT... | powershell | chosen |
[
{
"from": "system",
"value": "Remove Cmdlet type declaration - caused implicit conversions to string\n"
},
{
"from": "human",
"value": "# Edit JSON preference files\n# \n# Licensed under the Apache License, Version 2.0\n# http://www.apache.org/licenses/LICENSE-2.0\n\nfunction Set-JsonPreference\... | powershell | chosen |
[
{
"from": "system",
"value": "Replace string concatenation with Path.Combine\n"
},
{
"from": "human",
"value": "# This approach still has issues, but would be the simplest approach for this script\n# See: https://github.com/dotnet/eShopOnContainers/issues/74 \n\nParam([string] $rootPath)\n$scrip... | powershell | chosen |
[
{
"from": "system",
"value": "Disable automatic checkpoints prior to VM removal\n"
},
{
"from": "human",
"value": "#Requires -Modules VagrantMessages\n\nparam(\n [Parameter(Mandatory=$true)]\n [string]$VmId\n)\n\n$ErrorActionPreference = \"Stop\"\n\ntry {\n $VM = Hyper-V\\Get-VM -Id $Vm... | powershell | chosen |
[
{
"from": "human",
"value": "Create an script to install the log4net implementation of the logging interface."
},
{
"from": "gpt",
"value": "param($installPath, $toolsPath, $package, $project)\n\n# $project = Get-Project\n\n$log4net = $project.ProjectItems.Item(\"nohros.logging.log4net.dll\")\n\... | powershell | chosen |
[
{
"from": "system",
"value": "Update setup to configure Engine API\n"
},
{
"from": "human",
"value": "if (-Not (Get-Command docker -errorAction SilentlyContinue))\n{\n Install-PackageProvider -Name NuGet -Force\n Install-Module -Name DockerMsftProvider -Repository PSGallery -Force\n In... | powershell | chosen |
[
{
"from": "system",
"value": "Allow nugetApiKey to be specified as a parameter not a property.\n"
},
{
"from": "human",
"value": "properties {\n $nugetApiKey = \"\"\n\n $binRoot = \"..\\bin\"\n $solution = \"..\\Harbour.RedisTempData.sln\"\n $testsRoot = \"..\\tests\\Harbour.RedisTempData.Te... | powershell | chosen |
[
{
"from": "system",
"value": "Update test version that we will run training against\n"
},
{
"from": "human",
"value": "[CmdletBinding(PositionalBinding=$false)]\nparam (\n [switch]$release = $false)\n\nSet-StrictMode -version 2.0\n$ErrorActionPreference = \"Stop\"\n\ntry {\n . (Join-Path $... | powershell | chosen |
[
{
"from": "system",
"value": "Handle identity differently in Service User PowerShell script\n"
},
{
"from": "human",
"value": "try {\n $right = Carbon\\Test-Privilege -Identity $($args[0]) -Privilege SeServiceLogonRight\n if (-not $right) {\n Carbon\\Grant-Privilege -Identity $($args[0]) -P... | powershell | chosen |
[
{
"from": "system",
"value": "Exit script of either of the dotnet task fails.\n"
},
{
"from": "human",
"value": "if (-not (Test-Path env:APPVEYOR_BUILD_NUMBER)) { $env:APPVEYOR_BUILD_NUMBER = '0' }\n$suffix = \"build.\" + $env:APPVEYOR_BUILD_NUMBER\n$TOOLS_DIR = Join-Path $PSScriptRoot \"tools\"... | powershell | chosen |
[
{
"from": "system",
"value": "Add -v/--version parameter to show current git commit version\n\ncloses #1829"
},
{
"from": "human",
"value": "#requires -v 3\nparam($cmd)\n\nset-strictmode -off\n\n. \"$psscriptroot\\..\\lib\\core.ps1\"\n. (relpath '..\\lib\\commands')\n\nreset_aliases\n\n$commands... | powershell | chosen |
[
{
"from": "human",
"value": "Add PowerShell completion support for dotnet-suggest\n"
},
{
"from": "gpt",
"value": "if (!(Get-Command -Name dotnet-suggest -ErrorAction Ignore)) {\n Write-Verbose -Message (Get-DotFilesMessage -Message 'Skipping dotnet-suggest settings as unable to locate dotnet... | powershell | chosen |
[
{
"from": "system",
"value": "Change Write-Exception for Stop-Function and change Write-Verbose for Write-Message to standarize messaging system\n"
},
{
"from": "human",
"value": "#requires -version 3.0\n \nFunction Test-PSRemoting {\n<#\nJeff Hicks\nhttps://www.petri.com/test-network-connectivi... | powershell | chosen |
[
{
"from": "system",
"value": "Fix up name of file we are pushing!\n"
},
{
"from": "human",
"value": "# Push the package if the version number has changed.\r\n#\r\n[CmdletBinding()]\r\nparam()\r\n\r\n# Get the current package numbers\r\n$pkgName = \"AtlasSSH\"\r\n$current = $(nuget list $pkgName... | powershell | chosen |
[
{
"from": "system",
"value": "Add edit alias for vs code in powershell\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-... | powershell | chosen |
[
{
"from": "system",
"value": "Update runTest to skip Linux test.\n"
},
{
"from": "human",
"value": "# Copyright(c) 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n# use this file except in compliance with the License. You may obtain a copy o... | powershell | chosen |
[
{
"from": "system",
"value": "Allow setting LUVI_ARCH externally on windows\n"
},
{
"from": "human",
"value": "\n$LUVI_VERSION = \"2.0.9\"\n$LIT_VERSION = \"1.2.14\"\n\n$LUVI_ARCH = \"Windows-amd64\"\n$LUVI_URL = \"https://github.com/luvit/luvi/releases/download/v$LUVI_VERSION/luvi-regular-$LUVI... | powershell | chosen |
[
{
"from": "system",
"value": "Update to use v2 endpoint"
},
{
"from": "human",
"value": "$apiKey = \"[API_KEY]\"\n$secretKey = \"[SECRET_KEY]\"\n$headers = @{Authorization = 'Token token=\"' + $apiKey + $secretKey + '\"'}\n \n \n#Get the list of nodes in the node group\n$nodeGroupsURI = \"https:... | powershell | chosen |
[
{
"from": "system",
"value": "Include WebTools in VS install"
},
{
"from": "human",
"value": "$ScriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition\n\n& \"$ScriptPath\\PowerShellProfile\\Microsoft.PowerShell_profile.ps1\"\n\n## Development Tools for .NET\n\nchoco install VisualStud... | powershell | chosen |
[
{
"from": "system",
"value": "Move back to devdiv pkgs. Getting 401 on msdata\n"
},
{
"from": "human",
"value": "# DEVOPS_TOKEN is not secret so that it works on other branches. Since Devops pipeline is only accessible from \n# Microsoft, doesn't need to be secret in pipeline\n# See here on how ... | powershell | chosen |
[
{
"from": "system",
"value": "Refactor output path. Fix file size debug print.\n"
},
{
"from": "human",
"value": "param([string]$buildFolder)\r\n\r\n$path = \"$($buildFolder)\\src\\WebSite\"\r\n$port = 58537\r\n$delay = 3000\r\n\r\nWrite-Host \"Running IIS Express from '$($path)'.\"\r\nStart-Pro... | powershell | chosen |
[
{
"from": "system",
"value": "test: Enable stream_processor testcase on AppVeyor\n\nSigned-off-by: Hiroshi Hatake <a476a6e5b5893650242fbf0b2961500a9bd9032e@clear-code.com>\n"
},
{
"from": "human",
"value": "cd build\n\n# CACHE GENERATION\ncmake -G \"$ENV:msvc\" -DCMAKE_BUILD_TYPE=\"$ENV:configur... | powershell | chosen |
[
{
"from": "system",
"value": "Set the PYTHONPATH on Windows\n\nSummary: A previous change broke building Buck on Windows due to a python import.\n\nTest Plan: `./bin/buck build buck`\n\nReviewed By: @bhamiltoncx\n\nfb-gh-sync-id: d1fa8d9\n"
},
{
"from": "human",
"value": "# Invoke the buck wrapp... | powershell | chosen |
[
{
"from": "system",
"value": "Fix specifying dotnet pack version using tag\n"
},
{
"from": "human",
"value": "param (\n\t[string]$BuildVersionNumber=$(throw \"-BuildVersionNumber is required.\"),\n\t[string]$TagVersionNumber\n)\n\n& dotnet restore .\\src\\SemVer\\SemVer.csproj #2>1\n\nif ($TagVe... | powershell | chosen |
[
{
"from": "system",
"value": "Fix path for nightly docker binaries\n"
},
{
"from": "human",
"value": "stop-service docker\nwget -outfile C:\\Windows\\System32\\dockerd.exe -uri https://master.dockerproject.org/windows/amd64/dockerd.exe\nwget -outfile C:\\Windows\\System32\\docker.exe -uri https:... | powershell | chosen |
[
{
"from": "system",
"value": "Allow ctrl+d in powershell sessions\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-Locat... | powershell | chosen |
[
{
"from": "human",
"value": "Add script for manually create release\n"
},
{
"from": "gpt",
"value": "Set-StrictMode -Version Latest\n$ErrorActionPreference = 'Stop'\n#------------------------------\n\nImport-Module '.\\setup.ps1' -Args (,('msbuild', 'nunit'))\n\nif (Test-Path $releaseDir)\n{\n ... | powershell | chosen |
[
{
"from": "system",
"value": "Update build to use dotnet instead of msbuild--for whatever reason, a nuget restore is not happening with the build of the swigged.llvm project.\n"
},
{
"from": "human",
"value": "#\n# Build script for Windows native and Net Standard libraries of Swigged.LLVM.\n# In... | powershell | chosen |
[
{
"from": "system",
"value": "Include classname in test name\n"
},
{
"from": "human",
"value": "write-host \"Present working directory: $($pwd)\"\n\n$testsuites = [xml](get-content .\\test-results\\*.xml)\n$anyFailures = $FALSE\n\nforeach ($testsuite in $testsuites.testsuite) {\n\n write-host... | powershell | chosen |
[
{
"from": "system",
"value": "Stop Docker Engine and remvoe key.json to recreate on first Vagrant up\n"
},
{
"from": "human",
"value": "Write-Host \"WARNING: DO NOT USE DOCKER IN PRODUCTION WITHOUT TLS\"\nWrite-Host \"Enabling Docker unsecure port 2375\"\n\nif (!(Get-NetFirewallRule | where {$_.... | powershell | chosen |
[
{
"from": "system",
"value": "Fix for the updated xunit version\n"
},
{
"from": "human",
"value": "# Create Coverage folder if not exists\r\nNew-Item -ItemType Directory -Force -Path TestAndCoverage\r\n\r\n# Clear the Coverage folder\r\nRemove-Item TestAndCoverage\\* -recurse\r\n\r\n# Define the... | powershell | chosen |
[
{
"from": "system",
"value": "Add output to show the progress of the export powershell script\n"
},
{
"from": "human",
"value": "$docsFolderName = \"..\\docs\";\n$angularOutputFolderName = \"dist\";\n\nIf (Test-Path $docsFolderName) {\n Remove-Item $docsFolderName -Recurse;\n}\n\nng build --p... | powershell | chosen |
[
{
"from": "system",
"value": "Fix Dropbox Documents Library Link\n"
},
{
"from": "human",
"value": "param(\n[string]$a\n)\n<# \n.\\go.ps1 \"Text Comment for Commit\"\n#>\nif (!$a)\n{ \n\t$a = Read-Host 'comment: or (<cr> for generic comment)'\n}\nif (!$a)\n{\n\t$a = Get-Date\n\t$a = $a + \" page... | powershell | chosen |
[
{
"from": "system",
"value": "Change to release build for unit tests.\n"
},
{
"from": "human",
"value": "$testProjectLocations = @('test/UnitTests')\n$outputLocation = 'testResults'\n$dotnetTestArgs = '-c DebugCI'\niex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com... | powershell | chosen |
[
{
"from": "system",
"value": "Check the Azure Powershell version installed\n"
},
{
"from": "human",
"value": "############################\n##\n## Helper functions\n##\n############################\nfunction Load-Module\n{\n Param (\n $ModuleName,\n $ModuleLocation\n )\n if (Get-Module ... | powershell | chosen |
[
{
"from": "system",
"value": "Split autocomplete options by newline and enclose multiword options in quotes\n\nThat is how PowerShell composes arguments - if it is enclosed in quotes it is treated as a single one\n"
},
{
"from": "human",
"value": "$Completion_clc = {\n \n param($commandName, ... | powershell | chosen |
[
{
"from": "system",
"value": "Fix typo in windows test script\n"
},
{
"from": "human",
"value": "npm install\n\n$ErrorFound = $False\n\ntry\n{\n\tIf ($args.Length -eq 0)\n\t{\n\t\tnpm run start-neo4j\n\t}\n\telse\n\t{\n\t\t$env.NEORUN_START_ARGS=\"$args\"\n\t\tnpm run start-neo4j\n\t}\n\n\tnpm t... | powershell | chosen |
[
{
"from": "system",
"value": "Update description of script [ci skip]\n"
},
{
"from": "human",
"value": "#!/usr/bin/env pwsh\n\n<#\n.SYNOPSIS\n Tags each repo according to VersionPrefix in version.props of that repo\n.PARAMETER Shipping\n Only list repos that are shipping\n#>\n[cmdletbindin... | powershell | chosen |
[
{
"from": "human",
"value": "Add travis build trigger scripts. (ps and bash)\n"
},
{
"from": "gpt",
"value": "param(\n [Parameter(Mandatory=$true)][string]$VERSION\n)\n\n$BRANCH=\"rpm_from_release\"\n\n$TRAVIS_REQUEST_BODY = @{\n request = @{\n message = \"Build insight-agent rpm package ... | powershell | chosen |
[
{
"from": "system",
"value": "Fix typo in the deploy script.\n"
},
{
"from": "human",
"value": "param(\r\n\t[switch] $X64\r\n)\r\n\r\n$deployPath = 'Deploy'\r\n\r\nif (Test-Path $deployPath) {\r\n Remove-Item -Recurse $deployPath\r\n}\r\n\r\nmkdir $deployPath\r\nmkdir $deployPath\\Plugins\r\n... | powershell | chosen |
[
{
"from": "system",
"value": "Comment about version for Resharper"
},
{
"from": "human",
"value": "# Dev apps to install\n\n# Visual studio stuff\ncinstm VisualStudio2013Ultimate\ncinstm VisualStudio2012Ultimate\n\n# Visual studio add-ins\ncinstm xUnit.vs2012\ncinstm WebEssentials2012\ncinstm re... | powershell | chosen |
[
{
"from": "system",
"value": "Write out time as part of CI build\n"
},
{
"from": "human",
"value": "write-host \"Present working directory: $($pwd)\"\n\n$testsuites = [xml](get-content .\\test-results\\*.xml)\n$anyFailures = $FALSE\n\nforeach ($testsuite in $testsuites.testsuite) {\n\n write-... | powershell | chosen |
[
{
"from": "system",
"value": "Update pack and push script\n"
},
{
"from": "human",
"value": "param()\n\nfunction Activate() {\n $msbuildPath = \"C:\\Program Files (x86)\\MSBuild\\14.0\\Bin\\MSBuild.exe\"\n $msbuildPath = \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\... | powershell | chosen |
[
{
"from": "system",
"value": "Copy nuspec to nuget dir\n"
},
{
"from": "human",
"value": "if($env:APPVEYOR_REPO_BRANCH -eq \"release\")\n{\n\t$root = (split-path -parent $MyInvocation.MyCommand.Definition) + '\\..'\n\t$version = [System.Reflection.Assembly]::LoadFile(\"$root\\SqlServerHelpers\\b... | powershell | chosen |
[
{
"from": "human",
"value": "Add build and deply script\n"
},
{
"from": "gpt",
"value": "$env:Path += \";C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\MSBuild\\Current\\Bin\"\nMSBuild PlaylistGrabber.sln -t:Rebuild -p:Configuration=Release\nxcopy /I /Y .\\PlaylistGrabber\\b... | powershell | chosen |
[
{
"from": "human",
"value": "Add meta project structure placeholder\n"
},
{
"from": "gpt",
"value": "\n# Placeholder test file. This file will be replaced during test run with the\n# latest version from claudiospizzi/PowerShellModuleBase repository.\n\nDescribe 'Meta Project Structure' {\n\n ... | powershell | chosen |
[
{
"from": "system",
"value": "Use slightly less memory by not building as part of the test step.\n\nChange-Id: I99c405aa64073cf075bb03b2b8c3849c591bd849\n"
},
{
"from": "human",
"value": "# Copyright(c) 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you... | powershell | chosen |
[
{
"from": "system",
"value": "Fix script for running node on Win\n\nSee default TARGET_DIR in install.sh\n"
},
{
"from": "human",
"value": "echo \"This script will run epoch synchronously inside Ubuntu\"\nPause\n\nbash -c \"cd ~/epoch && ./bin/epoch console\"\n\nPause\n"
},
{
"from": "gp... | powershell | chosen |
[
{
"from": "system",
"value": "Check service status. You can't stop \"stoped service\".\n"
},
{
"from": "human",
"value": "[CmdletBinding()]\n\nParam\n(\n # Param1 help description\n [Parameter(Mandatory=$true,\n ValueFromPipelineByPropertyName=$true,\n Positio... | powershell | chosen |
[
{
"from": "human",
"value": "Add Unit Test for Get-PSCallSta\n"
},
{
"from": "gpt",
"value": "Describe \"Get-PSCallStack DRT Unit Tests\" -Tags DRT {\n BeforeAll {\n $scriptFileName = \"GetTryCatchCallStack.ps1\"\n $scriptFilePath = Join-Path $TestDrive -ChildPath $scriptFileNa... | powershell | chosen |
[
{
"from": "system",
"value": "Fix paths when script moved.\n"
},
{
"from": "human",
"value": "dotnet restore $PSScriptRoot\\..\nIf ($lastexitcode -ne 0) {\n\tWrite-Host \"Restore failed.\"\n\texit 1\n}\ndotnet test $PSScriptRoot\\..\\tests\\OpenVsixSignTool.Core.Tests\\OpenVsixSignTool.Core.Test... | powershell | chosen |
[
{
"from": "system",
"value": "Fix invalid file name in code coverage script\n"
},
{
"from": "human",
"value": "$output = \"$PSScriptRoot\\coverage.xml\"\nIf (Test-Path $output) {\n\tRemove-Item $output -Force\n}\n\ndotnet test -f netcoreapp3.1 /p:CollectCoverage=true /p:CoverletOutputFormat=open... | powershell | chosen |
[
{
"from": "system",
"value": "Add a test case for directed graph implementation\n"
},
{
"from": "human",
"value": "Import-Module PSScriptAnalyzer\n$helperNamespace = 'Microsoft.Windows.PowerShell.ScriptAnalyzer';\n\n\nDescribe \"Test Directed Graph\" {\n Context \"When a graph is created\" {\... | powershell | chosen |
[
{
"from": "system",
"value": "Fix typo in Powershell script\n"
},
{
"from": "human",
"value": "Get-NetAdapter -Physical | ForEach-Object {\n $ifname = $_.Name\n Write-Host \"Setting DNS servers on interface $ifname to use local resolver - the system will use Stubby if it is running\"\n se... | powershell | chosen |
[
{
"from": "system",
"value": "Fix catching \"Start-VM\" exceptions on Hyper-V during starting up VM\n"
},
{
"from": "human",
"value": "param (\n [string]$VmId = $(throw \"-VmId is required.\")\n )\n\n# Include the following modules\n$presentDir = Split-Path -parent $PSCommandPath\n$modules = ... | powershell | chosen |
[
{
"from": "human",
"value": "Add script for list rights for all shares\n"
},
{
"from": "gpt",
"value": "<#\n.SYNOPSIS\n to do\n\n.DESCRIPTION\n to do\n\n.EXAMPLE\n .\\rightsShares.ps1\n\n.NOTES\n File Name : rightsShares.ps1\n Author : Nicolas Le Gall - contact <at> nlegall <... | powershell | chosen |
[
{
"from": "system",
"value": "Add support for generating collectors from remote systems\n"
},
{
"from": "human",
"value": "Param(\n [Parameter(Mandatory=$true)]\n $Class,\n [Parameter(Mandatory=$false)]\n $CollectorName = ($Class -replace 'Win32_PerfRawData_Perf','')\n)\n$members = G... | powershell | chosen |
[
{
"from": "system",
"value": "Fix Powershell for building nupkg\n"
},
{
"from": "human",
"value": "$root = (split-path -parent $MyInvocation.MyCommand.Definition)\n\n<#\n# Create NuGet package for RC\n$version = [System.Reflection.Assembly]::LoadFile(\"$root\\src\\MeasureMap\\bin\\Release\\Measu... | powershell | chosen |
[
{
"from": "system",
"value": "Correct .NET Core 3.0.100 version number.\n"
},
{
"from": "human",
"value": "trap {\n Write-Error $_\n Write-Host $_.ScriptStackTrace\n Exit 1\n}\nfunction CheckLastExitCode() {\n if ($LASTEXITCODE) {\n Write-Host (Get-PSCallStack)\n Exit $... | powershell | chosen |
[
{
"from": "system",
"value": "Update tab support to handle task calling without the -task switch\n"
},
{
"from": "human",
"value": "$global:psakeSwitches = '-docs', '-task', '-properties', '-parameters'\r\n\r\nfunction script:psakeSwitches($filter) {\r\n $psakeSwitches | where { $_ -like \"$fil... | powershell | chosen |
[
{
"from": "human",
"value": "Create PowerShell Script for Windows users"
},
{
"from": "gpt",
"value": "$VERSION=\"0.4.2\"\n$AMMONIUM_VERSION=\"0.8.3-1\"\n$SCALA_VERSION=\"2.11.11\" # Set to 2.12.2 for Scala 2.12\n\n$TYPELEVEL_SCALA=$false # If true, set SCALA_VERSION above to a both ammonium + T... | powershell | chosen |
[
{
"from": "system",
"value": "Make sure deployment script halts on errors"
},
{
"from": "human",
"value": "$ProgressPreference=\"SilentlyContinue\"\n\n$destinationUri = \"https://$($Env:STORAGE_HOSTNAME)/www\"\n$destinationKey = $Env:STORAGE_KEY\n.\\deployment\\AzCopy\\AzCopy.exe /Source:.\\ToDo... | powershell | chosen |
[
{
"from": "system",
"value": "Fix the set version script\n"
},
{
"from": "human",
"value": "$ReleaseVersionNumber = $env:APPVEYOR_BUILD_VERSION\n$PreReleaseName = ''\n\nIf($env:APPVEYOR_PULL_REQUEST_NUMBER -ne $null) {\n $PreReleaseName = '-PR-' + $env:APPVEYOR_PULL_REQUEST_NUMBER\n} ElseIf($en... | powershell | chosen |
[
{
"from": "system",
"value": "Tweak bulk load weapon script\n"
},
{
"from": "human",
"value": "$Here = \"$(Split-Path -parent $MyInvocation.MyCommand.Definition)\"\n\nImport-Module \"$Here\\_Helpers\" -DisableNameChecking\n\n# Clear out existing -- this is not what we're looking for if we've got... | powershell | chosen |
[
{
"from": "human",
"value": "Add tool to create package.\n"
},
{
"from": "gpt",
"value": "$msbuild = \"C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild.exe\"\n\ncd ..\\KLibrary2_1\nInvoke-Expression ($msbuild + \" KLibrary2_1.sln /p:Configuration=Release /t:Clean\")\nInvoke-Expression... | powershell | chosen |
[
{
"from": "system",
"value": "Use blue colors for executables\n"
},
{
"from": "human",
"value": "# Aliases\n# New-Alias -Name ll -Value ls\n\n# List all files and folders including hidden ones using \"ll\" function\nfunction ll {\n Get-ChildItem -Force @args\n}\n\n# Import modules\nImport-Modul... | powershell | chosen |
[
{
"from": "human",
"value": "Connect to SQL example for Azure Pipeline\n"
},
{
"from": "gpt",
"value": "[CmdletBinding()]\nparam (\n [string] $TenantId = $env:AadTenantId,\n [string] $ClientId = $env:AadAppClientId,\n [string] $ClientSecret = $env:AadAppClientSecret,\n [string] $SqlS... | powershell | chosen |
[
{
"from": "system",
"value": "Debug tests failures in Appveyor\n"
},
{
"from": "human",
"value": "$ModuleName = 'PSCodeHealthMetrics'\nImport-Module \"$($PSScriptRoot)\\..\\..\\..\\$($ModuleName).psd1\" -Force\n\n$Mocks = ConvertFrom-Json (Get-Content -Path \"$($PSScriptRoot)\\..\\TestData\\Mock... | powershell | chosen |
[
{
"from": "system",
"value": "Fix the arch name for Android\n"
},
{
"from": "human",
"value": "$Archs = { \"Net45\",\"WP8\", \"WinRT45\", \"Mono\", \"Monodroid\", \"Monotouch\"}\n$Projects = {\"Akavache\", \"Akavache.Sqlite3\", \"Akavache.Mobile\"}\n\n$SlnFileExists = Test-Path \".\\Akavache.sl... | powershell | chosen |
[
{
"from": "system",
"value": "Check that git can really be used as well as posh-git\n\nExplicitly call `import posh-git` because it doesn't have a module\nmanifest thus powershell can't autoload it when using a cmdlet.\n\nAt present the cmder repo doesn't try to download posh-git so it might be\nmissing fro... | powershell | chosen |
[
{
"from": "system",
"value": "Fix another typo in the deploy script.\n"
},
{
"from": "human",
"value": "param(\r\n\t[switch] $X64\r\n)\r\n\r\n$deployPath = 'Deploy'\r\n\r\nif (Test-Path $deployPath) {\r\n Remove-Item -Recurse $deployPath\r\n}\r\n\r\nmkdir $deployPath\r\nmkdir $deployPath\\Plu... | powershell | chosen |
[
{
"from": "system",
"value": "Update to make more valid tests\n"
},
{
"from": "human",
"value": "Select-LocalDevWorkspace SCOrchDev\n\nDescribe \"Invoke-GitRepositorySync\" {\n It \"does something useful\" {\n $true | Should Be $true\n }\n}\n"
},
{
"from": "gpt",
"value... | powershell | chosen |
[
{
"from": "system",
"value": "Install remote desktop connection manager as part of the dev pkg\n"
},
{
"from": "human",
"value": "$ScriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition\n\n& \"$ScriptPath\\PowerShellProfile\\Microsoft.PowerShell_profile.ps1\"\n\n## Common Developer T... | powershell | chosen |
[
{
"from": "system",
"value": "Use shared folder outside of the VM to store registry-v2 data\n"
},
{
"from": "human",
"value": "mkdir -p C:\\registry-v2\ndocker run --restart=always -d -p 5000:5000 -v \"C:\\registry-v2:C:\\data\" sixeyed/registry:nanoserver\n"
},
{
"from": "gpt",
"val... | powershell | chosen |
[
{
"from": "human",
"value": "Add a simple script to add content at the start of each line of a file\n\n"
},
{
"from": "gpt",
"value": "param (\n [string]$file = $(throw \"-file is required.\"),\n [string]$text = $(throw \"-text is required.\")\n)\n\n$InputFile = Get-Content $file\nForEach(... | powershell | chosen |
[
{
"from": "system",
"value": "Add correct path for package\n"
},
{
"from": "human",
"value": "Install-ChocolateyPackage 'deskdrive' 'exe' '/SILENT' 'http://mike-ward.net/content/downloads/deskdrivesetup.exe'\r\n"
},
{
"from": "gpt",
"value": "Install-ChocolateyPackage 'deskdrive' 'ex... | powershell | chosen |
[
{
"from": "system",
"value": "Fix link to preseason README.md\n"
},
{
"from": "human",
"value": "param($installPath, $toolsPath, $package, $project)\n\n$project.DTE.ItemOperations.Navigate('https://github.com/bitstadium/HockeySDK-Windows-Private/blob/master/README.md')\n"
},
{
"from": "g... | powershell | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.