full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/jing-tw_storage-performance/Basic-Operation/powcli/clone-vm.ps1
clone-vm.ps1
# Usage # step 1: # .\create-vm-general-purpose-profile-sequential.ps1 # # step 2: # async # .\clone-vm.ps1 -tempalte_img="win7-test-01" -async:$true # sync # .\clone-vm.ps1 -tempalte_img="win7-test-01" # # Batch # (a) clone 30 vm # (async) .\clone-vm.ps1 -tempalte_img "win7-test-01" -asy...
PowerShellCorpus/Github/jing-tw_storage-performance/Basic-Operation/powcli/testcase-09-async.ps1
testcase-09-async.ps1
# usage: # ./testcase-09-async.ps1 #connect-viserver -server 192.168.1.200 -user root -password 1111111 # ============= Run 1 ============= # Host 2 -> 3 VirtualStor 4 * 30GB Win7 VM Migration VM $count=4 $esxi_host_ip='192.168.1.101' $esxi_host_ip_destination='192.168.1.103' $run_index=1 $vm_prefix_name="$(...
PowerShellCorpus/Github/jing-tw_storage-performance/Basic-Operation/powcli/lcpu-report.ps1
lcpu-report.ps1
$esxtopInterval = 2 $conversion = 100 / (1e6 * $esxtopInterval) $stats=Get-EsxTop -CounterName PCPU $NumOfLCPUs=$stats[0].NumOfLCPUs echo NumOfLCPUs=$NumOfLCPUs $first = $true $report = @() # create array with $NumOfLCPUs elements $run_array = @() for($j=0; $j -lt $NumOfLCPUs; $j++){ $run_array +=0; ...
PowerShellCorpus/Github/jing-tw_storage-performance/Basic-Operation/powcli/boot-storm.ps1
boot-storm.ps1
# usage: # ./testcase-09-async.ps1 #connect-viserver -server 192.168.1.200 -user root -password 1111111 # ============= Run 1 ============= <# Host 3 VirtualStor 12 * 32GB Win7 VM Boot VM "Evaluate boot storm case 1. time for this job 2. host CPU usage and cvm CPU usage - host 1 - host 2" #> $vm_pattern=...
PowerShellCorpus/Github/railroadmanuk_install-vsphere-html5-client/deploy_html5_vsphere_client.ps1
deploy_html5_vsphere_client.ps1
Import-Module VMware.VimAutomation.Core; # Declare our variables $vc_ip = "192.168.1.200"; $vc_user = "administrator@vsphere.local"; $vc_password = "VMware1!"; $h5_client_ip = "192.168.1.201"; $ovf_location = ".\h5ngcVA-1.0.0.0-3680819_OVF10.ova"; $vm_name = "VC-H5-Client"; $network_name = "VM Network"; # Conn...
PowerShellCorpus/Github/Mahesh-MSFT_ContainerDemoApp/src/ContainerDemoApp/Properties/PublishProfiles/FileSystem-publish.ps1
FileSystem-publish.ps1
[cmdletbinding(SupportsShouldProcess=$true)] param($publishProperties=@{}, $packOutput, $pubProfilePath) # to learn more about this file visit https://go.microsoft.com/fwlink/?LinkId=524327 try{ if ($publishProperties['ProjectGuid'] -eq $null){ $publishProperties['ProjectGuid'] = '73151149-9f5e-4d9...
PowerShellCorpus/Github/chreestopher_Inventory-subnets/Inventory-Subnets.ps1
Inventory-Subnets.ps1
<# .SYNOPSIS Get inventory data for all Windows Computers on a range of subnets .DESCRIPTION Get inventory data for all Windows Computers on a range of subnets, export results to CSV file, including errors encountered .PARAMETER Site The name of the site you are inventorying. The sitename is appended to ...
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_D_NewRepo_2017_5_20_16_58_31/.openpublishing.build.ps1
.openpublishing.build.ps1
param( [string]$buildCorePowershellUrl = "https://opbuildstorageprod.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1", [string]$parameters ) # Main $errorActionPreference = 'Stop' # Step-1: Download buildcore script to local echo "download build core script to local with source url: ...
PowerShellCorpus/Github/chid9202_CSUSB-CAL-IT/win-setup.ps1
win-setup.ps1
# setup security policy bypassing security error set-executionpolicy remotesigned # gives admid privilege to shutdown schedule If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { $arguments = "& '" +...
PowerShellCorpus/Github/episource_my-chocolatey/_config.ps1
_config.ps1
# Configure package creation here # A working directory for building packages is created below CFBuildRoot and the # final chocolatey packages are exported to CFBuildRoot $global:CFBuildRoot = "$PSScriptRoot/_build" # Only packages not found in CFRepository are build. Once a new package has been # build and pa...
PowerShellCorpus/Github/episource_my-chocolatey/_build.ps1
_build.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_root.ps1
_root.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/bingimg/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 $repo = "episource/bingimg" $filename = "get-bingimg.ps1" Get-VersionInfoFromGithub -Repo $repo -File $filename ` | Add-Ch...
PowerShellCorpus/Github/episource_my-chocolatey/bingimg/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $imgDir = Join-Path $env:ProgramData "bingimg" New-Item -Type Directory -Path $imgDir -ErrorAction SilentlyContinue $taskName = "get-bingimg" $launcherPath = Join-Path $toolsDir "get...
PowerShellCorpus/Github/episource_my-chocolatey/bingimg/tools/chocolateyUninstall.ps1
chocolateyUninstall.ps1
Set-StrictMode -Version latest $ErrorActionPreference = "Stop" Unregister-ScheduledTask -TaskName "get-bingimg" -Confirm:$false -ErrorAction Continue | Out-Null
PowerShellCorpus/Github/episource_my-chocolatey/nirsoft-bluescreenview/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 $startTitle = "BlueScreenView" $exeName = "BlueScreenView.exe" $zipUrl = "http://www.nirsoft.net/utils/bluescreenview-x64.zip" ...
PowerShellCorpus/Github/episource_my-chocolatey/python3/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 Select-BuildDependency -Name "wix" -Version "3.11" | Out-Null $dlIndexUrl = "https://www.python.org/downloads/windows/" $dlInde...
PowerShellCorpus/Github/episource_my-chocolatey/python3/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $setupDir = Join-Path $toolsDir "_setup" # 1. Extract Features # See also: # -> https://docs.python.org/3/using/windows.html # -> https://github.com/python/cpython/tree/master/Tools/msi/b...
PowerShellCorpus/Github/episource_my-chocolatey/python3/tools/chocolateyUninstall.ps1
chocolateyUninstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" Start-Process -Wait -WindowStyle Hidden "$toolsDir\python.exe" ` @( "-E", "-s", "-B", "-m", "ensurepip._uninstall" )
PowerShellCorpus/Github/episource_my-chocolatey/putty/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 # Configuration $zipFile = "w64/putty.zip" $sha256File = "sha256sums" # Query latest version $latestUrl = "https://the.earth.li/~sgtatham/putty/latest/" $latestResponse = In...
PowerShellCorpus/Github/episource_my-chocolatey/putty/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
$destdir = Split-Path -parent $MyInvocation.MyCommand.Definition $exe = Join-Path $destDir "PUTTY.EXE" # Install start menu shortcut Install-StartMenuLink -LinkName Putty -TargetPath $exe
PowerShellCorpus/Github/episource_my-chocolatey/conemu-task-gitbash/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 New-Package
PowerShellCorpus/Github/episource_my-chocolatey/conemu-task-gitbash/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" # Resolve relative path => get-item $gitDir = Get-Item (Join-Path $toolsDir "../../git/tools") $gitSubtree2Dir = Get-Item ( Join-Path $toolsDir "../../git-merge-subtree2/tools") $gitBinDir = Join-Path $gitDir "bin" $gitIcon...
PowerShellCorpus/Github/episource_my-chocolatey/7plus-taskbar-tweaker-config/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 New-Package
PowerShellCorpus/Github/episource_my-chocolatey/7plus-taskbar-tweaker-config/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
$myConfig = @{ "SOFTWARE\7 Taskbar Tweaker" = @{ "hidetray" = 0x00000000 "language" = 0x00000407 "lefttrayfunc" = 0x00000000 "updcheck" = 0x00000001 "updcheckauto" = 0x00000000 ...
PowerShellCorpus/Github/episource_my-chocolatey/conemu-config/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 New-Package
PowerShellCorpus/Github/episource_my-chocolatey/conemu-config/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
# # 1. Custom settings $myConfig = @{ "SOFTWARE\ConEmu\.Vanilla" = @{ # Main : Main console font, Alternative font -> consolas "FontName" = "Consolas" "FontName2" = "Consolas" # Main : Main console font > Anti-aliasing = "Clear Ty...
PowerShellCorpus/Github/episource_my-chocolatey/vcpython27/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 $dlIndexUrl = "http://aka.ms/vcpython27" $dlIndexRaw = Invoke-WebRequest -UseBasicParsing $dlIndexUrl $dlIndexRaw -match "Versi...
PowerShellCorpus/Github/episource_my-chocolatey/vcpython27/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" # Extract MSI $tmpDir = Join-Path $toolsDir "tmp" New-Item -Type Directory $tmpDir | Out-Null $msi = Move-Item -PassThru "$toolsDir/*.msi" $tmpDir Start-Process -Wait msiexec @( ...
PowerShellCorpus/Github/episource_my-chocolatey/linkshellext/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 $projectUrl = "http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html" $setupUrl = "http://schinagl.priv.at/nt/hardlink...
PowerShellCorpus/Github/episource_my-chocolatey/linkshellext/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $setupExe = Get-Item "$toolsDir/HardLinkShellExt_x64.exe" $setupArgs = "/S" $validExitCodes = @(0) Install-ChocolateyInstallPackage ` -PackageName $env:chocolateyPackageName ` ...
PowerShellCorpus/Github/episource_my-chocolatey/linkshellext/tools/chocolateyUninstall.ps1
chocolateyUninstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $programName = "Link Shell Extension" $setupArgs = "/S" $validExitCodes = @(0) Get-ItemProperty -ErrorAction:SilentlyContinue -Path @( 'HKLM:\Software\Wow6432Node\Microsoft\W...
PowerShellCorpus/Github/episource_my-chocolatey/7zip/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 $versionInfo = Get-VersionInfoFromSourceforge ` -Project "sevenzip" ` -Filter "/7-Zip/(?<VERSION>\d+\.\d+)/7z\d+-x64\.msi" $versionInfo.ReleaseNotes = Invoke-WebRequest -UseBasic...
PowerShellCorpus/Github/episource_my-chocolatey/7zip/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $sevenzipDir = "$env:ProgramFiles\7-Zip" Set-Location $toolsDir $msiArgs = '/quiet /qn /norestart' $validExitCodes = @( # https://msdn.microsoft.com/en-us/library/windows/desktop/aa376931(v=vs.85).aspx 0, # all ok 3010 #...
PowerShellCorpus/Github/episource_my-chocolatey/nirsoft-whatishang/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 $startTitle = "WhatIsHang (x64)" $exeName = "WhatIsHang.exe" $zipUrl = "http://www.nirsoft.net/utils/whatishang-x64.zip" $chan...
PowerShellCorpus/Github/episource_my-chocolatey/sysinternals-tcpview/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 $startTitle = "TCPview" $exeName = "TCPView.exe" New-Package -VersionInfo @{ Version = "file:tools/$exeName" } -Prepare...
PowerShellCorpus/Github/episource_my-chocolatey/vcredist2005/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 New-Package @{ Version = "8.0.61000" # Msi Product Version (x64) FileUrl = @( "https://download.microsoft.com/download/8/B/4/8B42259F-5D70-43F4-AC2E-4B208FD8D66A/vcredist_...
PowerShellCorpus/Github/episource_my-chocolatey/vcredist2005/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $installerExe = @("vcredist_x64.exe", "vcredist_x86.exe") $installerArgs = "/Q /C:""msiexec.exe /i vcredist.msi /quiet /qn /norestart""" $validExitCodes = @( # https://msdn.microsoft.com/en-us/library/windows/desktop/aa376931(v=vs.8...
PowerShellCorpus/Github/episource_my-chocolatey/xnviewmp/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 # Parameters for parsing the download page $downloadPageUrl = "http://www.xnview.com/en/xnviewmp/" $versionRegex = 'Download.+...
PowerShellCorpus/Github/episource_my-chocolatey/xnviewmp/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $exe = Join-Path $toolsDir "XnViewMP\xnviewmp.exe" Set-AutoShim -Pattern $exe -Invert -Mode Ignore | Out-Null Install-StartMenuLink -LinkName "XnView MP" -TargetPath $exe
PowerShellCorpus/Github/episource_my-chocolatey/python2/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 $dlIndexUrl = "https://www.python.org/downloads/windows/" $dlIndex = Invoke-WebRequest -UseBasicParsing $dlIndexUrl $dlIndex -mat...
PowerShellCorpus/Github/episource_my-chocolatey/python2/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $tmpDir = Join-Path $toolsDir "tmp" # 1. Move msi isntaller away from install location New-Item -Type Directory $tmpDir $msi = Move-Item "$toolsDir/*.msi" $tmpDir -PassThru # 2. Extract...
PowerShellCorpus/Github/episource_my-chocolatey/python2/tools/chocolateyUninstall.ps1
chocolateyUninstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" Start-Process -Wait -WindowStyle Hidden "$toolsDir\python.exe" ` @( "-E", "-s", "-B", "-m", "ensurepip._uninstall" )
PowerShellCorpus/Github/episource_my-chocolatey/git-merge-subtree2/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 $repo = "episource/git-merge-subtree2" $filename = "git-merge-subtree2.zip" Get-VersionInfoFromGithub -Repo $repo -File $filena...
PowerShellCorpus/Github/episource_my-chocolatey/fileseek-config/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 New-Package
PowerShellCorpus/Github/episource_my-chocolatey/fileseek-config/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $nppDir = Join-Path $toolsDir "../../notepadplusplus/tools" | Resolve-Path $nppExe = Join-Path $nppDir "notepad++.exe" $myConfig = @{ "SOFTWARE\Binary Fortress Software\FileSeek" = @{ # Disable built-in auto update Au...
PowerShellCorpus/Github/episource_my-chocolatey/git-plink/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" New-Package
PowerShellCorpus/Github/episource_my-chocolatey/git-plink/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $plinkExe = Resolve-Path "$toolsDir/../../putty/tools/PLINK.EXE" Install-ChocolateyEnvironmentVariable ` -VariableName 'GIT_SSH' -VariableType 'Machine' ` -VariableValue "$plinkE...
PowerShellCorpus/Github/episource_my-chocolatey/git-plink/tools/chocolateyUninstall.ps1
chocolateyUninstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" Uninstall-ChocolateyEnvironmentVariable ` -VariableName 'GIT_SSH' -VariableType 'Machine'
PowerShellCorpus/Github/episource_my-chocolatey/git/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 # Query github API to get url and version of the latest release $repo = 'git-for-windows/git' $filename = "PortableGit-[0-9\.]+-64-bit\.7z\.exe" # Export the package (subject to _config...
PowerShellCorpus/Github/episource_my-chocolatey/git/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
Set-StrictMode -Version latest $ErrorActionPreference = "Stop" $destdir = $(Split-Path -parent $MyInvocation.MyCommand.Definition) $withDefaultShim = @( "$destdir\git-bash.exe", "$destdir\cmd\git.exe") $startMenu = @{ LinkName="Git Bash"; TargetPath="$destdir\git-bash.exe" } # Extract git portable $portableZi...
PowerShellCorpus/Github/episource_my-chocolatey/nirsoft-regfromapp/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 $startTitle = "RegFromApp (x64)" $exeName = "RegFromApp.exe" $zipUrl = "http://www.nirsoft.net/utils/regfromapp-x64.zip" $chan...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/github-api/api.ps1
api.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/get-webfile/get-vtscan.ps1
get-vtscan.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/get-webfile/get-webfile.ps1
get-webfile.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/pip-package/new-pypipackage.ps1
new-pypipackage.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/pip-package/_utils.ps1
_utils.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/test-admin/_requires-admin.ps1
_requires-admin.ps1
#Requires -RunAsAdministrator
PowerShellCorpus/Github/episource_my-chocolatey/_modules/test-admin/main.ps1
main.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/choco-factory/version.ps1
version.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/choco-factory/add-checksum.ps1
add-checksum.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/choco-factory/new-package.ps1
new-package.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/choco-factory/get-checksum.ps1
get-checksum.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/choco-factory/_utils.ps1
_utils.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/choco-factory/get-latest-sourceforge.ps1
get-latest-sourceforge.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/choco-factory/build-dependency.ps1
build-dependency.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/choco-factory/get-latest-github.ps1
get-latest-github.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/choco-factory/publish-packages.ps1
publish-packages.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/_modules/choco-factory/invoke-newpackage.ps1
invoke-newpackage.ps1
# Copyright 2016 Philipp Serr (episource) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
PowerShellCorpus/Github/episource_my-chocolatey/wireshark/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 $dlIndexUrl = "https://1.eu.dl.wireshark.org/win64/" $dlIndex = Invoke-WebRequest -UseBasicParsing $dlIndexUrl $versionInfo = $dl...
PowerShellCorpus/Github/episource_my-chocolatey/wireshark/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $installerExe = Get-Item "$toolsDir/Wireshark-win64-*.exe" Get-ChocolateyUnzip -FileFullPath $installerExe.FullName -Destination $toolsDir Remove-Item $installerExe Remove-Item "$toolsDi...
PowerShellCorpus/Github/episource_my-chocolatey/python2-x86/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 $dlIndexUrl = "https://www.python.org/downloads/windows/" $dlIndex = Invoke-WebRequest -UseBasicParsing $dlIndexUrl $dlIndex -mat...
PowerShellCorpus/Github/episource_my-chocolatey/python2-x86/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $tmpDir = Join-Path $toolsDir "tmp" # 1. Move msi isntaller away from install location New-Item -Type Directory $tmpDir $msi = Move-Item "$toolsDir/*.msi" $tmpDir -PassThru # 2. Extract...
PowerShellCorpus/Github/episource_my-chocolatey/python2-x86/tools/chocolateyUninstall.ps1
chocolateyUninstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" Start-Process -Wait -WindowStyle Hidden "$toolsDir\python.exe" ` @( "-E", "-s", "-B", "-m", "ensurepip._uninstall" )
PowerShellCorpus/Github/episource_my-chocolatey/orca/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 # The url is for the Windows SDK 10.0.14393.33 containing Orca 5.0.10011.0 $sdkSetupUrl = "http://download.microsoft.com/download/6/3/B/63BADCE0-F2E6-44BD-B2F9-60F5F073038E/standalonesdk/SDKS...
PowerShellCorpus/Github/episource_my-chocolatey/orca/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $orcaExe = Get-Item "$toolsDir/Orca.exe" Install-StartMenuLink -LinkName "Orca MSI Editor" -TargetPath $orcaExe ` -WorkingDirectory $toolsDir
PowerShellCorpus/Github/episource_my-chocolatey/python-launcher/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 $dlIndexUrl = "https://www.python.org/downloads/windows/" $dlIndex = Invoke-WebRequest -UseBasicParsing $dlIndexUrl $dlIndex -mat...
PowerShellCorpus/Github/episource_my-chocolatey/python-launcher/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $targetDir = "$env:ProgramFiles\Python\PyLauncher" $msi = Get-Item "$toolsDir/*.msi" $msiArgs = "/quiet /qn /norestart REBOOT=ReallySupress ALLUSERS=1" Install-ChocolateyInstallPackage -...
PowerShellCorpus/Github/episource_my-chocolatey/conemu/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 $versionInfo = Get-VersionInfoFromSourceforge ` -Project "conemu" ` -Filter "/Stable/ConEmuPack\.(?<VERSION>\d+)\.7z" # Expand version string: e.g. 160904 -> 16.09.04 $version...
PowerShellCorpus/Github/episource_my-chocolatey/conemu/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" # Extract conEmu $conemuZip = Get-Item "$toolsDir/ConEmuPack*.7z" Get-ChocolateyUnzip -FileFullPath $conemuZip.FullName -Destination $toolsDir Remove-Item $conemuZip # Create a shim for ConEmu64.exe only # Create a startmenu entry $e...
PowerShellCorpus/Github/episource_my-chocolatey/x64dbg/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 # Note: There's only "one" github release, whose assets get updated frequently $apiArgs = @{ ApiEndpoint = "/repos/x64dbg/x64dbg/r...
PowerShellCorpus/Github/episource_my-chocolatey/x64dbg/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
using namespace System.Security.AccessControl using namespace System.Security.Principal Set-StrictMode -Version latest $ErrorAction = "Stop" $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" Set-AutoShim -Pattern "**" -Mode Ignore | Out-Null Install-StartMenuLink -LinkName "x64dbg (x86)...
PowerShellCorpus/Github/episource_my-chocolatey/pip/pip-common.ps1
pip-common.ps1
Set-StrictMode -Version latest $ErrorAction = "Stop" # Import my-chocolatey config & modules . $PSScriptRoot/../_root.ps1 Import-Module Pip-Package function New-AutoPip() { Set-StrictMode -Off $pkgId -match "^(?<PYTHON>python.*)-pip-(?<PKG>.*)$" | Out-Null $pythonName = $Matches.PYTHON ...
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-pyparsing/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-pyparsing/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-appdirs/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-colorama/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-wcwidth/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-pickleshare/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-prompt-toolkit/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-ipython-genutils/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-appdirs/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-six/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-ipython/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name $additionalDependencies = @( @{ Id = "startmenu.extension"; Version="[1.1.1,)" } @{ ID = "shimgen.extension"; Version="[2.0.2,)" } ) $postInsta...
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-ipython-genutils/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-pyqt5/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-prompt-toolkit/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-traitlets/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-packaging/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-jedi/_build.ps1
_build.ps1
# Enable common parameters [CmdletBinding()] Param() . $PSScriptRoot/../pip-common.ps1 $pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name New-AutoPip