full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/deevus_scoop-powershell2/test/Scoop-Core.Tests.ps1
Scoop-Core.Tests.ps1
. "$psscriptroot\..\lib\core.ps1" . "$psscriptroot\..\lib\install.ps1" . "$psscriptroot\Scoop-TestLib.ps1" describe "movedir" { $extract_dir = "subdir" $extract_to = $null beforeall { $working_dir = setup_working "movedir" } it "moves directories with no spaces in path" { ...
PowerShellCorpus/Github/deevus_scoop-powershell2/test/Scoop-Config.Tests.ps1
Scoop-Config.Tests.ps1
. "$psscriptroot\..\lib\core.ps1" . "$psscriptroot\..\lib\config.ps1" describe "hashtable" { $json = '{ "one": 1, "two": [ { "a": "a" }, "b", 2 ], "three": { "four": 4 } }' it "converts pscustomobject to hashtable" { $obj = convertfrom-json $json $ht = hashtable $obj $ht.one...
PowerShellCorpus/Github/deevus_scoop-powershell2/test/Scoop-TestLib.ps1
Scoop-TestLib.ps1
if(!$script:run) { $script:run = 0 } if(!$script:failed) { $script:failed = 0 } function filter_tests($arg) { if(!$arg) { return } $script:filter = $arg -join ' ' write-host "filtering by '$filter'" } function test($desc, $assertions) { if($filter -and $desc -notlike "*$filter*") { return } $script:test...
PowerShellCorpus/Github/deevus_scoop-powershell2/test/Scoop-Manifest.Tests.ps1
Scoop-Manifest.Tests.ps1
. "$psscriptroot\Scoop-TestLib.ps1" . "$psscriptroot\..\lib\core.ps1" . "$psscriptroot\..\lib\manifest.ps1" describe "manifest-validation" { $bucketdir = "$psscriptroot\..\bucket\" $manifest_files = gci $bucketdir *.json $manifest_files | % { it "test validity of $_" { $mani...
PowerShellCorpus/Github/deevus_scoop-powershell2/test/Scoop-GetOpts.Tests.ps1
Scoop-GetOpts.Tests.ps1
. "$psscriptroot\Scoop-TestLib.ps1" . "$psscriptroot\..\lib\getopt.ps1" describe "getopt" { it 'handle short option with required argument missing' { $null, $null, $err = getopt '-x' 'x:' '' $err | should be 'option -x requires an argument' $null, $null, $err = getopt '-xy' 'x:y' '' $err | should be...
PowerShellCorpus/Github/deevus_scoop-powershell2/test/Scoop-Install.Tests.ps1
Scoop-Install.Tests.ps1
. "$psscriptroot\Scoop-TestLib.ps1" . "$psscriptroot\..\lib\core.ps1" . "$psscriptroot\..\lib\install.ps1" describe "travel_dir" { beforeall { $working_dir = setup_working "packages" # copy packages from 1.0 to 1.1 $from = "$working_dir\1.0" $to = "$working_dir\1.1" travel_dir $from $to } ...
PowerShellCorpus/Github/deevus_scoop-powershell2/test/Scoop-Versions.Tests.ps1
Scoop-Versions.Tests.ps1
. "$psscriptroot\Scoop-TestLib.ps1" . "$psscriptroot\..\lib\versions.ps1" describe "versions" { it 'compares versions with integer-string mismatch' { $a = '1.8.9' $b = '1.8.5-1' $res = compare_versions $a $b $res | should be 1 } it 'handles plain string version...
PowerShellCorpus/Github/deevus_scoop-powershell2/test/fixtures/shim/shim-test.ps1
shim-test.ps1
'Hello, world!'
PowerShellCorpus/Github/deevus_scoop-powershell2/test/fixtures/shim/user with 'quote/shim-test.ps1
shim-test.ps1
'Hello, world!'
PowerShellCorpus/Github/deevus_scoop-powershell2/bin/checkver.ps1
checkver.ps1
# checks websites for newer versions using an (optional) regular expression defined in the manifest # use $dir to specify a manifest directory to check from, otherwise ./bucket is used param($app, $dir) . "${env:SCOOPDIR}\..\lib\core.ps1" . "${env:SCOOPDIR}\..\lib\manifest.ps1" . "${env:SCOOPDIR}\..\lib\json.ps1...
PowerShellCorpus/Github/deevus_scoop-powershell2/bin/test.ps1
test.ps1
invoke-pester $($env:SCOOPDIR)\..\test
PowerShellCorpus/Github/deevus_scoop-powershell2/bin/uninstall.ps1
uninstall.ps1
param($global) . "$($env:SCOOPDIR)\..\lib\core.ps1" . "$($env:SCOOPDIR)\..\lib\install.ps1" . "$($env:SCOOPDIR)\..\lib\versions.ps1" . "$($env:SCOOPDIR)\..\lib\manifest.ps1" if($global -and !(is_admin)) { "ERROR: you need admin rights to uninstall globally"; exit 1 } warn 'this will uninstall scoop and a...
PowerShellCorpus/Github/deevus_scoop-powershell2/bin/install.ps1
install.ps1
# remote install: # iex (new-object net.webclient).downloadstring('https://get.scoop.sh') $erroractionpreference='stop' # quit if anything goes wrong # get core functions $core_url = 'https://raw.github.com/deevus/scoop-powershell2/master/lib/core.ps1' echo 'initializing...' iex (new-object net.webclient).dow...
PowerShellCorpus/Github/deevus_scoop-powershell2/bin/refresh.ps1
refresh.ps1
# for development, update the installed scripts to match local source . "$($env:SCOOPDIR)\..\lib\core.ps1" $src = relpath ".." $dest = ensure (versiondir 'scoop' 'current') # make sure not running from the installed directory if("$src" -eq "$dest") { abort "$(strip_ext $myinvocation.mycommand.name) is for deve...
PowerShellCorpus/Github/deevus_scoop-powershell2/bin/scoop.ps1
scoop.ps1
param($cmd) set-strictmode -off function scriptdir { $scriptDir = Get-Variable PSScriptRoot -ErrorAction SilentlyContinue | ForEach-Object { $_.Value } if (!$scriptDir) { if ($MyInvocation.MyCommand.Path) { $scriptDir = Split-Path $MyInvocation.MyCommand.Path -Parent } } if (!$scriptD...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-reset.ps1
scoop-reset.ps1
# Usage: scoop reset <app> # Summary: Reset an app to resolve conflicts # Help: Used to resolve conflicts in favor of a particular app. For example, # if you've installed 'python' and 'python27', you can use 'scoop reset' to switch between # using one or the other. param($app) . "$($env:SCOOPDIR)\..\lib\core.ps...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-status.ps1
scoop-status.ps1
# Usage: scoop status # Summary: Show status and check for new app versions . "$($env:SCOOPDIR)\..\lib\core.ps1" . "$($env:SCOOPDIR)\..\lib\manifest.ps1" . "$($env:SCOOPDIR)\..\lib\buckets.ps1" . "$($env:SCOOPDIR)\..\lib\versions.ps1" . "$($env:SCOOPDIR)\..\lib\depends.ps1" . "$($env:SCOOPDIR)\..\lib\config.ps...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-depends.ps1
scoop-depends.ps1
# Usage: scoop depends <app> # Summary: List dependencies for an app . "$($env:SCOOPDIR)\..\lib\depends.ps1" . "$($env:SCOOPDIR)\..\lib\install.ps1" . "$($env:SCOOPDIR)\..\lib\manifest.ps1" . "$($env:SCOOPDIR)\..\lib\buckets.ps1" . "$($env:SCOOPDIR)\..\lib\getopt.ps1" . "$($env:SCOOPDIR)\..\lib\decompress.ps1"...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-help.ps1
scoop-help.ps1
# Usage: scoop help <command> # Summary: Show help for a command param($cmd) . "$($env:SCOOPDIR)\..\lib\core.ps1" . "$($env:SCOOPDIR)\..\lib\commands.ps1" . "$($env:SCOOPDIR)\..\lib\help.ps1" reset_aliases function print_help($cmd) { $file = gc (command_path $cmd) -encoding ascii $usage = usage $file...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-uninstall.ps1
scoop-uninstall.ps1
# Usage: scoop uninstall <app> [options] # Summary: Uninstall an app # Help: e.g. scoop uninstall git # # Options: # -g, --global uninstall a globally installed app . "$($env:SCOOPDIR)\..\lib\core.ps1" . "$($env:SCOOPDIR)\..\lib\manifest.ps1" . "$($env:SCOOPDIR)\..\lib\help.ps1" . "$($env:SCOOPDIR)\..\lib\...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-home.ps1
scoop-home.ps1
# Usage: scoop home <app> # Summary: Opens the app homepage param($app) . "$($env:SCOOPDIR)\..\lib\core.ps1" . "$($env:SCOOPDIR)\..\lib\help.ps1" . "$($env:SCOOPDIR)\..\lib\manifest.ps1" . "$($env:SCOOPDIR)\..\lib\buckets.ps1" reset_aliases if($app) { $manifest, $bucket = find_manifest $app if($...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-list.ps1
scoop-list.ps1
# Usage: scoop list [query] # Summary: List installed apps # Help: Lists all installed apps, or the apps matching the supplied query. param($query) . "$($env:SCOOPDIR)\..\lib\core.ps1" . "$($env:SCOOPDIR)\..\lib\versions.ps1" . "$($env:SCOOPDIR)\..\lib\manifest.ps1" . "$($env:SCOOPDIR)\..\lib\buckets.ps1" r...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-cache.ps1
scoop-cache.ps1
# Usage: scoop cache show|rm [app] # Summary: Show or clear the download cache # Help: Scoop caches downloads so you don't need to download the same files # when you uninstall and re-install the same version of an app. # # You can use # scoop cache show # to see what's in the cache, and # scoop cache rm...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-bucket.ps1
scoop-bucket.ps1
# Usage: scoop bucket add|list|rm [<args>] # Summary: Manage Scoop buckets # Help: Add, list or remove buckets. # # Buckets are repositories of apps available to install. Scoop comes with # a default bucket, but you can also add buckets that you or others have # published. # # To add a bucket: # scoop buck...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-export.ps1
scoop-export.ps1
# Usage: scoop export > filename # Summary: Exports (an importable) list of installed apps # Help: Lists all installed apps. . "$($env:SCOOPDIR)\..\lib\core.ps1" . "$($env:SCOOPDIR)\..\lib\versions.ps1" . "$($env:SCOOPDIR)\..\lib\manifest.ps1" . "$($env:SCOOPDIR)\..\lib\buckets.ps1" reset_aliases $local =...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-update.ps1
scoop-update.ps1
# Usage: scoop update <app> [options] # Summary: Update apps, or Scoop itself # Help: 'scoop update' updates Scoop to the latest version. # 'scoop update <app>' installs a new version of that app, if there is one. # # You can use '*' in place of <app> to update all apps. # # Options: # --global, -g update a...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-search.ps1
scoop-search.ps1
# Usage: scoop search [query] # Summary: Search available apps # Help: Searches for apps that are available to install. # # If used with [query], shows app names that match the query. # Without [query], shows all the available apps. param($query) . "$($env:SCOOPDIR)\..\lib\core.ps1" . "$($env:SCOOPDIR)\..\lib\...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-which.ps1
scoop-which.ps1
# Usage: scoop which <command> # Summary: Locate a program path # Help: Finds the path to a program that was installed with Scoop param($command) . "$($env:SCOOPDIR)\..\lib\core.ps1" . "$($env:SCOOPDIR)\..\lib\help.ps1" reset_aliases if(!$command) { 'ERROR: <command> missing'; my_usage; exit 1 } try { $gc...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-alias.ps1
scoop-alias.ps1
# Usage: scoop alias add|list|rm [<args>] # Summary: Manage scoop aliases # Help: Add, remove or list Scoop aliases # # Aliases are custom Scoop subcommands that can be created to make common tasks # easier. # # To add an Alias: # scoop alias add <name> <command> <description> # # e.g.: # scoop alia...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-create.ps1
scoop-create.ps1
# Usage: scoop create <url> # Summary: Create a custom app manifest # Help: Create your own custom app manifest param($url) function create_manifest($url) { $manifest = new_manifest $manifest.url = $url $url_parts = $null try { $url_parts = parse_url $url } catch { ...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-config.ps1
scoop-config.ps1
# Usage: scoop config [rm] name [value] # Summary: Get or set configuration values # Help: The scoop configuration file is saved at ~/.scoop. # # To get a configuration setting: # # scoop config <name> # # To set a configuration setting: # # scoop config <name> <value> # # To remove a configuration ...
PowerShellCorpus/Github/deevus_scoop-powershell2/libexec/scoop-install.ps1
scoop-install.ps1
# Usage: scoop install <app> [options] # Summary: Install apps # Help: e.g. The usual way to install an app (uses your local 'buckets'): # scoop install git # # To install an app from a manifest at a URL: # scoop install https://raw.github.com/lukesampson/scoop/master/bucket/runat.json # # To install ...
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_D_NewRepo_2017_4_28_14_58_38/.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/sapiens_DomainEventsToolkit/build/build.ps1
build.ps1
None
PowerShellCorpus/Github/sapiens_DomainEventsToolkit/libs/psake/psake-config.ps1
psake-config.ps1
<# ------------------------------------------------------------------- Defaults ------------------------------------------------------------------- $config.buildFileName="default.ps1" $config.framework = "4.0" $config.taskNameFormat="Executing {0}" $config.verboseError=$false $config.coloredOutput = $true $con...
PowerShellCorpus/Github/sapiens_DomainEventsToolkit/libs/psake/psake.ps1
psake.ps1
# Helper script for those who want to run psake without importing the module. # Example: # .\psake.ps1 "default.ps1" "BuildHelloWord" "4.0" # Must match parameter definitions for psake.psm1/invoke-psake # otherwise named parameter binding fails param( [Parameter(Position=0,Mandatory=0)] [string]$buil...
PowerShellCorpus/Github/sapiens_DomainEventsToolkit/libs/psake/tabexpansion/PsakeTabExpansion.ps1
PsakeTabExpansion.ps1
$global:psakeSwitches = @('-docs', '-task', '-properties', '-parameters') function script:psakeSwitches($filter) { $psakeSwitches | where { $_ -like "$filter*" } } function script:psakeDocs($filter, $file) { if ($file -eq $null -or $file -eq '') { $file = 'default.ps1' } psake $file -docs | out-string...
PowerShellCorpus/Github/gustavoflag_GerenciadorCampeonatos/Bandeira.GerenciadorCampeonatos/packages/EntityFramework.5.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' } if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 ))) { $thisModuleManifest = 'EntityFramework.PS3.psd1' } else { $thisModuleManifest = 'EntityFramework.psd1' } $thisModule...
PowerShellCorpus/Github/gustavoflag_GerenciadorCampeonatos/Bandeira.GerenciadorCampeonatos/packages/EntityFramework.5.0.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project) { $appDomain = [AppDomain]::CreateDomain( 'EntityFramework.PowerShell', $null, (New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' })) ...
PowerShellCorpus/Github/scleynen_RdBrainsDockerDemo/democart.ps1
democart.ps1
# Set to the name of the Docker machine you want to use $DOCKER_MACHINE_NAME='default' # Set to the name of the Docker image $DOCKER_IMAGE_NAME='scyaq02/democart' # Set to the name of the Docker container $DOCKER_CONTAINER_NAME='democart' # Set to the name of the Docker network $DOCKER_NETWORK_NAME='demonw...
PowerShellCorpus/Github/scleynen_RdBrainsDockerDemo/docker.ps1
docker.ps1
# Set to the name of the Docker machine you want to use $DOCKER_MACHINE_NAME='default' # Set to the name of the Docker image you want to use $DOCKER_IMAGE_NAME='my-site' # Stop on first error $ErrorActionPreference = "Stop" # Create a Docker host if( !(@(docker-machine ls) -like "$DOCKER_MACHINE_NAME *" ) ...
PowerShellCorpus/Github/scleynen_RdBrainsDockerDemo/demogateway.ps1
demogateway.ps1
# Set to the name of the Docker machine you want to use $DOCKER_MACHINE_NAME='default' # Set to the name of the Docker image $DOCKER_IMAGE_NAME='scyaq02/demogateway' # Set to the name of the Docker container $DOCKER_CONTAINER_NAME='demogateway' # Set to the name of the Docker network $DOCKER_NETWORK_NAME='...
PowerShellCorpus/Github/scleynen_RdBrainsDockerDemo/demoweb.ps1
demoweb.ps1
# Set to the name of the Docker machine you want to use $DOCKER_MACHINE_NAME='default' # Set to the name of the Docker image $DOCKER_IMAGE_NAME='scyaq02/demoweb' # Set to the name of the Docker container $DOCKER_CONTAINER_NAME='demoweb' # Set to the name of the Docker network $DOCKER_NETWORK_NAME='demonw' ...
PowerShellCorpus/Github/scleynen_RdBrainsDockerDemo/src/RDBrainsDemo.API/Properties/PublishProfiles/CustomDockerProfile-publish.ps1
CustomDockerProfile-publish.ps1
#Requires –Version 3.0 <# .DESCRIPTION Publish an application to Docker container Please visit http://go.microsoft.com/fwlink/?LinkID=529706 to learn more about the scirpt .EXAMPLE & '.\contoso-Docker-publish.ps1' -packOutput $env:USERPROFILE\AppData\Local\Temp\PublishTemp -pubxmlFile '.\contoso-D...
PowerShellCorpus/Github/scleynen_RdBrainsDockerDemo/PublishScripts/Scripts/Deploy-DockerAzureResourceGroup-2.ps1
Deploy-DockerAzureResourceGroup-2.ps1
#Requires -Version 3.0 Param( [string] [Parameter(Mandatory=$true)] $ResourceGroupLocation, [string] [Parameter(Mandatory=$true)] $ResourceGroupName, [string] $AdminPassword, [string] $DockerCertsDirectory, [string] $TemplateFile = "..\Templates\RDBrainsDemo.APIDockerVM.json", [string] $TemplatePar...
PowerShellCorpus/Github/scleynen_RdBrainsDockerDemo/PublishScripts/Scripts/Deploy-DockerAzureResourceGroup.ps1
Deploy-DockerAzureResourceGroup.ps1
#Requires -Version 3.0 Param( [string] [Parameter(Mandatory=$true)] $ResourceGroupLocation, [string] [Parameter(Mandatory=$true)] $ResourceGroupName, [string] $AdminPassword, [string] $DockerCertsDirectory, [string] $TemplateFile = "..\Templates\RDBrainsDemo.APIDockerVM.json", [string] $TemplatePar...
PowerShellCorpus/Github/rhmoult_Hide-File/Hide-File.ps1
Hide-File.ps1
# Adding reference of standard .NET assemblies $Refs = @("C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.XML.Dll", "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.Entity.dll", "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\System.Runtime.Serialization.d...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/BankClientApplication/packages/Newtonsoft.Json.6.0.4/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) # open json.net splash page on package install # don't open if json.net is installed as a dependency try { $url = "http://james.newtonking.com/json" $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) if ($dte2.ActiveWindow.Caption -eq "Package Manager Con...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/FELIX SHIT/packages/entityframework.6.1.3/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) { Remove-Module EntityFramework } Import-Module (Join-Path $toolsPath EntityFramework.psd1) # SIG # Begin signature block # MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/FELIX SHIT/packages/entityframework.6.1.3/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Initialize-EFConfiguration $project Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' Write-Host Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/FELIX SHIT/packages/newtonsoft.json.8.0.3/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) # open json.net splash page on package install # don't open if json.net is installed as a dependency try { $url = "http://www.newtonsoft.com/json/install?version=" + $package.Version $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) if ($dte2.ActiveWindo...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/WebApplication5/packages/jQuery.1.10.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Determine the file paths $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName if (Test-Path $projectIntelliSense...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/WebApplication5/packages/jQuery.1.10.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # VS 11 and above supports the new intellisense JS files $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/WebApplication5/packages/jQuery.1.10.2/Tools/common.ps1
common.ps1
function Get-Checksum($file) { $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" $fileInfo = Get-Item $file trap { ; continue } $stream = $fileInfo.OpenRead() if ($? -eq $false) { # Couldn't open file for reading return $null } $bytes = $...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/WebApplication5/packages/EntityFramework.6.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) { Remove-Module EntityFramework } Import-Module (Join-Path $toolsPath EntityFramework.psd1) # SIG # Begin signature block # MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/WebApplication5/packages/EntityFramework.6.0.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Initialize-EFConfiguration $project Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' Write-Host Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/WebApplication5/packages/Modernizr.2.6.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/WebApplication5/packages/Modernizr.2.6.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) if ($scriptsFolderProjectItem -eq $null) { # No Scripts folder Write-Host "No Scripts folder found" exit } # Update the _references.js file AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileName...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/WebApplication5/packages/Modernizr.2.6.2/Tools/common.ps1
common.ps1
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { try { $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") } catch { # _references.js file not found return } if ($referencesFileProject...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/WebApplication5/packages/EntityFramework.6.1.3/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) { Remove-Module EntityFramework } Import-Module (Join-Path $toolsPath EntityFramework.psd1) # SIG # Begin signature block # MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/WebApplication5/packages/EntityFramework.6.1.3/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Initialize-EFConfiguration $project Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' Write-Host Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/WebApplication5/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $compilerPackageName = 'Microsoft.Net.Compilers' $roslynSubFolder = 'roslyn' if ($project -eq $null) { $project = Get-Project } $libDirectory = Join-Path $installPath 'lib\net45' $packageDirectory = Split-Path $installPath $compilerPackage = Get-Chil...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/WebApplication5/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) $roslynSubFolder = 'roslyn' if ($project -eq $null) { $project = Get-Project } $projectRoot = $project.Properties.Item('FullPath').Value $binDirectory = Join-Path $projectRoot 'bin' $targetDirectory = Join-Path $binDirectory $roslynSubFolder if (Te...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/WebApplication5/packages/Newtonsoft.Json.6.0.4/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) # open json.net splash page on package install # don't open if json.net is installed as a dependency try { $url = "http://james.newtonking.com/json" $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) if ($dte2.ActiveWindow.Caption -eq "Package Manager Con...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/packages/Newtonsoft.Json.8.0.3/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) # open json.net splash page on package install # don't open if json.net is installed as a dependency try { $url = "http://www.newtonsoft.com/json/install?version=" + $package.Version $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) if ($dte2.ActiveWindo...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/packages/EntityFramework.6.1.3/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) { Remove-Module EntityFramework } Import-Module (Join-Path $toolsPath EntityFramework.psd1) # SIG # Begin signature block # MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/mafazari_4FOXSAKEproject4/packages/EntityFramework.6.1.3/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Initialize-EFConfiguration $project Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' Write-Host Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma...
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_D_NewRepo_2017_5_12_17_59_6/.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/jacqinthebox_packer-templates/scripts/windows-updates.ps1
windows-updates.ps1
#https://www.petri.com/manage-windows-updates-with-powershell-module #install Windows Updates Install-PackageProvider -Name Nuget -Force Install-Module PSWindowsUpdate -Force -Confirm:$false Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d -Confirm:$false Get-WUInstall -MicrosoftUpdate -Accep...
PowerShellCorpus/Github/jacqinthebox_packer-templates/scripts/bootstrap.ps1
bootstrap.ps1
# This script is called from the answerfile # You cannot enable Windows PowerShell Remoting on network connections that are set to Public # http://msdn.microsoft.com/en-us/library/windows/desktop/aa370750(v=vs.85).aspx # http://blogs.msdn.com/b/powershell/archive/2009/04/03/setting-network-location-to-private.aspx...
PowerShellCorpus/Github/jacqinthebox_packer-templates/scripts/windows-compress.ps1
windows-compress.ps1
Write-Host "Cleaning updates.." Stop-Service -Name wuauserv -Force Remove-Item c:\Windows\SoftwareDistribution\Download\* -Recurse -Force Start-Service -Name wuauserv Write-Host "defragging..." if (Get-Command Optimize-Volume -ErrorAction SilentlyContinue) { Optimize-Volume -DriveLetter C } else { ...
PowerShellCorpus/Github/jacqinthebox_packer-templates/scripts/tools_and_stuff.ps1
tools_and_stuff.ps1
# add your customizations here in this script. # e.g. install Chocolatey if (Test-Path "$env:windir\explorer.exe") { Invoke-Webrequest https://chocolatey.org/install.ps1 -UseBasicParsing | Invoke-Expression } # adding a syscrep script to c:\scripts. This will set the winrm service to start manually # https://gi...
PowerShellCorpus/Github/jacqinthebox_packer-templates/scripts/windows-base.ps1
windows-base.ps1
Write-Host "Enabling RDP, reset SysprepStatus and show file extensions" netsh advfirewall firewall add rule name="Remote Desktop" dir=in localport=3389 protocol=TCP action=allow reg add 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server' /v fDenyTSConnections /t REG_DWORD /d 0 /f Set-ItemProperty...
PowerShellCorpus/Github/jacqinthebox_packer-templates/extras/w10-devmachine/install.ps1
install.ps1
#New-Item -path "registry::hklm\software\policies\microsoft\Internet Explorer\Main" -Force New-ItemProperty -path "registry::hklm\software\policies\microsoft\Internet Explorer\Main" -Name DisableFirstRunCustomize -PropertyType dword -Value 1 Install-Module ISESteroids -Scope CurrentUser choco install git --yes --f...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/packages/Microsoft.AspNet.Providers.LocalDB.1.1/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) try { # Set up variables $timestamp = (Get-Date).ToString('yyyyMMddHHmmss') $projectName = [IO.Path]::GetFileName($project.ProjectName.Trim([IO.PATH]::DirectorySeparatorChar, [IO.PATH]::AltDirectorySeparatorChar)) $catalogName = "aspnet-$project...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/packages/Modernizr.2.6.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/packages/Modernizr.2.6.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) if ($scriptsFolderProjectItem -eq $null) { # No Scripts folder Write-Host "No Scripts folder found" exit } # Update the _references.js file AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileName...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/packages/Modernizr.2.6.2/Tools/common.ps1
common.ps1
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { try { $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") } catch { # _references.js file not found return } if ($referencesFileProject...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/packages/EntityFramework.5.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' } if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 ))) { $thisModuleManifest = 'EntityFramework.PS3.psd1' } else { $thisModuleManifest = 'EntityFramework.psd1' } $thisModule...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/packages/EntityFramework.5.0.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project) { $appDomain = [AppDomain]::CreateDomain( 'EntityFramework.PowerShell', $null, (New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' })) ...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/packages/Microsoft.Web.Infrastructure.1.0.0.0/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) if ($project.Type -eq 'Web Site') { Import-Module (Join-Path $toolsPath VS.psd1) $srcFiles = Join-Path $installPath "lib\net40\*.dll" $projectRoot = Get-ProjectRoot $project if (!$projectRoot) { return; } $destDirec...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/packages/Microsoft.Web.Infrastructure.1.0.0.0/tools/Uninstall.ps1
Uninstall.ps1
param($installPath, $toolsPath, $package, $project) if ($project.Type -eq 'Web Site') { Import-Module (Join-Path $toolsPath VS.psd1) $projectRoot = Get-ProjectRoot $project if (!$projectRoot) { return; } $binDirectory = Join-Path $projectRoot "bin" $srcDirectory = Join-Path $...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/packages/jQuery.UI.Combined.1.8.24/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $juiFileNameRegEx
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/packages/jQuery.UI.Combined.1.8.24/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) if ($scriptsFolderProjectItem -eq $null) { # No Scripts folder Write-Host "No Scripts folder found" exit } # Update the _references.js file AddOrUpdate-Reference $scriptsFolderProjectItem $juiFileNameRegEx ...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/packages/jQuery.UI.Combined.1.8.24/Tools/common.ps1
common.ps1
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { try { $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") } catch { # _references.js file not found return } if ($referencesFileProject...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/packages/jQuery.1.8.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Determine the file paths $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName if (Test-Path $projectIntelliSense...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/packages/jQuery.1.8.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # VS 11 and above supports the new intellisense JS files $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/packages/jQuery.1.8.2/Tools/common.ps1
common.ps1
function Get-Checksum($file) { $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" $fileInfo = Get-Item $file trap { ; continue } $stream = $fileInfo.OpenRead() if ($? -eq $false) { # Couldn't open file for reading return $null } $bytes = $...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/Front End/packages/Microsoft.AspNet.Providers.LocalDB.1.1/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) try { # Set up variables $timestamp = (Get-Date).ToString('yyyyMMddHHmmss') $projectName = [IO.Path]::GetFileName($project.ProjectName.Trim([IO.PATH]::DirectorySeparatorChar, [IO.PATH]::AltDirectorySeparatorChar)) $catalogName = "aspnet-$project...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/Front End/packages/Modernizr.2.6.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/Front End/packages/Modernizr.2.6.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) if ($scriptsFolderProjectItem -eq $null) { # No Scripts folder Write-Host "No Scripts folder found" exit } # Update the _references.js file AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileName...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/Front End/packages/Modernizr.2.6.2/Tools/common.ps1
common.ps1
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { try { $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") } catch { # _references.js file not found return } if ($referencesFileProject...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/Front End/packages/EntityFramework.5.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' } if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 ))) { $thisModuleManifest = 'EntityFramework.PS3.psd1' } else { $thisModuleManifest = 'EntityFramework.psd1' } $thisModule...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/Front End/packages/EntityFramework.5.0.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project) { $appDomain = [AppDomain]::CreateDomain( 'EntityFramework.PowerShell', $null, (New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' })) ...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/Front End/packages/jQuery.UI.Combined.1.8.24/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $juiFileNameRegEx
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/Front End/packages/jQuery.UI.Combined.1.8.24/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) if ($scriptsFolderProjectItem -eq $null) { # No Scripts folder Write-Host "No Scripts folder found" exit } # Update the _references.js file AddOrUpdate-Reference $scriptsFolderProjectItem $juiFileNameRegEx ...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/Front End/packages/jQuery.UI.Combined.1.8.24/Tools/common.ps1
common.ps1
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { try { $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") } catch { # _references.js file not found return } if ($referencesFileProject...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/Front End/packages/jQuery.1.8.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Determine the file paths $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName if (Test-Path $projectIntelliSense...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/Front End/packages/jQuery.1.8.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # VS 11 and above supports the new intellisense JS files $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/Filion91_Reddit_2.0/Application_Reddit_2.0/Front End/packages/jQuery.1.8.2/Tools/common.ps1
common.ps1
function Get-Checksum($file) { $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" $fileInfo = Get-Item $file trap { ; continue } $stream = $fileInfo.OpenRead() if ($? -eq $false) { # Couldn't open file for reading return $null } $bytes = $...