conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add deployment support to image-build script.\n" }, { "from": "human", "value": "Param(\n [Parameter(Mandatory=$true)]\n [string] $Repo,\n\n [Parameter()]\n [string] $Version = '1.0.0-dev'\n)\n\n$Components = @(\n 'api',\n 'sql-executor',\n 'pro...
powershell
chosen
[ { "from": "system", "value": "Save original docker engine, install docker-compose and docker-machine\n" }, { "from": "human", "value": "# install chocolatey\niex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))\n\n# install git + ssh\nchoco install -y git -params...
powershell
chosen
[ { "from": "system", "value": "Use legacy semantic version for nuget packages\nThis allows legacy nuget clients to consume the pre-release packages as even the newest versions of nuget don't fully support SemVer 2.0\n" }, { "from": "human", "value": "function NugetPack([bool] $pre) \n{\n $Vers...
powershell
chosen
[ { "from": "system", "value": "Fix Win 10 Enterprise Vagrant Error\n\n This fixes error for Win 10 Enterprise:\r\n\r\nAn error occurred while executing a PowerShell script. This error\r\nis shown below. Please read the error message and see if this is\r\na configuration error with your system. If it is not, ...
powershell
chosen
[ { "from": "human", "value": "Add script to update reactiveDomain.Tests nuget" }, { "from": "gpt", "value": "\r\n$currentScriptDirectory = Get-Location\r\n[System.IO.Directory]::SetCurrentDirectory($currentScriptDirectory.Path)\r\n\r\nSet-Location -Path ${PSScriptRoot}\r\n$solutiondir = Resolve-P...
powershell
chosen
[ { "from": "system", "value": "Change to Write-Output to avoid Azure Automation Logging slowness\n" }, { "from": "human", "value": "<#\r\n .SYNOPSIS\r\n Add a synopsis here to explain the PSScript. \r\n\r\n .Description\r\n Give a description of the Script.\r\n\r\n#>\r\nParam(...
powershell
chosen
[ { "from": "system", "value": "Modify Pester Test for Get-PSBreakpoint\n" }, { "from": "human", "value": "Describe \"Get-PSBreakpoint\" {\n\n $scriptName = \"Get-PSBreakpoint.Tests.ps1\"\n\n AfterEach {\n Get-PSBreakpoint -Script \"$PSScriptRoot\\$scriptName\" | Remove-PSBreakpoint ...
powershell
chosen
[ { "from": "system", "value": "Test PSReadLine's DefaultEditMode and bindings\n" }, { "from": "human", "value": "Describe \"PSReadLine\" {\n BeforeAll {\n if (Get-Module PSReadLine) {\n $originalEditMode = (Get-PSReadLineOption).EditMode\n Remove-Module PSReadLine\...
powershell
chosen
[ { "from": "system", "value": "Fix paths in packaging script\n" }, { "from": "human", "value": "Write-Output \"---Creating Artifacts---\"\n\n# Build web application\nSet-Location .\\KenticoInspector.WebApplication\ndotnet publish KenticoInspector.WebApplication.csproj /p:PublishDir=..\\publish -c...
powershell
chosen
[ { "from": "human", "value": "Add Select-XML Pester Unit Test\n" }, { "from": "gpt", "value": "\nDescribe \"Select-XML DRT Unit Tests\" -Tags DRT{\n\t$tmpDirectory = $TestDrive\n\t$testfilename = \"testfile.xml\"\n\t$testfile = Join-Path -Path $tmpDirectory -ChildPath $testfilename\n\t\n\tIt \"Se...
powershell
chosen
[ { "from": "system", "value": "Change version used for master builds\n" }, { "from": "human", "value": "$buildCounter = \"%build.counter%\"\n$branch = \"%teamcity.build.branch%\"\n\n$prefix = 'refs/heads/'\n$tagPrefix = 'refs/tags/'\n$isTag = False\n\n$friendlyVersion = '0.0.0'\n\nif ($branch.Sta...
powershell
chosen
[ { "from": "system", "value": "Leverage new Safe-WmiQuery jSAF smdlet.\n" }, { "from": "human", "value": "# Copyright (C) 2012 jOVAL.org. All rights reserved.\r\n# This software is licensed under the AGPL 3.0 license available at http://www.joval.org/agpl_v3.txt\r\n#\r\nfunction Get-ProcessInfo ...
powershell
chosen
[ { "from": "system", "value": "Check scriptcs_packages.config exists before deleting\n" }, { "from": "human", "value": "$ErrorActionPreference = \"Stop\";\nscriptcs -cl\nrm scriptcs_packages.config\nscriptcs -i ScriptCs.Octokit -P $args[0] -pre\nscriptcs sample.csx\nexit $LASTEXITCODE" }, { ...
powershell
chosen
[ { "from": "system", "value": "tests(Leaderboard): Increase overall timeout.\nThese tests timeout ocasionally.\n" }, { "from": "human", "value": "# Copyright(c) 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n# use this file except in complian...
powershell
chosen
[ { "from": "system", "value": "Fix running Test On Docker\n" }, { "from": "human", "value": "docker info\n \ndocker ps -a\ndocker exec ocaramba_selenium bash -c \"ls ; sed -i '/Documentation/,+5 d' ./Ocaramba.sln ; dotnet build ./Ocaramba.sln\"\ndocker exec ocaramba_selenium bash -c 'dotn...
powershell
chosen
[ { "from": "system", "value": "Fix syntax error in script generation.\n" }, { "from": "human", "value": "param()\n\n. \"$PSScriptRoot/_common.ps1\"\n\n$version = GetVersion\n\n$buildType = SetBuildType\n$imageName = GetImageName\n\n$data = \". `\"`$PSScriptRoot/_common.ps1`\"`n\"\n$data = $data +...
powershell
chosen
[ { "from": "human", "value": "Add script for restoring modern dotnet project packages.\n\nTeamCity is deprecating certain step runners, and the recent update caught us out.\n" }, { "from": "gpt", "value": "# Restore step for modern dotnet projects\n\ndotnet restore submodules\\build-tools\\BuildI...
powershell
chosen
[ { "from": "system", "value": "Change 3rd party API URI for weather.\n" }, { "from": "human", "value": "$request = $req_query_icao\n\n$decoded_response_url = [System.Web.HttpUtility]::UrlDecode($req_query_callback) \n$decoded_response_url = $decoded_response_url.TrimEnd('\"')\n\nOut-File -Encodin...
powershell
chosen
[ { "from": "human", "value": "Install .net 3, Containers, and Hyper-V on my Development system\n" }, { "from": "gpt", "value": "$packageName = \"myvm-development\"\n\n$ErrorActionPreference = \"Stop\"\n\nWrite-Output \"Installing .Net 3.x Framework...\"\n\nEnable-WindowsOptionalFeature -All -Feat...
powershell
chosen
[ { "from": "system", "value": "Add UseWhitespace rule to codeformatting settings\n" }, { "from": "human", "value": "@{\n IncludeRules = @(\n 'PSPlaceOpenBrace',\n 'PSPlaceCloseBrace',\n 'PSUseConsistentIndentation'\n )\n\n Rules = @{\n PSPlaceOpenBrace = @{\n ...
powershell
chosen
[ { "from": "system", "value": "Add notes about tools that make changes\n" }, { "from": "human", "value": "Function set-stuff{\n [cmdletbinding(SupportsShouldProcess=$true,\n confirmImpact='Medium')]\n param(\n [Parameter(Mandatory=$True)]\n [string]$compute...
powershell
chosen
[ { "from": "system", "value": "Add bittorrent sync to list of common installs\n" }, { "from": "human", "value": "## This configuration file uses BoxStarter to configure the system\n## and Chocolatey to install necessary packages\n\n## .NET Frameworks -- Some should already be installed\nchoco ins...
powershell
chosen
[ { "from": "system", "value": "Exit with the correct exit code\n" }, { "from": "human", "value": "dotnet tool install Cake.Tool --global --version 0.35.0\ndotnet cake ./build/build.cake --bootstrap\ndotnet cake ./build/build.cake" }, { "from": "gpt", "value": "dotnet tool install Cake...
powershell
chosen
[ { "from": "system", "value": "Add the PSAvoidUsingAliases rule back to example PSSA configuration\n\nThis change adds the PSAvoidUsingAliases rule back to our example\nPSScriptAnalyzer configuration file so that it can be used for example and\ntesting purposes.\n" }, { "from": "human", "value": ...
powershell
chosen
[ { "from": "system", "value": "Build Traefik 1709 image with netapi dll\n" }, { "from": "human", "value": "$version=$(select-string -Path Dockerfile -Pattern \"ENV TRAEFIK_VERSION\").ToString().split()[-1]\ndocker tag traefik stefanscherer/traefik-windows\ndocker tag traefik stefanscherer/traefik...
powershell
chosen
[ { "from": "human", "value": "Add a module to update PsModulePath\n\nThis PS module updates the current process' PsModulePath variable\nwith that set in the environment. This enables a simpler method\nfor adding PS modules in-script.\n\nThis also establishes a location for shared windows-init files\n(e.g., m...
powershell
chosen
[ { "from": "human", "value": "Add Export-Clixml and Import-Clixml Pester Test\n" }, { "from": "gpt", "value": "Describe \"XmlCommand DRT basic functionality Tests\" -Tags DRT{\n\n\tBeforeAll {\n\t\tif(-not ([System.Management.Automation.PSTypeName]'IsHiddenTestType').Type)\n\t\t{\n\t\t\tAdd-Type ...
powershell
chosen
[ { "from": "system", "value": "Remove FsCheck.MSTest package from script\n" }, { "from": "human", "value": "nuget pack -sym FsCheck\\FsCheck.fsproj -Prop Configuration=Release -Build -Symbols\nnuget pack -sym FsCheck.Xunit\\FsCheck.Xunit.fsproj -Prop Configuration=Release -Build -Symbols\nnuget p...
powershell
chosen
[ { "from": "system", "value": "Apply NuGet restore for other packages as well\n" }, { "from": "human", "value": "# Restore our NuGet packages\nnuget sources Add -Name CitiesSkylines -Source $env:NUGET_CSL_URL -UserName $env:NUGET_CSL_USERNAME -Password $env:NUGET_CSL_PASSWORD -Verbosity quiet -No...
powershell
chosen
[ { "from": "system", "value": "Revert \"Suspend alert test until 2018-05-23\"\n\nThis reverts commit 3f7d7a836332205f7c34c26ca013bae42e52e550.\n" }, { "from": "human", "value": "# Copyright(c) 2017 Google Inc.\r\n#\r\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may not...
powershell
chosen
[ { "from": "system", "value": "Update CI script for csproj\n" }, { "from": "human", "value": "param([String]$key,[String]$version)\r\n\r\nfunction setProjectVersion([String]$project, [String]$version) {\r\n\t$fileName = \".\\src\\$project\\$project.csproj\"\r\n $content = (Get-Content $fileNa...
powershell
chosen
[ { "from": "system", "value": "Add powershell script for easy plugin bundle creation\n" }, { "from": "human", "value": "if (-not (test-path \"$env:ProgramW6432\\7-Zip\\7z.exe\")) {throw \"$env:ProgramW6432\\7-Zip\\7z.exe needed\"} \nset-alias sz \"$env:ProgramW6432\\7-Zip\\7z.exe\" \n\n$manifes...
powershell
chosen
[ { "from": "system", "value": "Remove Stop-Computer directive – EC2 will do that for us\n" }, { "from": "human", "value": "# Stop script execution when a non-terminating error occurs\n$ErrorActionPreference = \"Stop\"\n\n$InstanceId = (Invoke-WebRequest -UseBasicParsing http://169.254.169.254/lat...
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 DISTRIBUTION_VERSION\").ToString().split()[-1].SubString(1)\ndocker tag registry:$version stefanscherer/registry-win...
powershell
chosen
[ { "from": "system", "value": "Solve bug because of incorrect comment in script\n" }, { "from": "human", "value": "$ip=Invoke-RestMethod(\"http://api.ipify.org?format=json\")\n\n$location=Invoke-RestMethod(\"http://www.geoplugin.net/json.gp?ip=\" + $ip)\n\n$latitude=$location.geoplugin_latitude\n...
powershell
chosen
[ { "from": "human", "value": "Build Win 10 15031 Insider\n" }, { "from": "gpt", "value": "#packer build --only=vmware-iso `\n# --var iso_url=./iso/en_windows_10_enterprise_version_1607_updated_jul_2016_x64_dvd_9054264.iso `\n# --var iso_checksum=F9FFEA3A40BF39CCDE105BB064E153343560D73E `\n# --...
powershell
chosen
[ { "from": "human", "value": "Bootstrap: Add installation script for FCM\n" }, { "from": "gpt", "value": "# Details: https://www.microsoft.com/en-us/download/details.aspx?id=45520\n\n# DISM /online /Add-Capability /CapabilityName:Rsat.FailoverCluster.Management.Tools~~~~0.0.1.0\n\n# Problem: Erro...
powershell
chosen
[ { "from": "system", "value": "Fix for returning to root folder\n" }, { "from": "human", "value": "git clone https://github.com/ChaseFlorell/psDoc.git 2> $null\n\nImport-Module \".\\Elastico\\Elastico.psd1\"\n\nGet-Command -Module Elastico\n\ncd .\\psDoc\\src\n.\\psdoc.ps1 -ModuleName Elastico\n"...
powershell
chosen
[ { "from": "system", "value": "Allow specification of a version number on pack\n" }, { "from": "human", "value": "[CmdletBinding(DefaultParameterSetName = 'None')]\nparam\n(\n [String] [Parameter(Mandatory = $true)]\n $folder,\n\n [String] [Parameter(Mandatory = $true)]\n $packageType...
powershell
chosen
[ { "from": "system", "value": "Fix nuget path for appveyor\n" }, { "from": "human", "value": "$proj = \"SOVND.Client\"\n$nugetServer = $env:NugetServer\n$apiKey = $env:NugetKey\n\n$root = $env:APPVEYOR_BUILD_FOLDER\n$versionStr = \"$($env:APPVEYOR_BUILD_VERSION)\"\n\nls\ncd $root\\$proj\\bin\\$en...
powershell
chosen
[ { "from": "system", "value": "Improve manifest validation tests for url and extract_dir\n\nManifest validation should fail if there are untranslated variables left over in url or extract_dir" }, { "from": "human", "value": ". \"$psscriptroot\\Scoop-TestLib.ps1\"\n. \"$psscriptroot\\..\\lib\\core...
powershell
chosen
[ { "from": "system", "value": "Fix error with variable in scriptblock\n" }, { "from": "human", "value": "# \n# Module manifest for module '%MODULE-NAME%' \n# \n# Generated by: Microsoft Corporation \n# \n# Generated on: %DATE%\n# \n\n$PSDefaultParameterValues.Clear()\nSet-StrictMode -Versi...
powershell
chosen
[ { "from": "system", "value": "Update windows test script for go mod\n\n- need to invoke ginkgo differently\n\n[#177060090]\n\nSigned-off-by: Joseph Palermo <e623ceb69d4eba908c7aa121d8a6c4c407e290f1@pivotal.io>\n" }, { "from": "human", "value": "$ErrorActionPreference='Stop'\ntrap {\n write-er...
powershell
chosen
[ { "from": "system", "value": "Remove installation of go in windows tests\n\nCo-authored-by: James Myers <44cbd4b2784f900a6fede6279d0b7fdcbfaa89f5@pivotal.io>\n" }, { "from": "human", "value": "$ErrorActionPreference='Stop'\ntrap {\n write-error $_\n exit 1\n}\n\npowershell.exe \"./gopath/s...
powershell
chosen
[ { "from": "system", "value": "chore: Add cheetsheet for deployment for me\n" }, { "from": "human", "value": "#!/bin/pwsh\n# USAGE: ./scripts/pack\n\ndotnet pack DotNetKit.Wpf.AutoCompleteComboBox -c Release\n" }, { "from": "gpt", "value": "#!/bin/pwsh\n# USAGE: ./scripts/pack\n\n# Ch...
powershell
chosen
[ { "from": "system", "value": "Update format, Add error handling\n" }, { "from": "human", "value": "function Get-HelpMessage\n{\n <#\n .SYNOPSIS\n Function to explain why an error occurred and provides problem-solving information.\n Equivalent of NET HELPMSG\n\n .DESCRIPTION\n F...
powershell
chosen
[ { "from": "system", "value": "Disable non-standard cmdlet verb checking\n" }, { "from": "human", "value": "Get-ChildItem $PSScriptRoot | ? { $_.PSIsContainer } | % { Import-Module $_.FullName }\n" }, { "from": "gpt", "value": "Get-ChildItem $PSScriptRoot | ? { $_.PSIsContainer } | % ...
powershell
chosen
[ { "from": "system", "value": "Upgrade to v7.0.8 VM binaries\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]$VMvers...
powershell
chosen
[ { "from": "human", "value": "Add WASM compile PowerShell script\n\nThis replaces that cursed `.bat` file. And should (?) work on any platform, assuming the user changes the paths at the top." }, { "from": "gpt", "value": "# Install LLVM to C:\\Program Files\\LLVM or set parameter below (Recommen...
powershell
chosen
[ { "from": "human", "value": "Add script to create command file\n" }, { "from": "gpt", "value": "$builtinModulePath = Join-Path $pshome 'Modules'\nif (-not (Test-Path $builtinModulePath))\n{\n throw new \"$builtinModulePath does not exist! Cannot create command data file.\"\n}\n\nFunction IsPS...
powershell
chosen
[ { "from": "system", "value": "tests(PubSub): Increase timeout.\nWe have added some new tests recently.\n" }, { "from": "human", "value": "# Copyright(c) 2020 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...
powershell
chosen
[ { "from": "system", "value": "Put a __main__ guard in the code that patches CloudStack scenarios.\n" }, { "from": "human", "value": "param\r\n(\r\n [string]$cloudbaseinitdir\r\n)\r\n\r\n$patch_code = @'\r\nfrom mock import patch\r\n\r\n\r\ndef custom_getattribute(self, attr):\r\n value = o...
powershell
chosen
[ { "from": "system", "value": "Remove correct file in code coverage script\n" }, { "from": "human", "value": "# Framework to use when generating coverage. Must be a \"real\" framework, i.e. not netstandard.\n$framework = \"netcoreapp3.1\";\n# The file path passed to coverlet...\n$coverletWantedOu...
powershell
chosen
[ { "from": "system", "value": "Add chocolatey package for PowerBI\n" }, { "from": "human", "value": "#Script Name: New-EasyDevWorkstation.ps1\n#Purpose: Quick and clean way to setup a simple developer workstation. Tested only for Windows 10\n#Author Nissan Dookeran\n#Date 23-06-2016\n#Version 0.0...
powershell
chosen
[ { "from": "system", "value": "Change test result type to nunit\n" }, { "from": "human", "value": "param(\n [string]\n $ResultsFile,\n\n [string]\n $ResultsType = \"nunit3\"\n)\n\n$ResultsFile = Resolve-Path $ResultsFile\n$Url = \"https://ci.appveyor.com/api/testresults/$ResultsType/$...
powershell
chosen
[ { "from": "system", "value": "Fix bug in setup.bat when checking powershell version\n" }, { "from": "human", "value": "function FindMostRecentVersion\n{\n $URI = \"https://nodejs.org/dist/latest/\"\n $HTML = Invoke-WebRequest -Uri $URI\n $nodeVersions = ($HTML.ParsedHtml.getElementsByTagName(...
powershell
chosen
[ { "from": "human", "value": "Add script to set up erlang runtime\n" }, { "from": "gpt", "value": "$ErrorActionPreference = \"Stop\"\n\n$ciUtils = (Resolve-Path \"$PSScriptRoot\\..\\Modules\\CIUtils\").Path\n$globalVariables = (Resolve-Path \"$PSScriptRoot\\..\\global-variables.ps1\").Path\n\nImp...
powershell
chosen
[ { "from": "system", "value": "Fix for new nuget commandline\n" }, { "from": "human", "value": "$buildDir = \".\\build\"\n$coreDir = $buildDir + \"\\Core\"\n$aspnetDir = $buildDir + \"\\AspNet\"\n$messengerDir = $buildDir + \"\\Messenger\"\n$winrtDir = $buildDir + \"\\WinRT\"\n$coreOutputDir = $c...
powershell
chosen
[ { "from": "human", "value": "Add powershell build equivalent for docker\n" }, { "from": "gpt", "value": "# Get the package version from the package.json then build with docker build\n$PACKAGE_VERSION = (node -p -e \"require('./package.json').version\")\ndocker build -t luketillman/killrvideo-web...
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 DOCKER_VERSION\").ToString().split()[-1]\ndocker tag docker-cli stefanscherer/docker-cli-windows:$version-2016\ndock...
powershell
chosen
[ { "from": "human", "value": "Add unit test for CollectHelixModules.FileSystem\n" }, { "from": "gpt", "value": ". \"$PSScriptRoot/utils/WebConfig.ps1\"\n. \"$PSScriptRoot/utils/MSBuild.ps1\"\n. \"$PSScriptRoot/utils/MSDeploy.ps1\"\n\n$fixtures = @{\n default = @{\n Solution = \"$PSScrip...
powershell
chosen
[ { "from": "system", "value": "Fix sorting issue on *nix and PSCore\n\nAs noted in https://github.com/PowerShell/PowerShell/issues/8824,\nPS Core on (at least Ubuntu 18.04) sorts strings differently than\nWindows PowerShell and PS Core on macOS so we'll make sure the case\nof the task names is consistent.\n"...
powershell
chosen
[ { "from": "system", "value": "Use capital 'PSMODULEPATH' in tests so that it works in unix\n" }, { "from": "human", "value": "Describe \"Module Path Basic Tests\" -tags \"CI\" {\n \n It \"validate module path on windows\" -Skip:(!$IsWindows) {\n \n $paths = $env:PSModulePath ...
powershell
chosen
[ { "from": "system", "value": "Add Authorized Devices to Main Module\n\nAdd Authorized Devices to Main Module\n" }, { "from": "human", "value": "Import-Module .\\PoshSec.PowerShell.Commands\\PoshSec.PowerShell.Commands\\bin\\Debug\\PoshSec.PowerShell.Commands.dll\nImport-Module .\\Account-Monito...
powershell
chosen
[ { "from": "system", "value": "Improve bootstrapper behavior on error.\n" }, { "from": "human", "value": "Push-Location $PSScriptRoot\ntry {\n if (-not (Test-Path ./tools/bin/Build) -or\n (Get-ChildItem ./tools/Build/* | Measure-Object LastWriteTime -Maximum).Maximum -gt\n (Get-ChildIt...
powershell
chosen
[ { "from": "human", "value": "Add cert to string ps tool\n" }, { "from": "gpt", "value": "<#\n Convert cert with base-64 to c string\n#>\n\nif($args.Length -ne 1){\n Write-Warning \"Usage: certToString.ps1 <.cer file name>\"\n Exit -1\n}\n\n$cert = Get-Content $args[0]\n$length = $cert.Len...
powershell
chosen
[ { "from": "system", "value": "Replace function gcms with syntax\n\ngcms is likely to be used as an alias for some commands.\nFor example, Get-CimSession\n" }, { "from": "human", "value": "function gcms { param ([string[]]$Name) Get-Command -Name $Name -Syntax }\nRegister-ArgumentCompleter -Comma...
powershell
chosen
[ { "from": "human", "value": "Add powershell script that spins up sql server express docker container\n" }, { "from": "gpt", "value": "IF ($(docker ps -aq).Length -gt 0) {\n docker stop $(docker ps -aq)\n docker rm $(docker ps -aq)\n}\nWrite-Host \"Starting docker container...\"\n$container...
powershell
chosen
[ { "from": "system", "value": "Fix the paths for a cmake build\n" }, { "from": "human", "value": "\n\nfunction Invoke-Tests($executable)\n{\n # Run tests and output the results using junit\n $TestCommand = \"$executable -ojunit\"\n Write-Host $TestCommand\n Invoke-Expression $TestCom...
powershell
chosen
[ { "from": "system", "value": "Fix sample to use yes instead of true\n" }, { "from": "human", "value": "#--------------------------------------------------------------------------------- \r\n#The sample scripts are not supported under any Microsoft standard support \r\n#program or service. The sa...
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": "Add .exe to windows' GOTARGET" }, { "from": "human", "value": "$BOT_VERSION=$(git describe --tags)\n$BUILD_TIME=$(Get-Date -UFormat \"%T-%D\")\n$BUILD_USER=$env:UserName\n$BUILD_HOST=$env:ComputerName\n$TARGET=\"\"\n\nif (Get-Variable GOTARGET -Scope Global -ErrorA...
powershell
chosen
[ { "from": "system", "value": "Load chocolatey profile if available\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-Loca...
powershell
chosen
[ { "from": "system", "value": "Remove needless lines in ps1\n" }, { "from": "human", "value": ".\\.nuget\\NuGet.exe Install Persimmon.Console -Pre -OutputDirectory packages -ExcludeVersion\n\nC:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\MSBuild.exe grnline.fs.sln /property:Configuration=D...
powershell
chosen
[ { "from": "system", "value": "Add info for git workarround\n" }, { "from": "human", "value": "Write-Host -ForegroundColor Cyan \"Generate coverage report ...\"\n\ngit clone -b -n --depth=1 gh-pages \"https://github.com/Ridermansb/wox.skype.git\" gh-pages 2>&1 | % { $_.ToString() }\n\nls\n\ncd gh...
powershell
chosen
[ { "from": "human", "value": "Deploy script for AWS S3 hosting.\n\n" }, { "from": "gpt", "value": "## Pre-Req: \n# aws configure\n# with access and security keys\n$awsprofile = \"lundsgard\"\n\n$bucketname = \"www.continuousdelivery.eu\"\n\n# Create bucket\n#aws s3 mb \"s3://$bucketname\"\n\n# E...
powershell
chosen
[ { "from": "system", "value": "Replace wc -l with pure powershell\n" }, { "from": "human", "value": "\"Updating docker engine\"\ndocker version\n\n\"Stopping docker service\"\nstop-service docker\n\nif (!(Test-Path C:\\windows\\system32\\docker-orig.exe)) {\n \"Saving docker original docker engi...
powershell
chosen
[ { "from": "system", "value": "Configure wouldn't have the local files\n\nIf launched via START.cmd, those files wouldn't exist\n" }, { "from": "human", "value": "## Download Chocolatey Package Manager\nif(-not $env:ChocolateyInstall -or -not (Test-Path \"$env:ChocolateyInstall\"))\n{\n\tiex ((ne...
powershell
chosen
[ { "from": "human", "value": "Add storage account provision script\n" }, { "from": "gpt", "value": "# IMPORTANT: Run following prior to running this script\n# 1. Connect-AzAccount\n# 2. Select-AzSubscription -SubscriptionName \"Your sub name\"\n\n$locations = Get-AzLocation\n$resourceGroupName = ...
powershell
chosen
[ { "from": "system", "value": "Use UInt64 type instead of String for DiskSize\n" }, { "from": "human", "value": "#Requires -Modules VagrantMessages\n\nparam(\n [Parameter(Mandatory=$true)]\n [string]$VmId,\n [Parameter(Mandatory=$true)]\n [string]$DiskFilePath\n [Parameter(Mandator...
powershell
chosen
[ { "from": "human", "value": "GhcDevel: Add packaging script for standalone install\n" }, { "from": "gpt", "value": "Add-Type -assembly \"system.io.compression.filesystem\"\r\n\r\n$path = Split-Path $MyInvocation.MyCommand.Path -Parent\r\n$bin = Join-Path $path \"bin\"\r\n$templates = ...
powershell
chosen
[ { "from": "system", "value": "Switch to long from decimal\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": "Change Icon to match what was chosen for VSTS Task" }, { "from": "human", "value": "@{\r\n ModuleToProcess = 'psake.psm1'\r\n ModuleVersion = '4.6.0'\r\n GUID = 'cfb53216-072f-4a46-8975-ff7e6bda05a5'\r\n Author = 'James Kova...
powershell
chosen
[ { "from": "system", "value": "Install variable not used in script.\n" }, { "from": "human", "value": "$packageName = \"openvpn\" # arbitrary name for the package, used in messages\r\n$installerType = \"exe\" #only one of these two: exe or msi\r\n$installerArgs = \"/S\"\r\n$url = \"https://swupd...
powershell
chosen
[ { "from": "system", "value": "Remove module from PROFILE for Vagrant 1.8.1\n" }, { "from": "human", "value": "# install chocolatey\niex (wget 'https://chocolatey.org/install.ps1' -UseBasicParsing)\n" }, { "from": "gpt", "value": "# install chocolatey\niex (wget 'https://chocolatey.or...
powershell
chosen
[ { "from": "system", "value": "Update Windows test to force using TLS/1.2\n\nhttps://githubengineering.com/crypto-removal-notice/ broke the windows test. Forcing Powershell to update to TLS/1.2." }, { "from": "human", "value": "# Copyright 2017 gRPC authors.\n#\n# Licensed under the Apache Licens...
powershell
chosen
[ { "from": "system", "value": "Upgrade to Dolphin VM version 7.0.27\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]...
powershell
chosen
[ { "from": "human", "value": "Add main DCOS EPMD agent initialisation script\n" }, { "from": "gpt", "value": "$ErrorActionPreference = \"Stop\"\n\n$ciUtils = (Resolve-Path \"$PSScriptRoot\\..\\Modules\\CIUtils\").Path\n$globalVariables = (Resolve-Path \"$PSScriptRoot\\..\\global-variables.ps1\")....
powershell
chosen
[ { "from": "human", "value": "Add new file to hold misc. dot sourced functions\n" }, { "from": "gpt", "value": "## Copyright 2012 Robert Nees\n## Licensed under the Apache License, Version 2.0 (the \"License\");\n## http://sushihangover.blogspot.com\n##\nfunction isNumeric ($x) {\n $x2 = 0\n ...
powershell
chosen
[ { "from": "system", "value": "Add Format-List with all properties shortcut function: fla\n" }, { "from": "human", "value": "# Invoke Get-Help with -Detailed\nFunction ghd {\n [CmdletBinding()]\n Param(\n [Parameter(Mandatory)]\n [String]$Name\n )\n\n Get-Help -Detailed ...
powershell
chosen
[ { "from": "system", "value": "Modify project files as well.\n" }, { "from": "human", "value": "param($newVersion)\r\n#\r\n# We expect to be run from a root directory! And \"$newVersion\" is \"v5.30.01\" or\r\n# similar.\r\n#\r\n\r\n#\r\n# Get a list of all packages.config files.\r\n#\r\n\r\n$all...
powershell
chosen
[ { "from": "system", "value": "Fix code coverage path again\n" }, { "from": "human", "value": "$coverageFilePaths = Get-ChildItem -Path TestResults -Filter *.coverage -Recurse -ErrorAction SilentlyContinue -Force | %{ $_.fullname }\n\n$coverageFilePathList = [string]$coverageFilePaths\n\nWrite-Ho...
powershell
chosen
[ { "from": "system", "value": "Copy module PDB files to output directory.\n" }, { "from": "human", "value": "<# Copyright © 2018 Jeremy Herbison\n\nThis file is part of AudioWorks.\n\nAudioWorks is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General ...
powershell
chosen
[ { "from": "system", "value": "Update the name of the included dtd-resource\n\nIn the code the reference is named with a prefix. The nuget script now use the same name." }, { "from": "human", "value": "properties {\n $buildDir = \".\\build\"\n $outputDir = $buildDir + \"\\lib\\\" + $framewo...
powershell
chosen
[ { "from": "system", "value": "Switch to community version of vstudio\n" }, { "from": "human", "value": "$ScriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition\n\n& \"$ScriptPath\\PowerShellProfile\\Microsoft.PowerShell_profile.ps1\"\n\nchocolatey install VisualStudio2013Professional...
powershell
chosen
[ { "from": "system", "value": "Update date time return to ISO format\n\n@andreano\n" }, { "from": "human", "value": "# Returns the system's date and time\n# Return Type: DateTime\n# Execution Context: User\n$date_current = get-Date -DisplayHint Date\nwrite-output $date_current" }, { "from...
powershell
chosen
[ { "from": "system", "value": "Make it easier to update devtools file after updating CEF\n" }, { "from": "human", "value": "$ErrorActionPreference = \"Stop\"\n\n$MainProj = \"..\\TweetDuck.csproj\"\n$BrowserProj = \"..\\subprocess\\TweetDuck.Browser.csproj\"\n\n$Match = Select-String -Path $MainP...
powershell
chosen
[ { "from": "human", "value": "Add PuTTY saved session completion in PowerShell\n" }, { "from": "gpt", "value": "if ($DotFilesShowScriptEntry) {\n Write-Verbose -Message (Get-DotFilesMessage -Message $PSCommandPath)\n}\n\nif (!(Get-Command -Name putty -ErrorAction Ignore)) {\n Write-Verbose ...
powershell
chosen
[ { "from": "human", "value": "Add helper script for updating the projects security policy.\n" }, { "from": "gpt", "value": " param (\n [Parameter(Mandatory=$true)][string]$role,\n [Parameter(Mandatory=$true)][string]$username\n )\n\n$scriptDir = $(Split-Path -parent $MyInvocation.MyCommand....
powershell
chosen
[ { "from": "system", "value": "Fix bug in build script.\n" }, { "from": "human", "value": ". .\\BuildUtils\\build_utils.ps1\r\n\r\n$buildNumber = ($env:APPVEYOR_BUILD_NUMBER, \"0\" -ne $null)[0]\r\n$version = Get-VersionFromTag\r\n\r\nPatch-Xml \"YamlDotNetEditor\\source.extension.vsixmanifest\" ...
powershell
chosen