conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add /p:TargetVSIXContainer to tools build script"
},
{
"from": "human",
"value": "Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1' -OutFile .\\build\\dotnet-install.ps1\n.\\build\\dotnet-install.ps1 -channel Current -version 2.1.3 -InstallDir dotnets... | powershell | chosen |
[
{
"from": "system",
"value": "Check for clean tree and add commit for Windows\n"
},
{
"from": "human",
"value": "# creates a .zip file with the file structure to run UVa-ITS-gopherbot\n\n$version = \"\" + (Select-String -Path .\\bot\\bot.go -pattern \"var Version = \") \n\n$Start = $version.Inde... | powershell | chosen |
[
{
"from": "system",
"value": "Upgrade to Dolphin VM 7.0.28\n\nFixes part of issue #238 (the more impactful empty block case). The actual\nfix is in the compiler.\n"
},
{
"from": "human",
"value": "\n# Powershell script to pull the VM files from GitHub into the current folder.\n# Edit the followi... | powershell | chosen |
[
{
"from": "human",
"value": "Add script to run code formatter\n"
},
{
"from": "gpt",
"value": "$codeFormatterDownloadUri = \"https://github.com/dotnet/codeformatter/releases/download/v1.0.0-alpha6/CodeFormatter.zip\"\n$codeFormatterDownloadLocation = \"$env:TEMP\\code-formatter.zip\"\n$codeForma... | powershell | chosen |
[
{
"from": "system",
"value": "Change AppVeyor Node version to 5.10.0\n"
},
{
"from": "human",
"value": "$client = New-Object System.Net.WebClient\n\n# Install PHP\n$phpUrl = \"http://windows.php.net/downloads/releases/$env:PHP.zip\"\nWrite-Output \"Downloading $phpUrl\"\n$client.DownloadFile($ph... | powershell | chosen |
[
{
"from": "system",
"value": "Fix xunit path in opencover args\n"
},
{
"from": "human",
"value": "\"PR: '$env:APPVEYOR_PULL_REQUEST_NUMBER'\"\nif($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null) {\n OpenCover.Console.exe -register:user -filter:\"+[ScriptCs.ComponentModel.Composition]*\" -excludeb... | powershell | chosen |
[
{
"from": "system",
"value": "Fix a small bug, and add some code to help debug another odd problem.\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... | powershell | chosen |
[
{
"from": "system",
"value": "Fix module reloading where cmdlets are unloaded but types not\n"
},
{
"from": "human",
"value": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License.\n\n# Add the relevant binary module\ntry\n{\n $null = [Microsoft.PowerS... | powershell | chosen |
[
{
"from": "system",
"value": "Swap usage of share name and id for consistent behavior\n"
},
{
"from": "human",
"value": "# The names of the user are language dependent!\r\n$objSID = New-Object System.Security.Principal.SecurityIdentifier(\"S-1-1-0\")\r\n$objUser = $objSID.Translate([System.Secur... | powershell | chosen |
[
{
"from": "system",
"value": "Set PSReadLine edit mode to Emacs\n"
},
{
"from": "human",
"value": "function prompt {\n $location = ([string]$(get-location)).Replace($HOME, '~')\n \"$location |-/ \"\n}\n\nSet-Alias g git\n\nfunction e {\n emacsclient --alternate-editor=\"\" $Args\n}\n\n$l... | powershell | chosen |
[
{
"from": "system",
"value": "Upgrade to 7.0.43 VM build for new stubs without insecure CRT 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... | powershell | chosen |
[
{
"from": "system",
"value": "Improve script to create linux machine\n"
},
{
"from": "human",
"value": "param(\n [string]$name\n)\n\nif (! $name) {\n $name = \"dev\"\n}\n\n# create a virtual switch\nNew-VMSwitch -NetAdapterInterfaceDescription \"vmxnet3 Ethernet Adapter\" -Name \"docker\"\n\n#... | powershell | chosen |
[
{
"from": "system",
"value": "Add sl functions as aliases\n"
},
{
"from": "human",
"value": "sal gh help\n\nfunction prompt {\n\t$Host.UI.RawUI.WindowTitle = \"PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($NestedPromptLevel + 1))\"\n\treturn 'PS> '\n}\n"
},
{
"from":... | powershell | chosen |
[
{
"from": "system",
"value": "Disable Unicode for NPM in AppVeyor\n"
},
{
"from": "human",
"value": "$OutputEncoding = [Text.Encoding]::UTF8\n\n$client = New-Object System.Net.WebClient\n\n# Install PHP\n$phpUrl = \"http://windows.php.net/downloads/releases/$env:PHP.zip\"\nWrite-Output \"Downloa... | powershell | chosen |
[
{
"from": "system",
"value": "Implement Restore Git Remote task\n"
},
{
"from": "human",
"value": "[cmdletbinding()]\nparam(\n [string]$remoteName\n)\n\nWrite-Verbose \"Entering script RestoreGitRemote.ps1\"\nWrite-Verbose \"Parameter Values\"\nforeach($key in $PSBoundParameters.Keys)\n{\n ... | powershell | chosen |
[
{
"from": "system",
"value": "Remove Octopus error hack now that it breaks Octopus.\n"
},
{
"from": "human",
"value": "$deployToolsDir = Split-Path ((Get-Variable MyInvocation -Scope 0).Value.MyCommand.Path)\n\nif (Test-Path variable:\\OctopusParameters)\n{\n foreach($kp in $OctopusParameter... | powershell | chosen |
[
{
"from": "human",
"value": "Add script for generation of Coverity Scan upload package\n"
},
{
"from": "gpt",
"value": "# Move to the project root folder (parent from current script folder)\n\nfunction Get-ScriptDirectory\n{ \n $Invocation = (Get-Variable MyInvocation -Scope 1).Value \n Sp... | powershell | chosen |
[
{
"from": "human",
"value": "Add TEPP for MailAccount\nOriginally named just Account\n"
},
{
"from": "gpt",
"value": "#region Initialize Cache\nif (-not [Sqlcollaborative.Dbatools.TabExpansion.TabExpansionHost]::Cache[\"mailaccount\"]) {\n\t[Sqlcollaborative.Dbatools.TabExpansion.TabExpansionHo... | powershell | chosen |
[
{
"from": "system",
"value": "Fix path to updatenuget script\n"
},
{
"from": "human",
"value": "\n$currentScriptDirectory = Get-Location\n[System.IO.Directory]::SetCurrentDirectory($currentScriptDirectory.Path)\n\nSet-Location -Path ${PSScriptRoot}\n$solutiondir = Resolve-Path -Path \"$currentSc... | powershell | chosen |
[
{
"from": "system",
"value": "Fix typo: installes -> installed"
},
{
"from": "human",
"value": "#Script based on https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/visual-studio-dev-vm-chocolatey/scripts/SetupChocolatey.ps1\nparam([Parameter(Mandatory=$true)][string]$choco... | powershell | chosen |
[
{
"from": "system",
"value": "Fix for C++/CLI to ensure that the assembly gets removed\n"
},
{
"from": "human",
"value": "param($installPath, $toolsPath, $package, $project)\n\n$obj = $project.Object\n$getRefsMethod = [Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectShim].GetMeth... | powershell | chosen |
[
{
"from": "system",
"value": "Remove build step to generate .psm1\n"
},
{
"from": "human",
"value": "$ErrorActionPreference = \"Stop\"\n\n$env:DOTNET_CLI_TELEMETRY_OPTOUT=1\ndotnet build --configuration Release PSFzf.sln\n$dllPaths = Get-ChildItem PSFzf.dll -Recurse\nif ($null -eq $dllPaths) {\n... | powershell | chosen |
[
{
"from": "system",
"value": "Update error handling in the talk preparation script\n"
},
{
"from": "human",
"value": "param (\n [string] $yarn = 'yarn',\n [string] $RepoPath = \"$PSScriptRoot/../ForneverMind/wwwroot/talks\"\n)\n\n$ErrorActionPreference = 'Stop'\n\nfunction log($text, $hea... | powershell | chosen |
[
{
"from": "system",
"value": "Check version without turbo client\n"
},
{
"from": "human",
"value": "# Extract the latest version of Turbo repository\n# \n# Licensed under the Apache License, Version 2.0\n# http://www.apache.org/licenses/LICENSE-2.0\n\nfunction Get-LatestHubVersion\n{\n [Cmdle... | powershell | chosen |
[
{
"from": "human",
"value": "Add scan option to monitor file share permissions"
},
{
"from": "gpt",
"value": "$all_shares = Get-WmiObject win32_LogicalShareSecuritySetting\n$shares = @()\nif($all_shares){\n foreach($s in $all_shares){\n $obj = New-Object –TypeName PSObject\n $ob... | powershell | chosen |
[
{
"from": "system",
"value": "Update script to get proper incremental versions in develop branch"
},
{
"from": "human",
"value": "$publishVersion = $Env:GitVersion_MajorMinorPatch\n\n# Regular expression pattern to find the version in the build number \n# and then apply it to the assemblies\n$ve... | powershell | chosen |
[
{
"from": "system",
"value": "Leverage the Module Autoload path and save doing it ourselves.\n\nThis should be faster too as we won't automatically import all functions\nto the session. Powershell now knows where to look before declaring they\ndon't exist.\n"
},
{
"from": "human",
"value": "# G... | powershell | chosen |
[
{
"from": "system",
"value": "Update docker-compose 1.6.0, docker-machine 0.6.0\n"
},
{
"from": "human",
"value": "# install docker tools\nchoco install -y docker-machine -version 0.5.6\nchoco install -y docker-compose -version 1.5.2\n"
},
{
"from": "gpt",
"value": "# install docker ... | powershell | chosen |
[
{
"from": "system",
"value": "Revert \"I don't even know anymore\"\n\nThis reverts commit 63f504feb78892038ac6ee4b134e34f93d2ad786.\n"
},
{
"from": "human",
"value": "pushd\n\n$steamData = \"C:/Steam/DataMP/\"\n$steamCMDPath = \"C:/Steam/steamcmd/\"\n$steamCMDZip = \"C:/Steam/steamcmd.zip\"\n\nA... | powershell | chosen |
[
{
"from": "system",
"value": "Correct PSProvideDefaultParameterValue NoViolations test script\n"
},
{
"from": "human",
"value": "function GoodFunc\n{\n param(\n [parmaeter(mandatory=$false)]\n [string]$Param1=$null\n )\n $Param1\n}"
},
{
"from": "gpt",
"value"... | powershell | chosen |
[
{
"from": "system",
"value": "Fix root directory generation on failed access\n"
},
{
"from": "human",
"value": "#Requires -Modules VagrantMessages, VagrantVM\n\nparam(\n [parameter (Mandatory=$true)]\n [string] $Path\n)\n\n$check = Check-VagrantHyperVAccess -Path $Path\n$result = @{\n r... | powershell | chosen |
[
{
"from": "system",
"value": "Remove debug console output in test\n"
},
{
"from": "human",
"value": ". \"$PSScriptRoot/utils/WebConfig.ps1\"\n. \"$PSScriptRoot/utils/MSBuild.ps1\"\n. \"$PSScriptRoot/utils/MSDeploy.ps1\"\n\n$fixtures = @{\n default = @{\n Solution = \"$PSScriptRoot\\fix... | powershell | chosen |
[
{
"from": "system",
"value": "Install Postman and NodeJS LTS\n\nThe LTS version of Node seems to be sufficient for what I do"
},
{
"from": "human",
"value": "### Install handy tools and apps for my dev machine\n### Run this script from an administrative shell\n\nSet-ExecutionPolicy RemoteSigned\... | powershell | chosen |
[
{
"from": "system",
"value": "feat: Add bash-like autocomplete features using PSReadline\n"
},
{
"from": "human",
"value": "#\r\n# Install Powershell modules, if not already installed\r\n#\r\nfunction Test-Installed\r\n{\r\n $Name = $args[0]\r\n Get-Module -ListAvailable -Name $Name\r\n}\r\nif... | powershell | chosen |
[
{
"from": "human",
"value": "Add basic examples using Pester\n"
},
{
"from": "gpt",
"value": "Describe \"Basic\" {\r\n Context \"Arithmetic\" {\r\n It \"1 + 1 shoukd be 2\" {\r\n 1 + 1 | Should -Be 2\r\n }\r\n }\r\n\r\n Context \"String\" {\r\n It \"An i ... | powershell | chosen |
[
{
"from": "system",
"value": "Add flag for running tests in Release\n"
},
{
"from": "human",
"value": "param([String]$Tests=\"Functional\", [switch]$Parallel, [switch]$Build);\n\n$paths = Get-ChildItem Tests -Directory | % { Join-Path $_.FullName -ChildPath (\"bin/Debug/netcoreapp2.2/$($_.Name).... | powershell | chosen |
[
{
"from": "system",
"value": "Update of is64bit so it's not dependent on version of Powershell being used\n"
},
{
"from": "human",
"value": "$deployToolsDir = Split-Path ((Get-Variable MyInvocation -Scope 0).Value.MyCommand.Path)\n\nif (Test-Path variable:\\OctopusParameters)\n{\n foreach($k... | powershell | chosen |
[
{
"from": "system",
"value": "Add Write-breakline cmdlet to utils.psm1\n"
},
{
"from": "human",
"value": "<#\n\tMy Function\n#>\nfunction Get-Function {\n\n}"
},
{
"from": "gpt",
"value": "\nfunction Write-Breakline () {\n\tParam(\n\t\t[string]$Title = \"\"\n\t)\n\n\t$line = \"`n----... | powershell | chosen |
[
{
"from": "system",
"value": "Fix production image build script.\n\nPretty sure the sysinternals strings command used to take \"-q\" to turn off\nthe startup banner, now it takes \"-nobanner\". We filter the output anyway,\nso don't pass anything.\n"
},
{
"from": "human",
"value": "[CmdletBindin... | 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": "Use the registry to stop Windows Updates\n"
},
{
"from": "human",
"value": "$mgr = New-Object -ComObject Microsoft.Update.ServiceManager -Strict\n$mgr.ClientApplicationID = \"packer\"\n$mgr.RemoveService('7971f918-a847-4430-9279-4a52d1efe18d')\n"
},
{
"from"... | powershell | chosen |
[
{
"from": "system",
"value": "Fix nightly (dev) package versioning.\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] } }\nif ( $env:APPVE... | powershell | chosen |
[
{
"from": "system",
"value": "Make Jenkins download playtest branch\n"
},
{
"from": "human",
"value": "pushd\n\n$steamData = \"C:/Steam/Data/\"\n$steamCMDPath = \"C:/Steam/steamcmd/\"\n$steamCMDZip = \"C:/Steam/steamcmd.zip\"\n\nAdd-Type -AssemblyName System.IO.Compression.FileSystem\n\nif (!(Te... | powershell | chosen |
[
{
"from": "system",
"value": "Throw exception if script for patching TFS task version is called with invalid arguments.\n"
},
{
"from": "human",
"value": "param (\n[string] $filePath,\n[string] $major,\n[string] $minor,\n[string] $patch\n)\n\n# Get the task.json as a powershell object\n$task = G... | powershell | chosen |
[
{
"from": "system",
"value": "Downgrade docker version for windows to 20.10.7\n\nThe windows build failed on version 20.10.9, as that\nversion isn't available to windows. 20.10.7 is the most\nrecent availble version: [souce](https://dockermsft.azureedge.net/dockercontainer/DockerMsftIndex.json)\n"
},
{
... | powershell | chosen |
[
{
"from": "system",
"value": "Add a recurse to the delete\n"
},
{
"from": "human",
"value": "$scriptDir = Split-Path ((Get-Variable MyInvocation -Scope 0).Value.MyCommand.Path)\n\nif(Test-Path $DeployToolsDir)\n{\n Write-Host \"Removing Deploy Tools Directory Found at $DeployToolsDir\"\n R... | powershell | chosen |
[
{
"from": "human",
"value": "Build script for CI server (properties don't work there)\n"
},
{
"from": "gpt",
"value": "Framework \"4.0x86\"\n\nTask Build-Master {\n\tInvoke-Psake default.ps1 -properties @{autoVersion = $false}\n}\n\nTask Build-Develop {\n\tInvoke-Psake default.ps1\n}"
}
] | powershell | chosen |
[
{
"from": "system",
"value": "Update text on the Bootstrapping script\n\nUpdate the text in the Bootstrapping script to say \"Google Cloud Tools for PowerShell\", which is the official name for the project."
},
{
"from": "human",
"value": "# Copyright 2015 Google Inc. All Rights Reserved.\n# Li... | powershell | chosen |
[
{
"from": "human",
"value": "Add basic PowerShell script for building images.\n"
},
{
"from": "gpt",
"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": "pwsh: Remove alias of curl & wget if defined\n"
},
{
"from": "human",
"value": "# \"dot source\" this file in my $PROFILE\n\n# Define git related functions for aliases\nfunction GitDiff { git diff }\nfunction GitLog { git log --graph --oneline --decorate }\nfunction... | powershell | chosen |
[
{
"from": "system",
"value": "Build all non-test projects as both release and prerelease artifacts\n"
},
{
"from": "human",
"value": "dotnet restore;\ndotnet build -c Release;\ndotnet pack --no-build -c Release ShopifySharp/ShopifySharp.csproj;\ndotnet pack --no-build -c Release ShopifySharp.Exp... | powershell | chosen |
[
{
"from": "system",
"value": "Add EnableSSL to the main Reviewbot Jenkins job script\n"
},
{
"from": "human",
"value": "$ErrorActionPreference = 'Stop'\n\n$paramsFile = Join-Path $env:WORKSPACE \"mesos-build-parameters.txt\"\n$consoleLogFile = Join-Path $env:WORKSPACE \"mesos-build-${env:BRANCH}... | powershell | chosen |
[
{
"from": "system",
"value": "pwsh: Allow adding args for Git related aliases\n"
},
{
"from": "human",
"value": "# \"dot source\" this file in my $PROFILE\n\n# Define git related functions for aliases\nfunction GitDiff { git diff }\nfunction GitLog { git log --graph --oneline --decorate }\nfunct... | powershell | chosen |
[
{
"from": "human",
"value": "Add Account psd1 with proper encoding\n\nAdd account monitoring and control psd1 to support proper encoding.\n"
},
{
"from": "gpt",
"value": "@{\n\n# Script module or binary module file associated with this manifest.\nModuleToProcess = 'account-monitoring-control.ps... | powershell | chosen |
[
{
"from": "human",
"value": "Add simple Enable-PSBreakpoint and Disable-PSBreakpoint cmdlet tests\n"
},
{
"from": "gpt",
"value": "Describe \"Enable and Disable PSBreakpoints\" -Tag \"CI\" {\n BeforeAll {\n $path = Setup -F testbp.ps1 -content \"get-command`nget-date`nget-location\" -p... | powershell | chosen |
[
{
"from": "human",
"value": "Add script to source VC env into powershell\n"
},
{
"from": "gpt",
"value": "# Setups VC environment from bat.\n# It runs environment in cmd and extract all variables into temp file.\n# which then is used to source environment.\nfunction set_vc($arch) {\n $vc_env... | powershell | chosen |
[
{
"from": "human",
"value": "Add script to ease project name change\n"
},
{
"from": "gpt",
"value": "<#\n\n.SYNOPSIS\nThis is a simple Powershell script to ease change of the .NET Project name\n\n.DESCRIPTION\nChanges project name to the new one by renaming all files, folders and text occurence... | powershell | chosen |
[
{
"from": "system",
"value": "Remove PoSh wget alias if the real deal is present\n"
},
{
"from": "human",
"value": "Write-Verbose -Message (Get-DotFilesMessage -Message 'Configuring aliases ...')\n\n# Some useful aliases\nSet-Alias -Name cop -Value Compare-ObjectProperties\nSet-Alias -Name gh -V... | powershell | chosen |
[
{
"from": "system",
"value": "Add dotnet command completion for PowerShell\n"
},
{
"from": "human",
"value": "if (Get-Command -Name dotnet -ErrorAction Ignore) {\n Write-Verbose -Message '[dotfiles] Loading .NET Core settings ...'\n\n # Opt-out of telemetry\n Set-Item -Path Env:\\DOTNET... | powershell | chosen |
[
{
"from": "system",
"value": "Remove timer from PowerScript - doesn't work\n"
},
{
"from": "human",
"value": "# Create timer for window title\n$count = 0\n$timer = New-Object System.Timers.Timer\n$timer.Interval = 1000\n# Write runtime to window title\nRegister-ObjectEvent -InputObject $timer -... | powershell | chosen |
[
{
"from": "system",
"value": "Remove pointless management -pre in package.ps1\n"
},
{
"from": "human",
"value": "$root = (split-path -parent $MyInvocation.MyCommand.Definition)\n$lib = \"$root\\.package\\lib\\45\\\"\nif (Test-Path $lib)\n{\n\tRemove-Item $lib -recurse\n}\nnew-item -Path $lib -It... | powershell | chosen |
[
{
"from": "system",
"value": "Add killrvideo-data to subtree pull script\n"
},
{
"from": "human",
"value": "<#\n .DESCRIPTION\n Pull the latest from the projects that are git subtrees.\n#>\n\ngit subtree pull --prefix lib/killrvideo-docker-common git@github.com:KillrVideo/killrvideo-docker-com... | powershell | chosen |
[
{
"from": "human",
"value": "Add powershell script to build installer.\n"
},
{
"from": "gpt",
"value": "$launcherExe = \"../RXL.WPFClient/bin/Release/RXL.exe\"\n$versionObj = [System.Reflection.Assembly]::LoadFrom($launcherExe).GetName().Version\n$version = $versionObj.Major.ToString() + \".\" +... | powershell | chosen |
[
{
"from": "system",
"value": "Add error stream and information stream tests\n\nfor native pipes\n"
},
{
"from": "human",
"value": "# Minishell is a powershell concept.\n# It's primare use-case is when somebody executes a scriptblock in the new powershell process.\n# The objects are automatically... | powershell | chosen |
[
{
"from": "system",
"value": "Add test validate the IsAccessible property\n"
},
{
"from": "human",
"value": "Describe \"Get-DbaDatabase Integration Tests\" -Tags \"Integrationtests\" {\n\n Context \"Count system databases on localhost\" {\n $results = Get-DbaDatabase -SqlInstance loca... | powershell | chosen |
[
{
"from": "system",
"value": "Hide dotnet utility output on build.\n"
},
{
"from": "human",
"value": "param(\n [string] $Configuration,\n [string] $ExtensionProjectRoot,\n [string] $ExtensionOutputRoot)\n\n\"Publishing all extensions under $ExtensionProjectRoot to $ExtensionOutputRoot u... | powershell | chosen |
[
{
"from": "system",
"value": "Fix an issue with accessing projects within a solution folder.\n"
},
{
"from": "human",
"value": "<#\nVS.psm1 - Visual Studio utilities.\n\nCopyright (c) 2013 Precision Mojo, LLC.\nCopyright (c) 2017 Marcus R. Brown <me@igetgam.es>\n\nThis file is part of the Unity3... | powershell | chosen |
[
{
"from": "system",
"value": "Update nuget packaging script to remove EventStore\n"
},
{
"from": "human",
"value": "mkdir NuGet\nnuget pack \".\\Domain\\Domain.csproj\" -Properties \"Configuration=Release;Platform=AnyCPU\" -OutputDirectory \".\\NuGet\"\nnuget pack \".\\Domain.Api\\Domain.Api.csp... | powershell | chosen |
[
{
"from": "system",
"value": "Call twine command without full path.\n"
},
{
"from": "human",
"value": "if (($env:appveyor_repo_tag -eq \"True\") -and ($env:appveyor_repo_branch.StartsWith(\"v\"))) {\n Invoke-Expression \"$env:PYTHON/Scripts/twine upload -u landlab -p $env:PYPI_PASS dist/*\"\n... | powershell | chosen |
[
{
"from": "human",
"value": "Create test for new command\n\nDependent upon #1977 being merged, but went ahead and tested my ability with Pester to create the test."
},
{
"from": "gpt",
"value": "$CommandName = $MyInvocation.MyCommand.Name.Replace(\".ps1\", \"\")\nWrite-Host -Object \"Running $PS... | powershell | chosen |
[
{
"from": "human",
"value": "Deploy test app for vnetRouteAllEnabled\n"
},
{
"from": "gpt",
"value": "$location = 'Australia East'\n$loc = 'aue'\n$rg = 'hellovnetrouteall-rg'\n$plan = \"hellovnetrouteall-$loc-plan\"\n$tags = 'project=private-paas'\n$app = \"hellovnetrouteall-$loc\"\n$vnet = \"he... | powershell | chosen |
[
{
"from": "system",
"value": "Use absolute path for 7z\n"
},
{
"from": "human",
"value": "$temp_directory = \"$env:APPVEYOR_BUILD_FOLDER\\Deploy\\Portable\\~TEMP\"\nNew-Item \"$temp_directory\" -type directory\n\n$zip_archive = \"$env:APPVEYOR_BUILD_FOLDER\\Deploy\\Portable\\Tabster $env:APPVEYO... | powershell | chosen |
[
{
"from": "system",
"value": "Make Add-Type test -Pending until it passes on Windows\n"
},
{
"from": "human",
"value": "Describe \"Add-Type\" {\n It \"Should not throw given a simple class definition\" {\n { Add-Type -TypeDefinition \"public static class foo { }\" } | Should Not Throw\... | powershell | chosen |
[
{
"from": "human",
"value": "Add script to remove Metro Apps\n\nScript will remove defined Metro Apps\n"
},
{
"from": "gpt",
"value": "# Remove the default Windows Apps from the image\n#\n# Seriously, who uses these dumb things?\n#\n# To get the name of the packages:\n# - Dism.exe /online /get-P... | powershell | chosen |
[
{
"from": "system",
"value": "Remove exit & duplicates from powershell history\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... | powershell | chosen |
[
{
"from": "system",
"value": "Update to latest working Docker 1.12.1 with TP5"
},
{
"from": "human",
"value": "Set-ExecutionPolicy Bypass -scope Process\nNew-Item -Type Directory -Path \"$($env:ProgramFiles)\\docker\"\nwget -outfile $env:TEMP\\docker-1.12.0.zip https://get.docker.com/builds/Wind... | powershell | chosen |
[
{
"from": "system",
"value": "Change test framework to use 4 chars of guid for random names.\n"
},
{
"from": "human",
"value": "function New-Guid {\r\n [System.Guid]::NewGuid().ToString(\"d\").Substring(0, 6).Replace(\"-\", \"\")\r\n}\r\n"
},
{
"from": "gpt",
"value": "function Ne... | powershell | chosen |
[
{
"from": "human",
"value": "Test sql connect-ability from power shell script\n"
},
{
"from": "gpt",
"value": "##Use this to test connections and firewalls to an SQL database when no sql client is installed on a computer.\r\n\r\n$conn = New-Object System.Data.SqlClient.SqlConnection\r\n$conn.Con... | powershell | chosen |
[
{
"from": "system",
"value": "Add codecov to the build\n"
},
{
"from": "human",
"value": "MSBuild.SonarQube.Runner.exe end /d:\"sonar.login=$env:SONARQUBE_TOKEN\""
},
{
"from": "gpt",
"value": "MSBuild.SonarQube.Runner.exe end /d:\"sonar.login=$env:SONARQUBE_TOKEN\"\n\npip install co... | powershell | chosen |
[
{
"from": "system",
"value": "Fix Integrtion Test Config template by removing quotes\n"
},
{
"from": "human",
"value": "<#\n.Synopsis\n DSC Configuration Template for DSC Resource Integration tests.\n.DESCRIPTION\n To Use:\n 1. Copy to \\Tests\\Integration\\ folder and rename MSFT_<Resou... | powershell | chosen |
[
{
"from": "system",
"value": "Use basename instead of trim\n\nTrim removed function names that ended in p.\n\nDot source fixed. No need for .\\ when using full path\n"
},
{
"from": "human",
"value": "$scripts = Get-ChildItem -Path $PSScriptRoot -Recurse -Filter *.ps1 | \n Where-Ob... | powershell | chosen |
[
{
"from": "system",
"value": "Remove editing start action for now\n"
},
{
"from": "human",
"value": "param($installPath, $toolsPath, $package, $project)\n\n$project.Properties.Item(\"PostBuildEvent\").Value = \"if `$(ConfigurationName) == Debug \"\"`$(ProjectDir)CupCake.Debug.exe\"\" Deploy `$(T... | powershell | chosen |
[
{
"from": "system",
"value": "Remove ILRepacking from MyGet powershell script\n"
},
{
"from": "human",
"value": "##Looks through the entire src directory and runs nuget pack with dependencies added on each csproj found\n##foreach file in src/*\nforeach($f in Get-ChildItem ./src/)\n{\n ##forea... | powershell | chosen |
[
{
"from": "system",
"value": "Add Unit Test For Tee-Object\n"
},
{
"from": "human",
"value": "Describe \"Tee-Object\" {\n\n Context \"Validate Tee-Object is correctly forking output\" {\n\n\t$testfile = Join-Path -Path (Join-Path -Path $PSScriptRoot -ChildPath assets) -ChildPath testfile.txt\... | powershell | chosen |
[
{
"from": "system",
"value": "Build script updated to newest nuget.exe.\n"
},
{
"from": "human",
"value": "\r\nPush-Location Equ\r\n\r\nnuget pack -Build -Prop Configuration=Release -Output ..\\..\\..\\LocalNugetFeed\r\n\r\nPop-Location\r\n"
},
{
"from": "gpt",
"value": "\r\nPush-Loc... | powershell | chosen |
[
{
"from": "system",
"value": "Fix CI settings which causes private nupkg creation failure due to suffix.\n"
},
{
"from": "human",
"value": "# Set versions for AssemblyInfo.cs\n$version = ( Get-Content .\\Version.txt );\n$env:AssemblyBaseVersion = $version | foreach{ if( $_ -match \"^\\d+\\.\\d+\... | powershell | chosen |
[
{
"from": "system",
"value": "Add test for the existance of explorer.exe to guard against Server Core images\n"
},
{
"from": "human",
"value": "$ErrorActionPreference = 'Stop'\n\n$toolsDir = \"$(Split-Path -parent $MyInvocation.MyCommand.Definition)\"\n$filePath = if ((Get-ProcessorBits 64) -an... | powershell | chosen |
[
{
"from": "system",
"value": "Fix check script because netcore45 becomes portable-windows8+wpa.\n"
},
{
"from": "human",
"value": "param([Switch]$Rebuild)\n\n[string]$temp = '.\\nugettmp'\n[string]$builder = \"$env:windir\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild.exe\"\n\n[string]$sln = 'Ms... | powershell | chosen |
[
{
"from": "system",
"value": "Install Angular CLI and TypeScript with npm\n\n"
},
{
"from": "human",
"value": "### Install handy tools and apps for my dev machine\n### Run this script from an administrative shell\n\nSet-ExecutionPolicy RemoteSigned\n\n# Install Chocolatey\nInvoke-Expression ((Ne... | powershell | chosen |
[
{
"from": "system",
"value": "Add possibility to create placeholders in the version\n"
},
{
"from": "human",
"value": "$script:version = (property version \"\")\r\n\r\ntask Version {\r\n\t$script:version = Set-Version . $version\r\n}\r\n\r\nfunction script:Set-Version($projectPath, $version) {\r... | powershell | chosen |
[
{
"from": "system",
"value": "Fix stale module import reference\n"
},
{
"from": "human",
"value": "\n# Get and dot source all helper functions (private)\nSplit-Path -Path $PSScriptRoot |\n Join-Path -ChildPath 'Modules\\SecurityFever\\Helpers' |\n Get-ChildItem -Include '*.ps1' -Exclud... | powershell | chosen |
[
{
"from": "system",
"value": "Replace (c) with unicode copyright symbol.\n"
},
{
"from": "human",
"value": "function Set-Project-Properties($version) {\n write-host \"$version\"\n\n set-regenerated-file \"$pwd/Directory.Build.props\" @\"\n<Project>\n <PropertyGroup>\n <Version>$v... | powershell | chosen |
[
{
"from": "system",
"value": "Use dotnet nuget options name.\n\n"
},
{
"from": "human",
"value": "$prefix = 'dotnet nuget push '\n$suffix = ' API_KEY -Source https://api.nuget.org/v3/index.json'\n\nGet-ChildItem .\\*.nupkg | Select-Object { $prefix + $_.Name + $suffix } | Out-File -width 1000 .... | powershell | chosen |
[
{
"from": "human",
"value": "Build script for the CI server (properties don't work there)\n"
},
{
"from": "gpt",
"value": "Framework \"4.0x86\"\n\nTask Build-Master {\n\tInvoke-Psake default.ps1 -properties @{autoVersion = $false}\n}\n\nTask Build-Develop {\n\tInvoke-Psake default.ps1\n}"
}
] | powershell | chosen |
[
{
"from": "system",
"value": "Revert bin folder for IIS. Test of process is running.\n"
},
{
"from": "human",
"value": "param([string]$buildFolder)\r\n\r\n$outputPath = \"..\\output\";\r\n$sitePath = \"$($buildFolder)\\src\\WebSite\\bin\"\r\n$port = 58537\r\n$delay = 5000\r\n\r\nWrite-Host \"Run... | powershell | chosen |
[
{
"from": "system",
"value": "Enable Add-Type test on Windows\n\nResolves #606.\n"
},
{
"from": "human",
"value": "Describe \"Add-Type\" {\n It \"Should not throw given a simple class definition\" -Skip:$IsWindows {\n\t{ Add-Type -TypeDefinition \"public static class foo { }\" } | Should Not ... | powershell | chosen |
[
{
"from": "system",
"value": "Add ll function as alias\n"
},
{
"from": "human",
"value": "sal gh help\nfunction sl.. { sl .. }\nfunction sl~ { sl ~ }\n\nfunction prompt {\n\t$Host.UI.RawUI.WindowTitle = \"PS $($ExecutionContext.SessionState.Path.CurrentLocation)$('>' * ($NestedPromptLevel + 1))\... | powershell | chosen |
[
{
"from": "human",
"value": "Add script to create msdeploy zip file\n"
},
{
"from": "gpt",
"value": "$here = $PSScriptRoot\n$functionRootPath = \"$here\"\n$functionContentParentPath = \"$here\\..\\..\\..\\packaged-content\"\n$functionContentRootPath = \"$functionContentParentPath\\root\\App_Data... | powershell | chosen |
[
{
"from": "system",
"value": "Handle errors for windows unit test\n\nSigned-off-by: Sunjay Bhatia <df2d57be7987a471915f625a5499155bc16d4200@pivotal.io>\n"
},
{
"from": "human",
"value": "trap {\n write-error $_\n exit 1\n}\n\n$env:GOPATH = Join-Path -Path $PWD \"gopath\"\n$env:PATH = $env:GOPA... | powershell | chosen |
[
{
"from": "system",
"value": "Fix option names in AlignAssignmentStatement rule test\n"
},
{
"from": "human",
"value": "$directory = Split-Path -Parent $MyInvocation.MyCommand.Path\n$testRootDirectory = Split-Path -Parent $directory\n\nImport-Module PSScriptAnalyzer\nImport-Module (Join-Path $t... | powershell | chosen |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3