full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/EndersonSalas_Challenge-Rock-Paper-Scissors/Rock-Paper-Scissors/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/EndersonSalas_Challenge-Rock-Paper-Scissors/Rock-Paper-Scissors/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/EndersonSalas_Challenge-Rock-Paper-Scissors/Rock-Paper-Scissors/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/EndersonSalas_Challenge-Rock-Paper-Scissors/Rock-Paper-Scissors/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/EndersonSalas_Challenge-Rock-Paper-Scissors/Rock-Paper-Scissors/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/EndersonSalas_Challenge-Rock-Paper-Scissors/Rock-Paper-Scissors/packages/Microsoft.Bcl.Build.1.0.14/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # This is the MSBuild targets file to add $targetsFile = [System.IO.Path]::Combine($toolsPath, $package.Id + '.targets') # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=ne...
PowerShellCorpus/Github/EndersonSalas_Challenge-Rock-Paper-Scissors/Rock-Paper-Scissors/packages/Microsoft.Bcl.Build.1.0.14/tools/Uninstall.ps1
Uninstall.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project # Normalize project path before calli...
PowerShellCorpus/Github/EndersonSalas_Challenge-Rock-Paper-Scissors/Rock-Paper-Scissors/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/EndersonSalas_Challenge-Rock-Paper-Scissors/Rock-Paper-Scissors/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/EndersonSalas_Challenge-Rock-Paper-Scissors/Rock-Paper-Scissors/packages/Newtonsoft.Json.6.0.3/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) # open json.net splash page on package install # don't open if json.net is installed as a dependency try { $url = "http://james.newtonking.com/json" $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) if ($dte2.ActiveWindow.Caption -eq "Package Manager Con...
PowerShellCorpus/Github/BizkitX_Powershell/Get-LoggedOn.ps1
Get-LoggedOn.ps1
$comp = read-host "Please enter computer name" $userID = (Get-WmiObject -Class win32_computersystem -ComputerName $comp | select username | ft -hide | Out-String) $final = $userId.TrimStart().Trim("HMMG\").TrimEnd() if (Test-Connection $comp -quiet -Count 2) { Write-Host -ForegroundColor Green "Computer $comp i...
PowerShellCorpus/Github/BizkitX_Powershell/Get-UserInfo.ps1
Get-UserInfo.ps1
$user = Read-Host "Enter user's first and last name" Get-ADUser -Filter {Name -eq $user} -Properties * | select Name, @{Expression={$_.samaccountname};Label="User ID"}, Description, Office, TelephoneNumber, EmailAddress
PowerShellCorpus/Github/BizkitX_Powershell/Get-MappedDrives.ps1
Get-MappedDrives.ps1
$comp = Read-Host "Enter computername" gwmi -Class win32_mappedlogicaldisk -ComputerName $comp | select Name, ProviderName | Format-Table -AutoSize
PowerShellCorpus/Github/BizkitX_Powershell/Get-VideoCardInfo.ps1
Get-VideoCardInfo.ps1
$comp = Read-Host "Enter computername" gwmi -Class cim_videocontroller -ComputerName $comp | select name,driverversion
PowerShellCorpus/Github/BizkitX_Powershell/Get-RAM.ps1
Get-RAM.ps1
$name = Read-Host "Enter computername" gwmi -class Win32_PhysicalMemory -ComputerName $name | Measure-Object -Property capacity -Sum | select @{N="Total Physical Ram"; E={[math]::round(($_.Sum / 1GB),2)}} | Format-Table -AutoSize
PowerShellCorpus/Github/BizkitX_Powershell/Get-OSinstalldate.ps1
Get-OSinstalldate.ps1
$comp = Read-Host "Enter computername" ([WMI]'').ConvertToDateTime((Get-WmiObject Win32_OperatingSystem -ComputerName $comp).InstallDate)
PowerShellCorpus/Github/BizkitX_Powershell/GetComp.ps1
GetComp.ps1
$last = Read-Host "Enter the users last name" Get-ADComputer -Filter " Description -like '*$last*' " -Properties * | select Name, Description | Format-Table -AutoSize
PowerShellCorpus/Github/OPSTest_E2E_Provision_2017_3_23_9_33_16/.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/Phil-Factor_TextAdventureWorks/TextAdventureWorksTester.ps1
TextAdventureWorksTester.ps1
#set the directory in which your database should go. $TextFilePath='PyPathToTextAdventureworks' #the full path of the text database if (!(Test-Path $TextFilePath)) #check that the directory exists! { Write-Error "Can't find '$($TextFilePath)'. Sorry, can't proceed because of this" exit } try ...
PowerShellCorpus/Github/mpetersonRS_RightScalePSSysConfig/PSSysConfig.ps1
PSSysConfig.ps1
param ( [string]$bucket = "https://s3.amazonaws.com/JesB-East", #S3 Bucket with install & config files [string]$manifest = "manifest.xml", #XML file with install & config content [string]$tempFolder = "C:\Temp\Install-Apps", #Temp location to dowload files into [string]$logFile = "C:\RSTools\Log...
PowerShellCorpus/Github/niallstack_PowerShellScripts/ResetChromeCacheAndCookies.ps1
ResetChromeCacheAndCookies.ps1
#Get Username dir C:\Users | select Name | Export-Csv -Path C:\users\$env:USERNAME\users.csv -NoTypeInformation $list=Test-Path C:\users\$env:USERNAME\users.csv #Save Paths in folders variables and delete files in them if ($list) { Import-CSV -Path C:\users\$env:USERNAME\users.csv -Header Name | foreach { ...
PowerShellCorpus/Github/niallstack_PowerShellScripts/RemoveTemp.ps1
RemoveTemp.ps1
#Save all the file paths in tempfolders variable $tempfolders = @( "C:\Windows\Temp\*", "C:\Windows\Prefetch\*", "C:\Documents and Settings\*\Local Settings\temp\*", "C:\Users\*\Appdata\Local\Temp\*") #Remove the files inside the folders Remove-Item $tempfolders -force -recurse
PowerShellCorpus/Github/elovelan_nugetpackages/cntlm/tools/chocolateyInstall.ps1
chocolateyInstall.ps1
$packageName = 'cntlm' $installerType = 'EXE' $url = 'http://downloads.sourceforge.net/project/cntlm/cntlm/cntlm%200.92.3/cntlm-0.92.3-setup.exe' $url64 = $url $silentArgs = '/VERYSILENT' $validExitCodes = @(0) Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url" "$url64" -validExitCo...
PowerShellCorpus/Github/imseandavis_SQL/PowerShell/Test_SQL_Transaction_Connectivity.ps1
Test_SQL_Transaction_Connectivity.ps1
Try { $transactionScope = New-Object System.Transactions.TransactionScope([System.Transactions.TransactionScopeOption]::RequiresNew) $connection = New-Object System.Data.SqlClient.SqlConnection $Server = "DESTSERVER" $ConnectionString = "Data Source=$server;Initial Catalog=vcac6;Integrated Security=True" $connec...
PowerShellCorpus/Github/imseandavis_SQL/PowerShell/Test_SQL_Transaction_Connectivity_v2.ps1
Test_SQL_Transaction_Connectivity_v2.ps1
param( [String]$Server="localhost", [String]$Database="vCAC6", [String]$User="", [String]$Password="", [Int32]$Attempts=1 ) $ConnectionString = "Data Source=$server;Initial Catalog=master;" if ([String]::IsNullOrEmpty($User)) { $ConnectionString = $ConnectionString + "Integrated Security=True;" } else ...
PowerShellCorpus/Github/kompanivik_first_project/UniTest/Communication/packages/Newtonsoft.Json.7.0.1/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/kompanivik_first_project/UniTest/Communication/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/kompanivik_first_project/UniTest/Communication/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/kompanivik_first_project/UniTest/Communication/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/kompanivik_first_project/UniTest/Communication/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/kompanivik_first_project/UniTest/Communication/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/kompanivik_first_project/UniTest/Communication/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/kompanivik_first_project/UniTest/Communication/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/kompanivik_first_project/UniTest/Communication/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/kompanivik_first_project/UniTest/Communication/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/kompanivik_first_project/UniTest/Communication/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/kompanivik_first_project/UniTest/Communication/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/computeronix_docker-storj-base/Microsoft.PowerShell_profile.ps1
Microsoft.PowerShell_profile.ps1
Get-Content C:\motd.txt Write-Host '==============================================' Write-Host ' Storj Lab | Base Image' Write-Host '' Write-Host ('Windows OS Name: {0}' -f ((Get-WmiObject Win32_OperatingSystem).Name.Split('|')[0])) Write-Host ('Windows OS Version: {0}' -f (Get-CimInstance Win32_Operating...
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 05/SimpleApp/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 05/SimpleApp/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 05/SimpleApp/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 15/Users/packages/jQuery.1.9.0/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 15/Users/packages/jQuery.1.9.0/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 15/Users/packages/jQuery.1.9.0/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 15/Users/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 15/Users/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 04/SimpleApp/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 04/SimpleApp/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 04/SimpleApp/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 09/ConfigFiles/packages/jQuery.1.9.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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 09/ConfigFiles/packages/jQuery.1.9.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 $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 09/ConfigFiles/packages/jQuery.1.9.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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 07/Mobile/packages/jQuery.1.9.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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 07/Mobile/packages/jQuery.1.9.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 $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 07/Mobile/packages/jQuery.1.9.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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 02/SimpleApp/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 02/SimpleApp/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 02/SimpleApp/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 06/RequestFlow/packages/jQuery.1.9.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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 06/RequestFlow/packages/jQuery.1.9.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 $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 06/RequestFlow/packages/jQuery.1.9.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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 08/Mobile/packages/jQuery.1.9.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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 08/Mobile/packages/jQuery.1.9.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 $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 08/Mobile/packages/jQuery.1.9.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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 08/Mobile/packages/Glimpse.Mvc5.1.5.2/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) Unregister-GlimpseExtension $package
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 08/Mobile/packages/Glimpse.Mvc5.1.5.2/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Register-GlimpseExtension $package $DTE
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 08/Mobile/packages/Glimpse.1.8.1/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package) Import-Module (Join-Path $toolsPath glimpse.psm1)
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 08/Mobile/packages/Glimpse.1.8.1/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) Unregister-GlimpseExtension $package
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 08/Mobile/packages/Glimpse.1.8.1/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Register-GlimpseExtension $package $DTE
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 08/Mobile/packages/Glimpse.AspNet.1.7.0/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) Unregister-GlimpseExtension $package
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 08/Mobile/packages/Glimpse.AspNet.1.7.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Register-GlimpseExtension $package $DTE
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 11/StateData/packages/jQuery.1.9.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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 11/StateData/packages/jQuery.1.9.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 $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 11/StateData/packages/jQuery.1.9.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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 11/StateData/packages/Glimpse.Mvc5.1.5.3/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) Unregister-GlimpseExtension $package
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 11/StateData/packages/Glimpse.Mvc5.1.5.3/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Register-GlimpseExtension $package $DTE
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 11/StateData/packages/Microsoft.AspNet.Providers.2.0.0/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-$projectNa...
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 11/StateData/packages/EntityFramework.6.0.2/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 11/StateData/packages/EntityFramework.6.0.2/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 11/StateData/packages/Glimpse.1.8.3/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package) Import-Module (Join-Path $toolsPath glimpse.psm1)
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 11/StateData/packages/Glimpse.1.8.3/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) Unregister-GlimpseExtension $package
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 11/StateData/packages/Glimpse.1.8.3/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Register-GlimpseExtension $package $DTE
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 11/StateData/packages/Glimpse.AspNet.1.8.0/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) Unregister-GlimpseExtension $package
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 11/StateData/packages/Glimpse.AspNet.1.8.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Register-GlimpseExtension $package $DTE
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 13/Users/packages/jQuery.1.9.0/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 13/Users/packages/jQuery.1.9.0/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 13/Users/packages/jQuery.1.9.0/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 13/Users/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 13/Users/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 12/ContentCache/packages/jQuery.1.9.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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 12/ContentCache/packages/jQuery.1.9.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 $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 12/ContentCache/packages/jQuery.1.9.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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 10/StateData/packages/jQuery.1.9.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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 10/StateData/packages/jQuery.1.9.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 $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 10/StateData/packages/jQuery.1.9.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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 10/StateData/packages/Microsoft.AspNet.Providers.2.0.0/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-$projectNa...
PowerShellCorpus/Github/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 10/StateData/packages/EntityFramework.6.0.2/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 10/StateData/packages/EntityFramework.6.0.2/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 14/Users/packages/jQuery.1.9.0/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/kinshines_Pro.ASP.NET.MVC.5.Platform/Chapter 14/Users/packages/jQuery.1.9.0/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...