full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/herculeshssj_csharp/K19_K32_Cap6_CamadaDeApresentacao/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/herculeshssj_csharp/K19_K32_Cap6_CamadaDeApresentacao/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/herculeshssj_csharp/K19_K32_Cap6_CamadaDeApresentacao/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/herculeshssj_csharp/K19_K32_Cap6_CamadaDeApresentacao/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/herculeshssj_csharp/K19_K32_Cap5_K19/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/herculeshssj_csharp/K19_K32_Cap5_K19/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/herculeshssj_csharp/K19_K32_Cap5_K19/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/herculeshssj_csharp/K19_K32_Cap5_K19/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/herculeshssj_csharp/K19_K32_Cap5_K19/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/herculeshssj_csharp/K19_K32_Cap5_K19/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/herculeshssj_csharp/K19_K32_Cap5_K19/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/herculeshssj_csharp/K19_K32_Cap5_K19/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/herculeshssj_csharp/K19_K32_Cap5_K19/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/herculeshssj_csharp/K19_K32_Cap5_K19/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/herculeshssj_csharp/K19_K32_Cap5_K19/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/herculeshssj_csharp/K19_K32_Cap5_K19/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/herculeshssj_csharp/K19_K32_Cap3_K19EntityFramework/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/herculeshssj_csharp/K19_K32_Cap3_K19EntityFramework/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/herculeshssj_csharp/K19_K32_Cap7_CamadaDeControle/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/herculeshssj_csharp/K19_K32_Cap7_CamadaDeControle/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/herculeshssj_csharp/K19_K32_Cap7_CamadaDeControle/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/herculeshssj_csharp/K19_K32_Cap7_CamadaDeControle/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/herculeshssj_csharp/K19_K32_Cap7_CamadaDeControle/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/herculeshssj_csharp/K19_K32_Cap7_CamadaDeControle/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/herculeshssj_csharp/K19_K32_Cap7_CamadaDeControle/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/herculeshssj_csharp/K19_K32_Cap7_CamadaDeControle/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/herculeshssj_csharp/K19_K32_Cap7_CamadaDeControle/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/herculeshssj_csharp/K19_K32_Cap7_CamadaDeControle/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/herculeshssj_csharp/K19_K32_Cap7_CamadaDeControle/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/herculeshssj_csharp/K19_K32_Cap7_CamadaDeControle/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/herculeshssj_csharp/K19_K32_Cap8_Validacao/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/herculeshssj_csharp/K19_K32_Cap8_Validacao/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/herculeshssj_csharp/K19_K32_Cap8_Validacao/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/herculeshssj_csharp/K19_K32_Cap8_Validacao/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/herculeshssj_csharp/K19_K32_Cap8_Validacao/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/herculeshssj_csharp/K19_K32_Cap8_Validacao/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/herculeshssj_csharp/K19_K32_Cap8_Validacao/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/herculeshssj_csharp/K19_K32_Cap8_Validacao/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/herculeshssj_csharp/K19_K32_Cap8_Validacao/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/herculeshssj_csharp/K19_K32_Cap8_Validacao/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/herculeshssj_csharp/K19_K32_Cap8_Validacao/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/herculeshssj_csharp/K19_K32_Cap8_Validacao/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/herculeshssj_csharp/K19_K32_Cap9_Sessao/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/herculeshssj_csharp/K19_K32_Cap9_Sessao/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/herculeshssj_csharp/K19_K32_Cap9_Sessao/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/herculeshssj_csharp/K19_K32_Cap9_Sessao/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/herculeshssj_csharp/K19_K32_Cap9_Sessao/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/herculeshssj_csharp/K19_K32_Cap9_Sessao/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/herculeshssj_csharp/K19_K32_Cap9_Sessao/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/herculeshssj_csharp/K19_K32_Cap9_Sessao/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/herculeshssj_csharp/K19_K32_Cap9_Sessao/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/herculeshssj_csharp/K19_K32_Cap9_Sessao/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/herculeshssj_csharp/K19_K32_Cap9_Sessao/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/herculeshssj_csharp/K19_K32_Cap9_Sessao/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/taylorsmith4546_18-PropertyManager/PropertyManager.Api/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.1/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/taylorsmith4546_18-PropertyManager/PropertyManager.Api/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.1/tools/install.ps1 | install.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'
$projectRoot = $project.Properties.Item('FullPath').Value
$binDirectory... |
PowerShellCorpus/Github/taylorsmith4546_18-PropertyManager/PropertyManager.Api/packages/Newtonsoft.Json.8.0.2/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/taylorsmith4546_18-PropertyManager/PropertyManager.Api/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/taylorsmith4546_18-PropertyManager/PropertyManager.Api/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/stopthatastronaut_boxstrapper/go.ps1 | go.ps1 | <#
Sets up quite a lot of what Jason needs on a new laptop. There's probably a lot more, so this will grow over time.
#>
# chocolatey
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
@(
"git",
"poshgit",
"googlechrome",
"visualstudiocode",
... |
PowerShellCorpus/Github/evaldaseb_PSCodeSamples/Runspace/Runspace-WPF-Uninstall-Application.ps1 | Runspace-WPF-Uninstall-Application.ps1 | $uiHash = [hashtable]::Synchronized(@{})
$newRunspace =[runspacefactory]::CreateRunspace()
$newRunspace.ApartmentState = 'STA'
$newRunspace.ThreadOptions = 'ReuseThread'
$newRunspace.Open()
$newRunspace.SessionStateProxy.SetVariable('uiHash',$uiHash)
$psCmd = [PowerShell]::Create().AddScript({... |
PowerShellCorpus/Github/evaldaseb_PSCodeSamples/AD/AD-NewUser.ps1 | AD-NewUser.ps1 | <#
.NOTES
===========================================================================
Created on: 10/04/2016
Created by: Evaldas Baltrunas
Organization:
Filename: Starters.ps1
===========================================================================
.DESCRIPTION
A description of t... |
PowerShellCorpus/Github/evaldaseb_PSCodeSamples/WMI/WMI-Laptop-BatteryHealth.ps1 | WMI-Laptop-BatteryHealth.ps1 | # Date: 16/07/2015
# Author: Evaldas Baltrunas
$computerName = Get-ADComputer -Filter * -SearchBase 'OU=Windows 7,OU=OUName1,DC=SomeDomainName,DC=com'
$timestamp = Get-Date -Format dd_MM_yyyy_HH_mm
$output = @()
foreach ($computer in $computername.Name) {
$username = $null
$u = $null
$status =... |
PowerShellCorpus/Github/evaldaseb_PSCodeSamples/TS/TS-User-ProfileFix.ps1 | TS-User-ProfileFix.ps1 | Function Set-Owner {
[cmdletbinding(
SupportsShouldProcess = $True
)]
Param (
[parameter(Mandatory=$true,ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)]
[string]$CommunityUser,
[parameter(Mandatory=$true,ValueFromPipeline=$True,ValueFromPipelineByProper... |
PowerShellCorpus/Github/rpjengaard_powershell-tooling/skybrud-tooling/sky-ps-tooling.ps1 | sky-ps-tooling.ps1 | ## DAILY TOOLING ##
# Use this to show the most current logfile content, filtered by the searchstring
Function sky-showloglive {
[CmdletBinding()]
Param(
[string]$searchstring=""
)
# find logfile /Dev/web/App_Data/Logs/???
$rootPath = git rev-parse --show-toplevel
$logPath = "$r... |
PowerShellCorpus/Github/jstiops_VeeamDedupeReport/VeeamDedupeReport.ps1 | VeeamDedupeReport.ps1 | Param (
[decimal]$egridDedup = 2.4,
[int]$verbose = 0)
# Assume ExaGrid gets the above dedup if they don't specify
# Default is basic info; 1 lists each backup file with data size (what Veeam pulled), backup size (what was written to repo)
# 2 is same as 1 but lists only backup files in a csv form
i... |
PowerShellCorpus/Github/groundlover_boxplay/box.ps1 | box.ps1 | # Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
#$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
# Basic setup
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesF... |
PowerShellCorpus/Github/StartAutomating_Winformal/Set-Property.ps1 | Set-Property.ps1 | function Set-Property
{
<#
.Synopsis
Sets properties on an object or subscribes to events
.Description
Set-Property is used by each parameter in the automatically generated
controls in Winformal.
.Parameter InputObject
The object to set properties on
.Parame... |
PowerShellCorpus/Github/StartAutomating_Winformal/WinformsCodeGenerationRules.ps1 | WinformsCodeGenerationRules.ps1 | # Editing this file is not recommended.
$BaseInteractivityCodeChange = {
# Start with the basics, name the command
$Verb = "New"
$Noun = $BaseType.Name
# Give it a little bit of help
$help.Synopsis = "Creates a new $($BaseType.FullName)"
$help.Description = "Creates a new $($BaseType... |
PowerShellCorpus/Github/StartAutomating_Winformal/Add-CodeGenerationRule.ps1 | Add-CodeGenerationRule.ps1 | function Add-CodeGenerationRule
{
<#
.Synopsis
Adds a new rule for the code generation engine.
.Description
Adds a new rule for the code generation engine
.Parameter Type
The base type to apply the rule to. This type or any derivived types will apply the rule.
.Para... |
PowerShellCorpus/Github/StartAutomating_Winformal/Add-EventHandler.ps1 | Add-EventHandler.ps1 | function Add-EventHandler {
<#
.Synopsis
Adds an event handler to an object
.Description
Adds an event handler to an object. If the object has a
resource dictionary, it will add an eventhandlers
hashtable to that object and it will store the event handler,
... |
PowerShellCorpus/Github/StartAutomating_Winformal/ConvertFrom-TypeToScriptCmdlet.ps1 | ConvertFrom-TypeToScriptCmdlet.ps1 | function ConvertFrom-TypeToScriptCmdlet
{
<#
.Synopsis
Converts .NET Types into Windows PowerShell Script Cmdlets
according to a number of rules. that have been added with Add-CodeGeneration rule
.Description
Converts .NET Types into Windows PowerShell Script Cmdlets
... |
PowerShellCorpus/Github/StartAutomating_Winformal/ConvertTo-ParameterMetaData.ps1 | ConvertTo-ParameterMetaData.ps1 | function ConvertTo-ParameterMetaData {
<#
.Synopsis
Turns reflection information on a type into parameter metadata
.Description
Turns reflection information on a type into parameter metadata.
Parameter metadata can be used to rapidly generate functions.
The s... |
PowerShellCorpus/Github/StartAutomating_Winformal/GeneratedControls/System.Design.ps1 | System.Design.ps1 | function New-ByteViewer {
<#
.Description
Creates a new System.ComponentModel.Design.ByteViewer
.Synopsis
Creates a new System.ComponentModel.Design.ByteViewer
.Example
New-ByteViewer
#>
param(
${LayoutSettings},
[S... |
PowerShellCorpus/Github/StartAutomating_Winformal/GeneratedControls/System.Windows.Forms.ps1 | System.Windows.Forms.ps1 | function New-Control {
<#
.Description
Creates a new System.Windows.Forms.Control
.Synopsis
Creates a new System.Windows.Forms.Control
.Example
New-Control
#>
param(
[System.String]
${AccessibleDefaultActionDescriptio... |
PowerShellCorpus/Github/chetan-pachpande_W3SchoolMvc_demo/MvcDemo/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/chetan-pachpande_W3SchoolMvc_demo/MvcDemo/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/chetan-pachpande_W3SchoolMvc_demo/MvcDemo/packages/jQuery.1.7.1.1/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/chetan-pachpande_W3SchoolMvc_demo/MvcDemo/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/chetan-pachpande_W3SchoolMvc_demo/MvcDemo/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/iReplug_PowerShellScripts/EnableWindowsFeatures.ps1 | EnableWindowsFeatures.ps1 |
<#
.SYNOPSIS
Installs the required Roles and Features on Windows Machines
Tested on:
(*) Windows Server 2008
(*) Windows 2008 R2
(*) Windows 8
(*) Windows 8.1
(*) Windows 2012
(*) Windows 2012 R2
.DESCRIPTION
This function will install the Roles and Features on Windo... |
PowerShellCorpus/Github/iReplug_PowerShellScripts/RestartService.ps1 | RestartService.ps1 |
"Task-1:"
"Stopping SolutionBuilder Core..."
Stop-Service "SolutionBuilder Core Service"
"Task-2:"
"Restarting SolutionBuilder Core Service..."
Restart-Service -DisplayName "SolutionBuilder Core Service"
|
PowerShellCorpus/Github/iReplug_PowerShellScripts/FirewallExceptions.ps1 | FirewallExceptions.ps1 |
<#
.SYNOPSIS
Adds Firewall exceptions to the Windows Firewall.
.DESCRIPTION
This function will add Solution Builder and MS SQL firewall exceptions to the built in Windows Firewall
Step-1: Checks whethr the firewall rulls exists and if they dont then adds them to the firewall
.EXA... |
PowerShellCorpus/Github/robinLin1991_ProgressBarOnRactiveJs/ProgressBar/packages/jQuery.2.2.4/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/robinLin1991_ProgressBarOnRactiveJs/ProgressBar/packages/jQuery.2.2.4/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/robinLin1991_ProgressBarOnRactiveJs/ProgressBar/packages/jQuery.2.2.4/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/quamotion_acquaint/Login/Login.Tests.ps1 | Login.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
Describe "Login" {
It "Logs in correctly" {
$true | Should Be $true
}
It "Shows Jacqueline in the list of contacts" {
$true | Shou... |
PowerShellCorpus/Github/quamotion_acquaint/Login/Login.ps1 | Login.ps1 | function Login {
}
|
PowerShellCorpus/Github/quamotion_acquaint/LaunchApp/LaunchApp.Tests.ps1 | LaunchApp.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
Describe "LaunchApp" {
It "does something useful" {
$true | Should Be $false
}
}
|
PowerShellCorpus/Github/quamotion_acquaint/LaunchApp/LaunchApp.ps1 | LaunchApp.ps1 | function LaunchApp {
}
|
PowerShellCorpus/Github/ashdar_ssis-demo/FauxMeter/TestScriptsPS/Reset-Imports.ps1 | Reset-Imports.ps1 | <#
.SYNOPSIS
This empties out the import table and moves the CSVs from the "archive" folder to the "incoming" folder.
#>
[string] $IncomingDirectory = 'C:\Users\dstrait.CORP\Documents\Visual Studio 2012\Projects\FauxMeter\IncomingData'
[string] $ArchiveDirectory = 'C:\Users\dstrait.CORP\Documents\Visual Studio 2... |
PowerShellCorpus/Github/ashdar_ssis-demo/FauxMeter/TestScriptsPS/Create-SimpleReading.ps1 | Create-SimpleReading.ps1 | <#
.SYNOPSIS
Create data files for importation by my super-experimental/research project "FauxMeter"
#>
param (
[string] $IncomingDirectory = 'C:\Users\dstrait.CORP\Documents\Visual Studio 2012\Projects\FauxMeter\IncomingData',
[string] $ArchiveDirectory = 'C:\Users\dstrait.CORP\Documents\Visual Studi... |
PowerShellCorpus/Github/ashdar_ssis-demo/FauxMeter/TestScriptsPS/Get-ImportsReport.ps1 | Get-ImportsReport.ps1 | param (
[string] $IncomingDirectory = 'C:\Users\dstrait.CORP\Documents\Visual Studio 2012\Projects\FauxMeter\IncomingData',
[string] $ArchiveDirectory = 'C:\Users\dstrait.CORP\Documents\Visual Studio 2012\Projects\FauxMeter\IncomingData\Archive'
)
$IncomingSize = @(ls -path $IncomingDirectory -filter ... |
PowerShellCorpus/Github/OPSTest_E2E_Provision_2017_3_21_15_35_3/.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/camalot_psievm/psievm/.appveyor/appveyor.after-build.ps1 | appveyor.after-build.ps1 | |
PowerShellCorpus/Github/camalot_psievm/psievm/.appveyor/appveyor.after-deployment.ps1 | appveyor.after-deployment.ps1 | Import-Module "$env:APPVEYOR_BUILD_FOLDER\psievm\.appveyor\modules\AppVeyor-Helper.psm1" -Verbose -Force;
if($env:PUSHBULLET_API_TOKEN -and $env:CI_DEPLOY_PUSHBULLET -eq $true) {
$timestamp = (Get-Date).ToUniversalTime().ToString("MM/dd/yyyy hh:mm:ss");
# this allows for multiple tokens, just separate with a c... |
PowerShellCorpus/Github/camalot_psievm/psievm/.appveyor/appveyor.install.ps1 | appveyor.install.ps1 | choco install powershell -y -version 4.0.20141001;
$oneget = (Join-Path -Path $env:APPVEYOR_BUILD_FOLDER -ChildPath "oneget");
if(!(Test-Path -Path $oneget)) {
New-Item -Path $oneget -ItemType Directory | Out-Null;
}
$pmn = (Join-Path -Path $oneget -ChildPath "PackageManagement.0.1.0.29815.nupkg");
$webclient ... |
PowerShellCorpus/Github/camalot_psievm/psievm/.appveyor/appveyor.run-tests.ps1 | appveyor.run-tests.ps1 | if(-not (Get-Module -ListAvailable -Name "pester")) {
choco install pester -y -force | Write-Host;
}
Import-Module "pester" -Verbose -Force;
#Import-Module "PSScriptAnalyzer" -Verbose -Force;
$cdir = $PWD;
if(-not $env:CI_BUILD_VERSION) {
throw "Unable to find a value in CI_BUILD_VERSION";
}
$binDir ... |
PowerShellCorpus/Github/camalot_psievm/psievm/.appveyor/appveyor.before-deployment.ps1 | appveyor.before-deployment.ps1 | <#
#
#
#>
$commitMessageRegex = "^\[deploy\:(pre-release|draft|release)\]$";
# Must come from master branch.
# Must not have a PULL Request Number
# Must match regex
if ( !$env:APPVEYOR_PULL_REQUEST_NUMBER -and ($env:APPVEYOR_REPO_BRANCH -eq "master") -and ($env:APPVEYOR_REPO_COMMIT_MESSAGE -match $com... |
PowerShellCorpus/Github/camalot_psievm/psievm/.appveyor/appveyor.before-build.ps1 | appveyor.before-build.ps1 | Import-Module "$env:APPVEYOR_BUILD_FOLDER\psievm\.appveyor\modules\AppVeyor-Helper.psm1" -Verbose -Force;
$env:CI_BUILD_DATE = ((Get-Date).ToUniversalTime().ToString("MM-dd-yyyy"));
$env:CI_BUILD_TIME = ((Get-Date).ToUniversalTime().ToString("hh:mm:ss"));
Set-BuildVersion;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.