full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/pareta25_CEPM/Src/packages/jQuery.UI.Combined.1.11.2/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/pareta25_CEPM/Src/packages/jQuery.UI.Combined.1.11.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 $juiFileNameRegEx ...
PowerShellCorpus/Github/pareta25_CEPM/Src/packages/jQuery.UI.Combined.1.11.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/pareta25_CEPM/Src/packages/EntityFramework.6.1.1/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/pareta25_CEPM/Src/packages/EntityFramework.6.1.1/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/OPSTest_E2E_Provision_1488647142463/.openpublishing.build.ps1
.openpublishing.build.ps1
param( [string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.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 u...
PowerShellCorpus/Github/OPSTest_E2E_Provision_1488449141353/.openpublishing.build.ps1
.openpublishing.build.ps1
param( [string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.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 u...
PowerShellCorpus/Github/DocY_FlappyPS/FlappyPS.ps1
FlappyPS.ps1
## SFML assemblies must be loaded before running: .\LoadSFML.ps1 # Classes ----------------------------------------------------------------------------- # Player Class Player : SFML.Graphics.Drawable { [SFML.Graphics.Sprite]$sprite [float]$height [float]$yVel [bool]$dead # Constructor Player ...
PowerShellCorpus/Github/DocY_FlappyPS/LoadSFML.ps1
LoadSFML.ps1
# Assemblies -------------------------------------------------------------------------- Add-Type -Path ".\DLL\sfmlnet-system-2.dll" Add-Type -Path ".\DLL\sfmlnet-graphics-2.dll" Add-Type -Path ".\DLL\sfmlnet-window-2.dll" Write-Host SFML.NET loaded.
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint-2016-HA-Farm/Source/ConfigureSharePointServerHA.ps1/ConfigureSharePointServerHA.ps1
ConfigureSharePointServerHA.ps1
# # Copyright="� Microsoft Corporation. All rights reserved." # configuration ConfigureSharePointServerHA { param ( [Parameter(Mandatory)] [String]$DomainName, [Parameter(Mandatory)] [System.Management.Automation.PSCredential]$Admincreds, [Parameter(M...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint-2016-HA-Farm/Scripts/CleanUpScript.ps1
CleanUpScript.ps1
$resourceGroup = "SharePoint2016-Test06" $spStorageAccount = "gcsp01str3" $adStorageAccount = "gcsp01str1" $ErrorActionPreference = "Stop" Select-AzureRmSubscription -SubscriptionId "1c543ebe-dd69-4702-a884-3a19bdc35328" $spStorageContext = New-AzureStorageContext -StorageAccountName $spStorageAccount -Storage...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint-2016-HA-Farm/Scripts/Deploy-AzureResourceGroup.ps1
Deploy-AzureResourceGroup.ps1
#Requires -Version 3.0 #Requires -Module AzureRM.Resources #Requires -Module Azure.Storage Param( [string] $ResourceGroupLocation = 'eastus', [string] $ResourceGroupName = 'SharePoint2016-Test01', [switch] $UploadArtifacts, [string] $StorageAccountName = 'gc-sp2016test01', [string] $dnsPrefix...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint-2016-HA-Farm/Scripts/ShutdownFarm.ps1
ShutdownFarm.ps1
Param( [bool] $ShutdownFarm = $false, [string] $ResourceGroupName = 'SharePoint2016-Test06' ) Write-Host "The value is: " $ShutdownFarm if ($ShutdownFarm) { Write-Host "The farm will be shutdown momentarily..." #SharePoint VMs Stop-AzureRmVM -ResourceGroup $ResourceGRoupName -Force...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2013-SingleServer/Configurations/SP13-Single-AD.ps1
SP13-Single-AD.ps1
configuration ADServer { param( [Parameter(Mandatory=$true)] [ValidateNotNullorEmpty()] [string] $CredSSPDelegates, [Parameter(Mandatory=$true)] [ValidateNotNullorEmpty()] [PSCredential] $domainAdminCredential, [Para...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2013-SingleServer/Configurations/SP13-Single-SQL.ps1
SP13-Single-SQL.ps1
function Format-DscScriptBlock() { param( [parameter(Mandatory=$true)] [System.Collections.Hashtable] $replaceValues, [parameter(Mandatory=$true)] [System.Management.Automation.ScriptBlock] $scriptBlock ) $result = $scriptBlock.ToString(); foreach($key in $replac...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2013-SingleServer/Configurations/SP13-Single-SharePoint.ps1
SP13-Single-SharePoint.ps1
function Format-DscScriptBlock() { param( [parameter(Mandatory=$true)] [System.Collections.Hashtable] $replaceValues, [parameter(Mandatory=$true)] [System.Management.Automation.ScriptBlock] $scriptBlock ) $result = $scriptBlock.ToString(); foreach($key in $replac...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2016-SingleServer/Configurations/SP16-Single-SQL.ps1
SP16-Single-SQL.ps1
function Format-DscScriptBlock() { param( [parameter(Mandatory=$true)] [System.Collections.Hashtable] $replaceValues, [parameter(Mandatory=$true)] [System.Management.Automation.ScriptBlock] $scriptBlock ) $result = $scriptBlock.ToString(); foreach($key in $replac...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2016-SingleServer/Configurations/SP16-Single-AD.ps1
SP16-Single-AD.ps1
configuration ADServer { param( [Parameter(Mandatory=$true)] [ValidateNotNullorEmpty()] [string] $CredSSPDelegates, [Parameter(Mandatory=$true)] [ValidateNotNullorEmpty()] [PSCredential] $domainAdminCredential, [Para...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2016-SingleServer/Configurations/SP16-Single-SharePoint.ps1
SP16-Single-SharePoint.ps1
function Format-DscScriptBlock() { param( [parameter(Mandatory=$true)] [System.Collections.Hashtable] $replaceValues, [parameter(Mandatory=$true)] [System.Management.Automation.ScriptBlock] $scriptBlock ) $result = $scriptBlock.ToString(); foreach($key in $replac...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2016-SmallFarm/Configurations/SP16-SmlFarm-Farm.ps1
SP16-SmlFarm-Farm.ps1
function Format-DscScriptBlock() { param( [parameter(Mandatory=$true)] [System.Collections.Hashtable] $replaceValues, [parameter(Mandatory=$true)] [System.Management.Automation.ScriptBlock] $scriptBlock ) $result = $scriptBlock.ToString(); foreach($key in $replac...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2016-SmallFarm/Configurations/SP16-SmlFarm-WFE2.ps1
SP16-SmlFarm-WFE2.ps1
function Format-DscScriptBlock() { param( [parameter(Mandatory=$true)] [System.Collections.Hashtable] $replaceValues, [parameter(Mandatory=$true)] [System.Management.Automation.ScriptBlock] $scriptBlock ) $result = $scriptBlock.ToString(); foreach($key in $replac...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2016-SmallFarm/Configurations/SP16-SmlFarm-AD.ps1
SP16-SmlFarm-AD.ps1
configuration ADServer { param( [Parameter(Mandatory=$true)] [ValidateNotNullorEmpty()] [string] $CredSSPDelegates, [Parameter(Mandatory=$true)] [ValidateNotNullorEmpty()] [PSCredential] $domainAdminCredential, [Para...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2016-SmallFarm/Configurations/SP16-SmlFarm-SQL.ps1
SP16-SmlFarm-SQL.ps1
function Format-DscScriptBlock() { param( [parameter(Mandatory=$true)] [System.Collections.Hashtable] $replaceValues, [parameter(Mandatory=$true)] [System.Management.Automation.ScriptBlock] $scriptBlock ) $result = $scriptBlock.ToString(); foreach($key in $replac...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2016-SmallFarm/Configurations/SP16-SmlFarm-App.ps1
SP16-SmlFarm-App.ps1
function Format-DscScriptBlock() { param( [parameter(Mandatory=$true)] [System.Collections.Hashtable] $replaceValues, [parameter(Mandatory=$true)] [System.Management.Automation.ScriptBlock] $scriptBlock ) $result = $scriptBlock.ToString(); foreach($key in $replac...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2016-SmallFarm/Configurations/SP16-SmlFarm-WFE1.ps1
SP16-SmlFarm-WFE1.ps1
function Format-DscScriptBlock() { param( [parameter(Mandatory=$true)] [System.Collections.Hashtable] $replaceValues, [parameter(Mandatory=$true)] [System.Management.Automation.ScriptBlock] $scriptBlock ) $result = $scriptBlock.ToString(); foreach($key in $replac...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2013-SmallFarm/Configurations/SP13-SmlFarm-SQL.ps1
SP13-SmlFarm-SQL.ps1
function Format-DscScriptBlock() { param( [parameter(Mandatory=$true)] [System.Collections.Hashtable] $replaceValues, [parameter(Mandatory=$true)] [System.Management.Automation.ScriptBlock] $scriptBlock ) $result = $scriptBlock.ToString(); foreach($key in $replac...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2013-SmallFarm/Configurations/SP13-SmlFarm-WFE2.ps1
SP13-SmlFarm-WFE2.ps1
function Format-DscScriptBlock() { param( [parameter(Mandatory=$true)] [System.Collections.Hashtable] $replaceValues, [parameter(Mandatory=$true)] [System.Management.Automation.ScriptBlock] $scriptBlock ) $result = $scriptBlock.ToString(); foreach($key in $replac...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2013-SmallFarm/Configurations/SP13-SmlFarm-WFE1.ps1
SP13-SmlFarm-WFE1.ps1
function Format-DscScriptBlock() { param( [parameter(Mandatory=$true)] [System.Collections.Hashtable] $replaceValues, [parameter(Mandatory=$true)] [System.Management.Automation.ScriptBlock] $scriptBlock ) $result = $scriptBlock.ToString(); foreach($key in $replac...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2013-SmallFarm/Configurations/SP13-SmlFarm-AD.ps1
SP13-SmlFarm-AD.ps1
configuration ADServer { param( [Parameter(Mandatory=$true)] [ValidateNotNullorEmpty()] [string] $CredSSPDelegates, [Parameter(Mandatory=$true)] [ValidateNotNullorEmpty()] [PSCredential] $domainAdminCredential, [Para...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2013-SmallFarm/Configurations/SP13-SmlFarm-Farm.ps1
SP13-SmlFarm-Farm.ps1
function Format-DscScriptBlock() { param( [parameter(Mandatory=$true)] [System.Collections.Hashtable] $replaceValues, [parameter(Mandatory=$true)] [System.Management.Automation.ScriptBlock] $scriptBlock ) $result = $scriptBlock.ToString(); foreach($key in $replac...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Templates/SP2013-SmallFarm/Configurations/SP13-SmlFarm-App.ps1
SP13-SmlFarm-App.ps1
function Format-DscScriptBlock() { param( [parameter(Mandatory=$true)] [System.Collections.Hashtable] $replaceValues, [parameter(Mandatory=$true)] [System.Management.Automation.ScriptBlock] $scriptBlock ) $result = $scriptBlock.ToString(); foreach($key in $replac...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Scripts/Deploy-AzureResourceGroup.ps1
Deploy-AzureResourceGroup.ps1
#Requires -Version 3.0 Param( [string] [Parameter(Mandatory=$false)] $ResourceGroupLocation = 'eastus', [string] [ValidateSet('SP2013-SingleServer','SP2013-SmallFarm','SP2016-SingleServer','SP2016-SmallFarm')] [Parameter(Mandatory=$false)] $ConfigName = 'SP2016-SmallFarm', [string] [Parameter(Mandatory=$fal...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Scripts/AzureSharePointDeploymentFunctions.ps1
AzureSharePointDeploymentFunctions.ps1
#************************************************************* # # Azure SharePoint Deployment Helper Functions # # This file contains a number of common functions designed # to assist in the deployment of SharePoint environments # in Azure # #********************************************************...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Scripts/Start-AzureResourceGroupVMs.ps1
Start-AzureResourceGroupVMs.ps1
#Requires -Version 3.0 Param( [string] [ValidateSet('SP2013-SingleServer','SP2013-SmallFarm','SP2016-SingleServer','SP2016-SmallFarm')] [Parameter(Mandatory=$true)] $ResourceGroupName ) Clear-Host Import-Module -Name Azure -ErrorAction SilentlyContinue . "$PSScriptRoot\AzureSharePointDeploymentFunctions.ps1...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Scripts/Retract-AzureResourceGroup.ps1
Retract-AzureResourceGroup.ps1
#Requires -Version 3.0 Param( [string] [ValidateSet('SP2013-SingleServer','SP2013-SmallFarm','SP2016-SingleServer','SP2016-SmallFarm')] [Parameter(Mandatory=$true)] $ResourceGroupName, [switch] $SharePointOnly ) Clear-Host Import-Module -Name Azure -ErrorAction SilentlyContinue . "$PSScriptRoot\AzureShar...
PowerShellCorpus/Github/gregcar_Azure-SharePoint-Templates/SharePoint ARM projects/Scripts/Stop-AzureResourceGroupVMs.ps1
Stop-AzureResourceGroupVMs.ps1
#Requires -Version 3.0 Param( [string] [ValidateSet('SP2013-SingleServer','SP2013-SmallFarm','SP2016-SingleServer','SP2016-SmallFarm')] [Parameter(Mandatory=$true)] $ResourceGroupName ) Clear-Host Import-Module -Name Azure -ErrorAction SilentlyContinue . "$PSScriptRoot\AzureSharePointDeploymentFunctions.ps1...
PowerShellCorpus/Github/MicrosoftDocs_nav-content.en-in/.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/Deosycephalu_BANKAPPLICATION/Online Banking System/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/Deosycephalu_BANKAPPLICATION/Online Banking System/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/Rajarathinamsoft_softgame/SoftGame/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/Rajarathinamsoft_softgame/SoftGame/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/Rajarathinamsoft_softgame/SoftGame/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/Rajarathinamsoft_softgame/SoftGame/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/Rajarathinamsoft_softgame/SoftGame/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/Rajarathinamsoft_softgame/SoftGame/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/Rajarathinamsoft_softgame/SoftGame/packages/Microsoft.ApplicationInsights.WindowsServer.2.2.0/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) if ([System.IO.File]::Exists($project.FullName)) { function MarkItemASCopyToOutput($item) { Try { #mark it to copy if newer $item.Properties.Item("CopyToOutputDirectory").Value = 2 } Catch { write-host $_.Exception.ToString() }...
PowerShellCorpus/Github/Rajarathinamsoft_softgame/SoftGame/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/Rajarathinamsoft_softgame/SoftGame/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/Rajarathinamsoft_softgame/SoftGame/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/Rajarathinamsoft_softgame/SoftGameService/packages/Microsoft.ApplicationInsights.WindowsServer.2.2.0/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) if ([System.IO.File]::Exists($project.FullName)) { function MarkItemASCopyToOutput($item) { Try { #mark it to copy if newer $item.Properties.Item("CopyToOutputDirectory").Value = 2 } Catch { write-host $_.Exception.ToString() }...
PowerShellCorpus/Github/Rajarathinamsoft_softgame/SoftGameService/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/Rajarathinamsoft_softgame/SoftGameService/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/Rajarathinamsoft_softgame/SoftGameService/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/AArnott_Node.js.redist/Build.ps1
Build.ps1
<# .SYNOPSIS Downloads build tools and a particular version of Node.js and packages it up. .PARAMETER Version The version of Node.js to download and build a package for. #> Param( [Parameter()] [string]$Version='4.4.3' ) & "$PSScriptRoot\Restore.ps1" -Version $Version & "$PSScriptRoot\...
PowerShellCorpus/Github/AArnott_Node.js.redist/Restore.ps1
Restore.ps1
<# .SYNOPSIS Downloads build tools and a particular version of Node.js for purposes of later building a package. .PARAMETER Version The version of Node.js to download. #> Param( [Parameter(Mandatory=$true)] [string]$Version ) $DistRootUri = "https://nodejs.org/dist/v$Version" $LayoutRo...
PowerShellCorpus/Github/AArnott_Node.js.redist/Pack.ps1
Pack.ps1
<# .SYNOPSIS Packages up a particular version of Node.js that has previously been restored. .PARAMETER Version The version of Node.js to build a package for. #> Param( [Parameter(Mandatory=$true)] [string]$Version ) $LayoutRoot = "$PSScriptRoot\obj\layout\$Version" $targetDir = "$PS...
PowerShellCorpus/Github/cyberhoudini_Get-PII/Find-PII.ps1
Find-PII.ps1
#Strings of indicators array $LiteralStrings = @("account" , "medical" , "driver" , "patient" , "maiden" , "birth" , "password" , "username", "social", "credit", "passport") #Social Security Numbers regex array $ssn = @("[0-9]{9}" , "[0-9]{3}[-| ][0-9]{2}[-| ][0-9]{4}") #crdit card numbers regex array $credi...
PowerShellCorpus/Github/szerem_asp.mvc.trening/asp.mvc.trening/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/szerem_asp.mvc.trening/asp.mvc.trening/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/szerem_asp.mvc.trening/asp.mvc.trening/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/szerem_asp.mvc.trening/asp.mvc.trening/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/szerem_asp.mvc.trening/asp.mvc.trening/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/szerem_asp.mvc.trening/asp.mvc.trening/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/szerem_asp.mvc.trening/asp.mvc.trening/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/szerem_asp.mvc.trening/asp.mvc.trening/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/szerem_asp.mvc.trening/asp.mvc.trening/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/szerem_asp.mvc.trening/asp.mvc.trening/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/szerem_asp.mvc.trening/asp.mvc.trening/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/DezSpair_test/XmlWebService/packages/System.Data.SQLite.Core.1.0.93.0/tools/net45/install.ps1
install.ps1
############################################################################### # # install.ps1 -- # # Written by Joe Mistachkin. # Released to the public domain, use at your own risk! # ############################################################################### param($installPath, $toolsPath, $package, $...
PowerShellCorpus/Github/DezSpair_test/XmlWebService/packages/System.Data.SQLite.Core.1.0.93.0/tools/net451/install.ps1
install.ps1
############################################################################### # # install.ps1 -- # # Written by Joe Mistachkin. # Released to the public domain, use at your own risk! # ############################################################################### param($installPath, $toolsPath, $package, $...
PowerShellCorpus/Github/DezSpair_test/XmlWebService/packages/System.Data.SQLite.Core.1.0.93.0/tools/net20/install.ps1
install.ps1
############################################################################### # # install.ps1 -- # # Written by Joe Mistachkin. # Released to the public domain, use at your own risk! # ############################################################################### param($installPath, $toolsPath, $package, $...
PowerShellCorpus/Github/DezSpair_test/XmlWebService/packages/System.Data.SQLite.Core.1.0.93.0/tools/net40/install.ps1
install.ps1
############################################################################### # # install.ps1 -- # # Written by Joe Mistachkin. # Released to the public domain, use at your own risk! # ############################################################################### param($installPath, $toolsPath, $package, $...
PowerShellCorpus/Github/DezSpair_test/XmlWebService/packages/System.Data.SQLite.EF6.1.0.93.0/tools/net45/install.ps1
install.ps1
############################################################################### # # provider.ps1 -- # # Written by Joe Mistachkin. # Released to the public domain, use at your own risk! # ############################################################################### param($installPath, $toolsPath, $package, ...
PowerShellCorpus/Github/DezSpair_test/XmlWebService/packages/System.Data.SQLite.EF6.1.0.93.0/tools/net451/install.ps1
install.ps1
############################################################################### # # provider.ps1 -- # # Written by Joe Mistachkin. # Released to the public domain, use at your own risk! # ############################################################################### param($installPath, $toolsPath, $package, ...
PowerShellCorpus/Github/DezSpair_test/XmlWebService/packages/System.Data.SQLite.EF6.1.0.93.0/tools/net40/install.ps1
install.ps1
############################################################################### # # provider.ps1 -- # # Written by Joe Mistachkin. # Released to the public domain, use at your own risk! # ############################################################################### param($installPath, $toolsPath, $package, ...
PowerShellCorpus/Github/DezSpair_test/XmlWebService/packages/EntityFramework.6.1.1/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/DezSpair_test/XmlWebService/packages/EntityFramework.6.1.1/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/sandorsapi_WPF_Application/ATTS Code/ATTS_App/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/sandorsapi_WPF_Application/ATTS Code/ATTS_App/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/sandorsapi_WPF_Application/ATTS Code/ATTS_App/packages/MvvmLight.5.3.0.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) # find the App.xaml file $appxaml = $project.ProjectItems | where {$_.Name -eq "App.xaml"} $appxamlPath = ($appxaml.Properties | where {$_.Name -eq "LocalPath"}).Value # find the CSPROJ file $projectPath = ($project.Properties | where {$_.Name -eq "LocalPat...
PowerShellCorpus/Github/petakpetak_MOD/MusicOnDemand/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/petakpetak_MOD/MusicOnDemand/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/petakpetak_MOD/MusicOnDemand/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/petakpetak_MOD/MusicOnDemand/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/petakpetak_MOD/MusicOnDemand/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/petakpetak_MOD/MusicOnDemand/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/petakpetak_MOD/MusicOnDemand/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/petakpetak_MOD/MusicOnDemand/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/dnorth98_powershell/checkGoogle.ps1
checkGoogle.ps1
$serverToTest = "www.google.ca" $baseModemURL = "http://192.168.100.1" $modemStatsURL = $baseModemURL + "/Diagnostics.asp" $localSavePath = "C:\tmp\modem-stats" New-Item -ItemType directory -Path $localSavePath -force | Out-Null $modemStatsLocalFile = "$localSavePath\modem-stats-$(get-date -f yyyy-MM-dd-HH-m...
PowerShellCorpus/Github/navalev_ARM_Templates/vm-windows-winrm-user-image/ConfigureWinRM.ps1
ConfigureWinRM.ps1
################################################################################################################################# # Name : Configure-WinRM.ps1 # # ...
PowerShellCorpus/Github/kdoblosky_PShr/Get-HorizontalLine.ps1
Get-HorizontalLine.ps1
Function Get-HorizontalLine { param ( [string]$InputString = "-", [parameter(Mandatory = $false)][alias("c")]$Count = 1, [parameter(Mandatory = $false)][alias("fg")]$ForeColor=$null, [parameter(Mandatory = $false)][alias("bg")]$BackColor=$null ) $ColorSplat = @{} ...
PowerShellCorpus/Github/rkaramandi_dcvtlab2/setup_and_install/new_bot_cleanup.ps1
new_bot_cleanup.ps1
# Retrieving User Information $GITHUBUSER = Read-Host -Prompt "What is your GitHub Username?" Write-Output "" Write-Output "** If you have 2 Factor Auth configured, " Write-Output " provide a Personal Access Token with repo and delete_repo access." Write-Output " Tokens can be generated at https://github.com/s...
PowerShellCorpus/Github/rkaramandi_dcvtlab2/setup_and_install/bot_install_sandbox.ps1
bot_install_sandbox.ps1
# Ignore SSL Certificate Errors add-type @" using System.Net; using System.Security.Cryptography.X509Certificates; public class TrustAllCertsPolicy : ICertificatePolicy { public bool CheckValidationResult( ServicePoint srvPoint, X509Certificate certificate, WebRequest ...
PowerShellCorpus/Github/rkaramandi_dcvtlab2/setup_and_install/new_bot_setup.ps1
new_bot_setup.ps1
# Retrieving User Information $GITHUBUSER = Read-Host -Prompt "What is your GitHub Username?" Write-Output "" Write-Output "** If you have 2 Factor Auth configured, " Write-Output " provide a Personal Access Token with repo and delete_repo access." Write-Output " Tokens can be generated at https://github.com/s...
PowerShellCorpus/Github/rkaramandi_dcvtlab2/setup_and_install/bot_config.ps1
bot_config.ps1
# Ignore SSL Certificate Errors add-type @" using System.Net; using System.Security.Cryptography.X509Certificates; public class TrustAllCertsPolicy : ICertificatePolicy { public bool CheckValidationResult( ServicePoint srvPoint, X509Certificate certificate, WebRequest ...
PowerShellCorpus/Github/rkaramandi_dcvtlab2/setup_and_install/bot_uninstall_sandbox.ps1
bot_uninstall_sandbox.ps1
# Ignore SSL Certificate Errors add-type @" using System.Net; using System.Security.Cryptography.X509Certificates; public class TrustAllCertsPolicy : ICertificatePolicy { public bool CheckValidationResult( ServicePoint srvPoint, X509Certificate certificate, WebRequest ...
PowerShellCorpus/Github/kasunamarasinghe_WebServices/WebServices/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/kasunamarasinghe_WebServices/WebServices/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/kasunamarasinghe_WebServices/WebServices/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/kasunamarasinghe_WebServices/WebServices/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...