full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/antonysamy931_Angular-Dynamic/Angular.SignalR/packages/jQuery.1.7.1.1/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 $supportsJsIntelliSenseFile = [System.Version]::Parse($dte.Version).Major -ge 11 if (-not $supportsJsIntelliSenseFile) { Write-Host "IntelliSense JS files are n...
PowerShellCorpus/Github/antonysamy931_Angular-Dynamic/Angular.SignalR/packages/jQuery.1.7.1.1/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/DevendraChhantyal_Asp.Net-crud/Deven.Web.Application123/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/DevendraChhantyal_Asp.Net-crud/Deven.Web.Application123/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/DevendraChhantyal_Asp.Net-crud/Deven.Web.Application123/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/DevendraChhantyal_Asp.Net-crud/Deven.Web.Application123/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/DevendraChhantyal_Asp.Net-crud/Deven.Web.Application123/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/DevendraChhantyal_Asp.Net-crud/Deven.Web.Application123/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/DevendraChhantyal_Asp.Net-crud/Deven.Web.Application123/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/DevendraChhantyal_Asp.Net-crud/Deven.Web.Application123/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/jamesbannan_presentations/msauignite2015/MSAUIgnite-CLD443-loop.ps1
MSAUIgnite-CLD443-loop.ps1
$azureResourceGroupName = 'msauignite-loop' $azureResourceGroup = New-AzureRmResourceGroup ` -Name $azureResourceGroupName ` -Location 'Australia East' $shardingDeploymentName = 'msauignite-demo-loop' New-AzureRmResourceGroupDeployment ` -Name $shardingDeploymentName ` -ResourceGroupName $Azu...
PowerShellCorpus/Github/jamesbannan_presentations/msauignite2015/MSAUIgnite-ARC443-sharding.ps1
MSAUIgnite-ARC443-sharding.ps1
$azureResourceGroup = Get-AzureRmResourceGroup -Name 'ignite-infra' $shardingDeploymentName = 'msauignite-sharding' New-AzureRmResourceGroupDeployment ` -Name $shardingDeploymentName ` -ResourceGroupName $AzureResourceGroup.ResourceGroupName ` -TemplateFile demoLinuxVM.json ` -Verbose -Force
PowerShellCorpus/Github/jamesbannan_presentations/msauignite2015/MSAUIgnite-ARC443-storage.ps1
MSAUIgnite-ARC443-storage.ps1
### Storage Accounts ### Get Azure Resource Group $azureResourceGroup = Get-AzureRmResourceGroup -Name 'ignite-infra' $azureStorageAccountPrefix = 'msauignite2015' ### New LRS Storage Account $azureLRSStorageAccountName = $azureStorageAccountPrefix + 'lrs' $azureLRSStorageAccount = New-AzureRmStorageAccount `...
PowerShellCorpus/Github/jamesbannan_presentations/msauignite2015/MSAUIgnite-ARC443-trafficmanager.ps1
MSAUIgnite-ARC443-trafficmanager.ps1
## Register Microsoft.Network providers with subscription Register-AzureRmProviderFeature –ProviderNamespace Microsoft.Network $networkFeatures = Get-AzureRmProviderFeature -ListAvailable | ` Where-Object {$_.ProviderName -eq 'Microsoft.Network'} foreach($networkFeature in $networkFeatures){ Register-Azu...
PowerShellCorpus/Github/jamesbannan_presentations/msauignite2015/MSAUIgnite-ARC443-loadbalancer.ps1
MSAUIgnite-ARC443-loadbalancer.ps1
## Create Azure Resource Group $lbResourceGroupName = 'msauignite-lb' New-AzureRmResourceGroup -Name $lbResourceGroupName -Location 'Australia East' $lbResourceGroup = Get-AzureRmResourceGroup -Name $lbResourceGroupName ## Create Virtual Network & Public IP $lbBackendSubnet = New-AzureRmVirtualNetworkSubnetC...
PowerShellCorpus/Github/jamesbannan_presentations/msauignite2015/MSAUIgnite-CLD443-nested.ps1
MSAUIgnite-CLD443-nested.ps1
$azureResourceGroupName = 'msauignite-nested' $azureResourceGroup = New-AzureRmResourceGroup ` -Name $azureResourceGroupName ` -Location 'Australia East' New-AzureRmResourceGroupDeployment ` -Name 'msauignite-nested-demo' ` -ResourceGroupName $azureResourceGroup.ResourceGroupName ` -Templat...
PowerShellCorpus/Github/jamesbannan_presentations/gab2016/Deploy-PaasSolutionGit.ps1
Deploy-PaasSolutionGit.ps1
### Define variables $location = 'Australia Southeast' $resourceGroupName = 'gab2016-arm-paas' $resourceDeploymentName = 'gab2016-arm-paas-deployment' $templatePath = $env:USERPROFILE + '\Documents\git\presentations\gab2016' $templateFile = 'paasDeploy_git.json' $template = $templatePath + '\' + $templateFile ...
PowerShellCorpus/Github/jamesbannan_presentations/gab2016/Deploy-SimplePaas.ps1
Deploy-SimplePaas.ps1
### Define Deployment Variables $resourceGroupName = 'gab2016-arm-simple-paas' $resourceProviderNamespace = 'Microsoft.Web' $resourceTypeName = 'sites' $resourceGroupLocation = 'Australia Southeast' $randomString = ([char[]]([char]'a'..[char]'z') + 0..9 | Sort-Object {Get-Random})[0..8] -join '' $appNamePre...
PowerShellCorpus/Github/jamesbannan_presentations/gab2016/Deploy-SimpleIaas.ps1
Deploy-SimpleIaas.ps1
### Define Deployment Variables $resourceGroupName = 'gab2016-arm-simple-iaas' $resourceProviderNamespace = 'Microsoft.Network' $resourceTypeName = 'virtualNetworks' $resourceGroupLocation = 'Australia Southeast' $vNetName = 'vnet-gab2016' $vNetAddressPrefix = '172.16.0.0/16' $vNetSubnet1Name = 'subnet-1' ...
PowerShellCorpus/Github/jamesbannan_presentations/gab2016/Deploy-PaasSolution.ps1
Deploy-PaasSolution.ps1
### Define variables $location = 'Australia Southeast' $resourceGroupName = 'gab2016-arm-paas' $resourceDeploymentName = 'gab2016-arm-paas-deployment' $templatePath = $env:USERPROFILE + '\Documents\git\presentations\gab2016' $templateFile = 'paasDeploy_v2.json' $template = $templatePath + '\' + $templateFile $...
PowerShellCorpus/Github/gyselroth_monitoring-plugin-veeam-vm/check_vm_backup.ps1
check_vm_backup.ps1
# # Check veeam backup status # # @author Raffael Sahli <sahli@gyselroth.com> # @license MIT, gyselroth GmbH 2017 # param ( [string]$vm=$FALSE, [string]$warning=86400, [string]$critical=172800 ) asnp "VeeamPSSnapIn" -ErrorAction SilentlyContinue if($vm -eq $FALSE) { echo "param -vm miss...
PowerShellCorpus/Github/alaureijs_zabbix/zabbix-agent config.ps1
zabbix-agent config.ps1
# # - needs some error checking. # - must be run as administrator when installing the service # $install = 0 $install_path = "c:\program files\zabbix" $bin_path = "$install_path\bin\win64" $conf_path = "$install_path\conf" $conf_include = "$conf_path\zabbix_agentd.conf.d\" $conf_file = 'zabbix_agentd....
PowerShellCorpus/Github/SamaaG_CS55540_TeamProject/WeatherReport/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/SamaaG_CS55540_TeamProject/WeatherReport/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/SamaaG_CS55540_TeamProject/WeatherReport/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/SamaaG_CS55540_TeamProject/WeatherReport/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/SamaaG_CS55540_TeamProject/WeatherReport/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/SamaaG_CS55540_TeamProject/WeatherReport/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/SamaaG_CS55540_TeamProject/WeatherReport/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/SamaaG_CS55540_TeamProject/WeatherReport/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/SamaaG_CS55540_TeamProject/WeatherReport/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/OPSTest_E2E_Provision_1487821371395/.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/wyhliverpoolfc_FIT5032-Assignment-3/ass3/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/wyhliverpoolfc_FIT5032-Assignment-3/ass3/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/wyhliverpoolfc_FIT5032-Assignment-3/ass3/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/wyhliverpoolfc_FIT5032-Assignment-3/ass3/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/wyhliverpoolfc_FIT5032-Assignment-3/ass3/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/wyhliverpoolfc_FIT5032-Assignment-3/ass3/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/wyhliverpoolfc_FIT5032-Assignment-3/ass3/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/wyhliverpoolfc_FIT5032-Assignment-3/ass3/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/wyhliverpoolfc_FIT5032-Assignment-3/ass3/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/wyhliverpoolfc_FIT5032-Assignment-3/ass3/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/wyhliverpoolfc_FIT5032-Assignment-3/ass3/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/johancyprich_CPing/CPing.ps1
CPing.ps1
### <application> ### <name>CPing</name> ### <version>1.0.0</version> ### <date>October 7, 2013</date> ### <author>Johan Cyprich<author> ### <author_email>jcyprich@live.com</author_email> ### <license URL="http://opensource.org/licenses/mit-license.php"> ### The MIT License (MIT) ### ### Copyri...
PowerShellCorpus/Github/sreedevisreekumar_Learning/MVCLearning/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/sreedevisreekumar_Learning/MVCLearning/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/sreedevisreekumar_Learning/MVCLearning/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/sreedevisreekumar_Learning/MVCLearning/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/sreedevisreekumar_Learning/MVCLearning/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/sreedevisreekumar_Learning/MVCLearning/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/sreedevisreekumar_Learning/MVCLearning/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/sreedevisreekumar_Learning/MVCLearning/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/sreedevisreekumar_Learning/MVCLearning/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/sreedevisreekumar_Learning/OnlineShoppingStore/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/sreedevisreekumar_Learning/OnlineShoppingStore/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/sreedevisreekumar_Learning/OnlineShoppingStore/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/sreedevisreekumar_Learning/OnlineShoppingStore/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/sreedevisreekumar_Learning/OnlineShoppingStore/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/sreedevisreekumar_Learning/OnlineShoppingStore/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/sreedevisreekumar_Learning/OnlineShoppingStore/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/sreedevisreekumar_Learning/OnlineShoppingStore/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/sreedevisreekumar_Learning/EntityFrameworkSample/EntitySample/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/sreedevisreekumar_Learning/EntityFrameworkSample/EntitySample/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/sreedevisreekumar_Learning/EntityFrameworkSample/EntitySample/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/sreedevisreekumar_Learning/EntityFrameworkSample/EntitySample/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/sreedevisreekumar_Learning/EntityFrameworkSample/EntitySample/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/sreedevisreekumar_Learning/EntityFrameworkSample/EntitySample/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/sreedevisreekumar_Learning/EntityFrameworkSample/EntitySample/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/sreedevisreekumar_Learning/EntityFrameworkSample/EntitySample/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/washby_BlackboardDataIntegration/BbManager.ps1
BbManager.ps1
Param( [Parameter(Mandatory=$false)]$Upload=$true, [Parameter(Mandatory=$false)]$UsersInputFile="", [Parameter(Mandatory=$false)]$CourseENRLInputFile="" ) #################################################################### function Execute-HTTPPostCommand{ param( [Parameter(Mandatory=$true...
PowerShellCorpus/Github/1312291_PhongTro/Source/WebService/PhongTro/packages/EntityFramework.6.1.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/1312291_PhongTro/Source/WebService/PhongTro/packages/EntityFramework.6.1.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/1312291_PhongTro/Source/WebService/PhongTro/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/1312291_PhongTro/Source/WebService/PhongTro/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/1312291_PhongTro/Source/WebService/PhongTro/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/Amar-Chaudhari_prtgscripts/f5_vip_traffic_adv_custom_auto_create_v4.ps1
f5_vip_traffic_adv_custom_auto_create_v4.ps1
Set-Alias snmpwalk "location of snmpwalk" #Location to snmpwalk.exe #Download from here - http://www.net-snmp.org/download.html # Eg : C:\Program Files (x86)\net-snmp\bin\snmpwalk.exe Import-Module "Location to prtgshell module" -Verbose #Location to prtgshell module #Example C:\dev\prtgshell\prtgshell.psm1 ...
PowerShellCorpus/Github/Amar-Chaudhari_prtgscripts/bigip_sesnor.ps1
bigip_sesnor.ps1
Set-Alias snmpget "C:\Program Files (x86)\net-snmp\bin\snmpget.exe" $sensor_type = $args[0] $slb_host = $args[1] $snmp_community = $args[2] $snmp_version = $args[3] $sensor_value = $args[4] $sensor_version = $args[5] ############################################################ function ConvertToOid{ ...
PowerShellCorpus/Github/hesto2_IS-531-Powershell-Lab/carterhesterman_fileorganizer.ps1
carterhesterman_fileorganizer.ps1
param([string]$source="d:\dev\is531_powershell_lab\source", [string]$destination="d:\dev\is531_powershell_lab\destination", [switch]$copy) Function ExitError([string]$message){ Write-Host $message -ForegroundColor Red exit 1 } Function TestFolder([string]$path,[switch]$create){ $exists = Test-Path...
PowerShellCorpus/Github/MicrosoftDocs_E2E_Test5/.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/TotalJobsGroup_Packer/setup-winrm.ps1
setup-winrm.ps1
# See: http://stackoverflow.com/questions/21548566/how-to-add-more-than-one-machine-to-the-trusted-hosts-list-using-winrm echo "Warning: this script allows you to connect to all hosts with WinRM" Set-Item WSMan:\localhost\Client\TrustedHosts -Value '*' Enable-PSRemoting -SkipNetworkProfileCheck cd WSMan:\localhos...
PowerShellCorpus/Github/TotalJobsGroup_Packer/vmware-stage2-webserver.ps1
vmware-stage2-webserver.ps1
if (Test-Path ./output-vmware-basewindows/vmware-basewindows.vmx) { $start = get-date packer build -force -only="vmware-webserver" vmware.json $end = get-date $total = $end - $start Write-Host "Took $total to complete" kill -name vmware-vmx -ErrorAction Ignore } else { Write-Ho...
PowerShellCorpus/Github/TotalJobsGroup_Packer/virtualbox-stage2-devdesktop.ps1
virtualbox-stage2-devdesktop.ps1
if(-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall")){ iex ((new-object net.webclient).DownloadString("http://bit.ly/psChocInstall")) } # specific versions due to bugs in 0.12.1 choco install packer -y -version 0.12.0 choco install VirtualBox -y -version 5.1.8.20161116 # Extra logg...
PowerShellCorpus/Github/TotalJobsGroup_Packer/vmware-stage3-buildmachine.ps1
vmware-stage3-buildmachine.ps1
if (Test-Path ./output-vmware-webserver/vmware-webserver.vmx) { $start = get-date packer build -force -only="vmware-buildmachine" vmware.json $end = get-date $total = $end - $start Write-Host "Took $total to complete" kill -name vmware-vmx -ErrorAction Ignore } else { Write-Host...
PowerShellCorpus/Github/TotalJobsGroup_Packer/virtualbox-stage1-base.ps1
virtualbox-stage1-base.ps1
if(-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall")){ iex ((new-object net.webclient).DownloadString("http://bit.ly/psChocInstall")) } # specific versions due to bugs in 0.12.1 choco install packer -y -version 0.12.0 choco install VirtualBox -y -version 5.1.8.20161116 # Extra logg...
PowerShellCorpus/Github/TotalJobsGroup_Packer/vmware-stage2-win10.ps1
vmware-stage2-win10.ps1
if (Test-Path "./win10-stage1/Windows 10 x64.vmx") { $start = get-date packer build -force -only="vmware-win10-stage2" vmware-win10.json $end = get-date $total = $end - $start Write-Host "Took $total to complete" kill -name vmware-vmx -ErrorAction Ignore } else { Write-Host "./...
PowerShellCorpus/Github/TotalJobsGroup_Packer/aws.ps1
aws.ps1
# Check for chocolatey and install it if(-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall")){ iex ((new-object net.webclient).DownloadString("http://bit.ly/psChocInstall")) } # Check for packer and install it $hasPacker = chocolatey list -localonly | Select-String "packer" if ($hasPac...
PowerShellCorpus/Github/TotalJobsGroup_Packer/vmware-stage1-base.ps1
vmware-stage1-base.ps1
if(-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall")){ iex ((new-object net.webclient).DownloadString("http://bit.ly/psChocInstall")) } choco install packer -y $start = get-date packer build -force -only="vmware-basewindows" vmware.json $end = get-date $total = $end - $start Wr...
PowerShellCorpus/Github/TotalJobsGroup_Packer/vmware-stage1-win10.ps1
vmware-stage1-win10.ps1
if(-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall")){ iex ((new-object net.webclient).DownloadString("http://bit.ly/psChocInstall")) } choco install packer -y $start = get-date packer build -force -only="vmware-win10-stage1" vmware-win10.json $end = get-date $total = $end - $st...
PowerShellCorpus/Github/TotalJobsGroup_Packer/scripts/virtualbox/install-dev-software.ps1
install-dev-software.ps1
Write-Output "Installing developer software" # Git things choco install git # General Dev Tools choco install nodejs.install # Browsers choco install firefox choco install google-chrome-x64 # MS Building Tools choco install windows-sdk-8.1 choco install nuget.commandline choco install microsoft-build...
PowerShellCorpus/Github/TotalJobsGroup_Packer/scripts/aws/ec2-config.ps1
ec2-config.ps1
# From https://gist.github.com/jamiegs/a0be9125cdb668fd19e56127c113a49d $EC2SettingsFile="C:\\Program Files\\Amazon\\Ec2ConfigService\\Settings\\Config.xml" $xml = [xml](get-content $EC2SettingsFile) $xmlElement = $xml.get_DocumentElement() $xmlElementToModify = $xmlElement.Plugins $enableElements = "Ec2SetPassw...
PowerShellCorpus/Github/TotalJobsGroup_Packer/scripts/vmware/buildmachine.ps1
buildmachine.ps1
# Software for .NET build server agents (e.g. teamcityagent) choco install git choco install VisualStudio2015Community choco install nodejs choco install jdk8 choco install googlechrome choco install chromedriver
PowerShellCorpus/Github/TotalJobsGroup_Packer/scripts/vmware/copy-sysprep-answerfile.ps1
copy-sysprep-answerfile.ps1
# Copy the answer file and sysprep helper functions to the C: drive, which can be called when a new VM is created from the template. Copy-Item -Path A:\Autounattend-sysprep.xml -Destination C:\Autounattend-sysprep.xml
PowerShellCorpus/Github/TotalJobsGroup_Packer/scripts/vmware/install-vmwaretools.ps1
install-vmwaretools.ps1
################################################################################################# # Install VMWare tools from the Github repo (don't use choco or the VMWare url as they're broken). ################################################################################################# $outFile = "C:\VMware-...
PowerShellCorpus/Github/TotalJobsGroup_Packer/scripts/shared/install-chocolatey.ps1
install-chocolatey.ps1
################################################################################# # Install Chocolatey, stop the -y flag being needed for all "choco install" ################################################################################# iex ((new-object net.webclient).DownloadString('https://chocolatey.org/instal...
PowerShellCorpus/Github/TotalJobsGroup_Packer/scripts/shared/install-winfeatures.ps1
install-winfeatures.ps1
################################################################################# # Install IIS, MSMQ, WCF, .NET 4.5 ################################################################################# # To verify the installation this could use Get-WindowsFeature Write-Host "Installing Role 'NET-Framework-Core'" Ins...
PowerShellCorpus/Github/TotalJobsGroup_Packer/scripts/shared/teamcity-agent.ps1
teamcity-agent.ps1
# Build tools for a Windows Teamcity agent # Selenium choco install googlechrome choco install chromedriver # Node (primarily for gulp) choco install nodejs.install # Java choco install jdk8 # MS Building Tools choco install windows-sdk-8.1 choco install nuget.commandline choco install microsoft-buil...
PowerShellCorpus/Github/TotalJobsGroup_Packer/scripts/shared/create-d-partition.ps1
create-d-partition.ps1
################################################################################# # Check for a DVD drive and change its drive letter ################################################################################# $dvdDrive = Get-WmiObject win32_volume -filter DriveType=5 if ($dvdDrive -and $dvdDrive.DriveLetter ...
PowerShellCorpus/Github/TotalJobsGroup_Packer/scripts/shared/base-image-setup.ps1
base-image-setup.ps1
################################################################################# # Install Windows updates. # # This needs to be called by Windows in the answer file on first run, # as you can't update Windows using WinRM. ################################################################################# iex ((n...
PowerShellCorpus/Github/TotalJobsGroup_Packer/scripts/shared/win10/fixnetwork.ps1
fixnetwork.ps1
# You cannot enable Windows PowerShell Remoting on network connections that are set to Public # Spin through all the network locations and if they are set to Public, set them to Private # using the INetwork interface: # http://msdn.microsoft.com/en-us/library/windows/desktop/aa370750(v=vs.85).aspx # For more info, ...
PowerShellCorpus/Github/TotalJobsGroup_Packer/scripts/shared/win10/install-winfeatures.ps1
install-winfeatures.ps1
################################################################################# # Install IIS, MSMQ, WCF, .NET 4.5 ################################################################################# # To verify the installation this could use Get-WindowsOptionalFeature -Online | select FeatureName | sort FeatureNa...