full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/Top10List5.ps1 | Top10List5.ps1 | $homedir = "E:\Retina Metrics"
cd $homedir
#Import Retina CSV
. ".\Scripts\lib\ImportCSV.ps1"
#Top 10 Workstations
function Top10WS
{
$WSCATI | group dnsname | Sort-Object count -descending | select -property count,name | select-object -first 10 | ft -autosize
}
#Top 10 Servers
function Top10SRV
{
$... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/MonthlyReports.ps1 | MonthlyReports.ps1 | $homedir = "E:\Retina Metrics"
cd $homedir
$scripts = "$homedir\scripts"
$z = ls "$homedir\MetricReports"
$oldICVA = Read-Host "Enter most recent past-due ICVA (in YYYY-A-#### format)"
if ($z.Length -ge 3) {mv .\MetricReports\*.* .\MetricReports\tmp}
# COMPLIE ALL CSVs
& "$scripts\CompileCSV.ps1"
. "$Script... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/Top10List4.ps1 | Top10List4.ps1 | $homedir = "E:\Retina Metrics"
cd $homedir
#Import Retina CSV
. "$Scripts\lib\ImportCSV.ps1"
#Top 10 Workstations
function Top10WS
{
$WSCATI | group dnsname | Sort-Object count -descending | select -property count,name | select-object -first 10 | ft -autosize
}
#Top 10 Servers
function Top10SRV
{
$S... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/ICVAStatusBreakout.ps1 | ICVAStatusBreakout.ps1 | $homedir = "E:\Retina Metrics"
cd $homedir
#Import Retina CSV
. "$Scripts\lib\ImportCSV.ps1"
#Breakout Systems
$PMO = ./scripts/lib/pmo.ps1
$SRV = ./scripts/lib/srv.ps1
$WS = ./scripts/lib/ws.ps1
#Get unique dns names
$PMOunique = $PMO | where-object {$_.IAV -ne "N/A"} | where-object {$_.IAV -notlike "*-... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/ComputerSearch.ps1 | ComputerSearch.ps1 | $computer = read-host "Enter Computername"
write-host "ICVA RESULTS"
$icvaresults = $data | where-object {$_.dnsname -like "*$computer*"} | where-object {$_.IAV -ne "N/A"} | where-object {$_.IAV -notlike "*-T-*"} | where-object {$_.IAV -notlike "*-B-*"} | select IAV, Name, SevCode | sort IAV | fl
write-host $icvares... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/CreateRawCSV.ps1 | CreateRawCSV.ps1 | Function Get-FileName($initialDirectory)
{
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") |
Out-Null
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog
$OpenFileDialog.initialDirectory = $initialDirectory
$openFileDialog.filter = "All files (*.*)| *.*"
$OpenFileDialog.S... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/PMO_Breakout_CSV.ps1 | PMO_Breakout_CSV.ps1 | $homedir = "E:\Retina Metrics"
$scripts = "$homedir\scripts"
cd $homedir
#Import Retina CSV
. "$Scripts\lib\ImportCSV.ps1"
#Get Numbers
. "E:\Retina Metrics\Scripts\lib\pmobreakout.ps1"
#Count
$list = gc ./scripts/lib/pmobreakout.ps1 | foreach {$_.split()[0]} | sort
[array]$pmoname = @()
[array]$critlis... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/ICVAStatus.ps1 | ICVAStatus.ps1 | $homedir = "E:\Retina Metrics"
cd $homedir
#powershell -sta
#File Selection Popup
Function Get-FileName($initialDirectory)
{
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") |
Out-Null
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog
$OpenFileDialog.initialDirectory... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/PMO_Breakout_HTML.ps1 | PMO_Breakout_HTML.ps1 | $homedir = "E:\Retina Metrics"
$scripts = "$homedir\scripts"
cd $homedir
#File Selection Popup
#powershell -sta
Function Get-FileName($initialDirectory)
{
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") |
Out-Null
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog
... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/password fun.ps1 | password fun.ps1 | #Get number of passwords less than 12 characters long
$passwordCSV | where-object {$_.password -ne "* empty *"} |where-object {$_.password -match '^.{1,11}$'} | measure
#Get number of passwords less than 12 characters long and set to never expire
$passwordCSV | where-object {$_.password -ne "* empty *"} |where-obj... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/PMO_Breakout_XLS.ps1 | PMO_Breakout_XLS.ps1 | #$homedir = "E:\Retina Metrics"
#$scripts = "$homedir\scripts"
#cd $homedir
#File Selection Popup
#powershell -sta
Function Get-FileName($initialDirectory)
{
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") |
Out-Null
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDial... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/RetinaMetricsHistorical5.ps1 | RetinaMetricsHistorical5.ps1 | $homedir = "E:\Retina Metrics"
cd $homedir
function Scan {
$arrImport = @(import-csv "$lists")
$arrImport = $arrImport | where-object {($_.IAV -like "*-A-*") -or ($_.IAV -eq 'N/A' -and $_.Name -notmatch "Zero-Day" -and $_.FixInformation -notmatch "patch" -and $_.FixInformation -notmatch "version")}
#... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/Export.ps1 | Export.ps1 | $homedir = "E:\Retina Metrics"
cd $homedir
$dat = get-date -uformat "%m%d%Y"
mkdir -f $homedir\MetricReports\Breakout
#if ((ls $homedir\MetricReports\Breakout\*.csv).count -gt 1) {mkdir -f $homedir\MetricReports\Breakout\$dat; mv $homedir\MetricReports\Breakout\*.csv $homedir\MetricReports\Breakout\$dat} else {ec... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/OSCount2.ps1 | OSCount2.ps1 | $homedir = "E:\Retina Metrics"
cd $homedir
#File Selection Popup
Function Get-FileName($initialDirectory)
{
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") |
Out-Null
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog
$OpenFileDialog.initialDirectory = $initialDirecto... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/6-Mnth-Historical.ps1 | 6-Mnth-Historical.ps1 | $homedir = "E:\Retina Metrics"
cd $homedir
function Scan {
$arrImport = @(import-csv "$lists")
$arrImport = $arrImport | where-object {($_.IAV -like "*-A-*") -or ($_.IAV -eq 'N/A' -and $_.Name -notmatch "Zero-Day" -and $_.FixInformation -notmatch "patch" -and $_.FixInformation -notmatch "version")}
#Se... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/ICVA_Incident.ps1 | ICVA_Incident.ps1 | $homedir = "E:\Retina Metrics"
cd $homedir
$lastcsv = ls -recurse -include IAVBreakout* | select LastWriteTime, FullName | sort LastWriteTime -descending | select -expand FullName | select -index 0
$prevcsv = ls -recurse -include IAVBreakout* | select LastWriteTime, FullName | sort LastWriteTime -descending | sele... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/test-top10ICVAnames.ps1 | test-top10ICVAnames.ps1 | $homedir = "E:\Retina Metrics"
cd $homedir
#powershell -sta
#File Selection Popup
Function Get-FileName($initialDirectory)
{
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") |
Out-Null
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog
$OpenFileDialog.initialDirectory... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/ICVA_Tracker.ps1 | ICVA_Tracker.ps1 | date
$homedir = "E:\Retina Metrics"
cd $homedir
function ScanCurrent {
$arrImport = @(import-csv ".\RetinaRAWData\$filename1")
$TotalIP = ($arrImport | select IP -unique | measure-object).count
$arrImport = $arrImport | where-object {$_.IAV -ne "N/A"} | where-object {$_.IAV -notlike "*-T-*"} | where... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/CompileCSV.ps1 | CompileCSV.ps1 | $a = new-object -comobject wscript.shell
$b = $a.popup("IMPORTANT! If you are compiling multipe csv files, make sure they are all in a folder together before continuing. There should not be any other csv files in the folder except the ones used to complete the full class B scan. Have a great Air Force Day! ",0,"Inform... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/XML Audit Search/AuditSearch.ps1 | AuditSearch.ps1 | clear
$csvloc = ls "\\Path\1-Retina Data\Audit Lookup" | sort creationtime -descending | select -first 1 | select -expand FullName
$dat = get-date -uformat "%m%d%Y"
$ids = read-host "Enter the ID"
write-host 'Here are your results.'
import-csv $csvloc | where-object {$_.id -eq "$ids"}
write-host 'YOUR WELCOME!!... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/XML Audit Search/AuditExport.ps1 | AuditExport.ps1 | # Need to run as Admin
$auditloc = "E:\eEye Retina\Database"
$exportloc = "E:\Retina Metrics\Scripts\Audit Export"
$dat = get-date -uformat "%m%d%Y"
cd $auditloc
[xml]$a = gc $auditloc\audits.xml
$id = $a.selectnodes("/audits/rth")
$a = (clear-variable [xml]$a)
$results = foreach ($i in $id) {$i.selectsingl... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/lib/nonwin.ps1 | nonwin.ps1 | # $Data | where-object {$_.OS -notmatch '^Windows.*' -and $_.OS -notmatch '^Microsoft.*'}
$pmolist = @(gc 'E:\Retina Metrics\Scripts\lib\pmolist.txt')
$Data | where-object {$pmolist -notcontains $_.IP} | where-object {$_.OS -notmatch '^Windows.*' -and $_.OS -notmatch '^Microsoft.*'} |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/lib/ws.ps1 | ws.ps1 | # $Data | where-object {$_.OS -like "*XP*" -or $_.OS -like "*indows 7*"} | where-object {$_.DNSName -notmatch 'regex'}
$pmolist = @(gc 'E:\Retina Metrics\Scripts\lib\pmolist.txt')
$Data | where-object {$pmolist -notcontains $_.IP} | where-object {$_.OS -like "*XP*" -or $_.OS -like "*indows 7*"}
|
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/lib/srv.ps1 | srv.ps1 | # $Data | where-object {$_.OS -like "*Windows Server*" -and $_.DNSName -notmatch '.*w+k+s.*'} | where-object {$_.DNSName -notmatch 'regex'}
$pmolist = @(gc 'E:\Retina Metrics\Scripts\lib\pmolist.txt')
$Data | where-object {$pmolist -notcontains $_.IP} | where-object {$_.OS -like "*Windows Server*" -and $_.DNSName -n... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/lib/ImportCSV.ps1 | ImportCSV.ps1 | $homedir = "E:\Retina Metrics"
# MESSAGE BOX FOR FILE SELECTION
Function MsgBox {
$msg = new-object -comobject wscript.shell
$message = $msg.popup("Select the latest Retina CSV File",0,"Retain Reports Generation",1)
if ($message -gt 1) {exit} else {echo "Well...what are you waiting for???"}
}
Function Get-Fi... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/lib/pmo.ps1 | pmo.ps1 | # $Data | where-object {$_.DNSName -match '[a-zA-Z]+[1-9][0-9].*|^[a-zA-Z]*$'} | where-object {$_.DNSName -notmatch '.*[r][t][r][0-9].*' -and $_.DNSName -ne '' -and $_.DNSName -ne 'Unknown' -and $_.DNSName -ne 'AF'}
$pmolist = @(gc 'E:\Retina Metrics\Scripts\lib\pmolist.txt')
$Data | where-object {$pmolist -contains ... |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Retina/Retina/lib/pmobreakout.ps1 | pmobreakout.ps1 | |
PowerShellCorpus/Github/zabelsa01_scripts/powershell/Daily Check/SystemCheck.ps1 | SystemCheck.ps1 | #SETTING VARAIABLES
echo "ENTER YOUR ADMIN ACCOUNT"
echo "************************"
$cred = Get-Credential
$logPath = "\\path\dailycheck\scans"
$currDate = get-date -format MMMMdd
$SYMANTEC = "server1"
$LUMENSION = "server2"
$INTRUST = "server3"
$RETINA1 = "server4"
$RETINA2 = "server5"
$RETINA3 = "server6"... |
PowerShellCorpus/Github/OPSTest_E2E_Provision_1486130740404/.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/OPS-E2E-PPE_E2E_NewRepo_2017_4_13_24_5_19/.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/urskog84_CiscoISE/Private/Get-Headers.ps1 | Get-Headers.ps1 | Function Get-Headers{
Param(
[Parameter(Mandatory = $true,Position = 0,HelpMessage = 'Credentials')]
[ValidateNotNullorEmpty()]
[System.Management.Automation.PSCredential]$Credential,
[Parameter(Mandatory=$true,Position = 1, HelpMessage = 'AcceptKey')]
[String] $Accept
)
Process {
... |
PowerShellCorpus/Github/urskog84_CiscoISE/Public/Get-CiscoISE-EndpointIdentityGroups.ps1 | Get-CiscoISE-EndpointIdentityGroups.ps1 | .SYNOPSIS
function Get-CiscoISE-EndpointIdentityGroups {
[OutputType([system.object[]])]
[cmdletbinding()]
param(
[Parameter(Mandatory = $true, HelpMessage = 'ISE server')]
[string]$ISEserver = (Read-Host -Prompt 'Cisco Identity Services Engine Hostname'),
[Parameter(Valu... |
PowerShellCorpus/Github/urskog84_CiscoISE/Public/Get-CiscoISE-InternalUsers.ps1 | Get-CiscoISE-InternalUsers.ps1 | function Get-CiscoISE-InternalUsers {
[OutputType([system.object[]])]
[cmdletbinding()]
param(
[Parameter(Mandatory = $true, HelpMessage = 'ISE server')]
[string]$ISEserver = (Read-Host -Prompt 'Cisco Identity Services Engine Hostname'),
[Parameter(ValueFromPipeline)]
... |
PowerShellCorpus/Github/urskog84_CiscoISE/Public/Get-CiscoISE-Identitygroup.ps1 | Get-CiscoISE-Identitygroup.ps1 | function Get-CiscoISE-Identitygroup {
[OutputType([system.object[]])]
[cmdletbinding()]
param(
[Parameter(Mandatory = $true, HelpMessage = 'ISE server')]
[string]$ISEserver = (Read-Host -Prompt 'Cisco Identity Services Engine Hostname'),
[Parameter(ValueFromPipeline)]
... |
PowerShellCorpus/Github/urskog84_CiscoISE/Public/Get-CiscoISE-Endpoints.ps1 | Get-CiscoISE-Endpoints.ps1 | function Get-CiscoISE-Endpoints {
[OutputType([system.object[]])]
[cmdletbinding()]
param(
[Parameter(Mandatory = $true, HelpMessage = 'ISE server')]
[string]$ISEserver = (Read-Host -Prompt 'Cisco Identity Services Engine Hostname'),
[Parameter(ValueFromPipeline)]
[... |
PowerShellCorpus/Github/urskog84_CiscoISE/Public/Get-CiscoISE-Portals.ps1 | Get-CiscoISE-Portals.ps1 | function Get-CiscoISE-Portals {
[OutputType([system.object[]])]
[cmdletbinding()]
param(
[Parameter(Mandatory = $true, HelpMessage = 'ISE server')]
[string]$ISEserver = (Read-Host -Prompt 'Cisco Identity Services Engine Hostname'),
[Parameter(ValueFromPipeline)]
[in... |
PowerShellCorpus/Github/urskog84_CiscoISE/test/CiscoISE.Tests.ps1 | CiscoISE.Tests.ps1 | $ModuleManifestName = 'CiscoISE.psd1'
$ModuleManifestPath = "$PSScriptRoot\..\$ModuleManifestName"
Describe 'Module Manifest Tests' {
It 'Passes Test-ModuleManifest' {
Test-ModuleManifest -Path $ModuleManifestPath
$? | Should Be $true
}
}
$crdISE = Get-Credential
Remove-Module ... |
PowerShellCorpus/Github/Xainey_DSCTextfile/psakeBuild.ps1 | psakeBuild.ps1 | properties {
$script = "$PSScriptRoot\TextFile.psd1"
$server = $Server
$repo = $Repo
}
Include ".\build_utils.ps1"
# Manual Tasks run from build.ps1
task default -depends JenkinsAnalyze, JenkinsTest
task Analyze -depends JenkinsAnalyze
task Test -depends JenkinsAnalyze, JenkinsTest
task Dep... |
PowerShellCorpus/Github/Xainey_DSCTextfile/build_utils.ps1 | build_utils.ps1 | # Build Powershell collection object from vagrant CLI
function Get-VagrantBoxes
{
$matches = vagrant box list | Select-String -Pattern '(\S+)\s+\((\w+), ([\d.]+)\)' -AllMatches
$boxes = @()
foreach ($box in $matches)
{
$boxes += [pscustomobject] @{
"Vendor" = $box.Matche... |
PowerShellCorpus/Github/Xainey_DSCTextfile/build.ps1 | build.ps1 | [cmdletbinding()]
param(
[string[]]
$Task = 'default',
[string]
$Server = 'localhost',
[string]
$Repo = '\\Server\DSCRepo'
)
# Not-Availiable on servers without WMF5 and Internet access.
# May want to just check for modules and fail if missing if Internet access is restricte... |
PowerShellCorpus/Github/Xainey_DSCTextfile/Examples/TextFile_Example.ps1 | TextFile_Example.ps1 | configuration TextFile
{
#Import-DscResource -ModuleName PSDesiredStateConfiguration
#Import-DscResource -Name MSFT_xRemoteFile -ModuleName xPSDesiredStateConfiguration
Import-DscResource -ModuleName TextFile
node $AllNodes.Where{$_.Role -eq "TextFile"}.NodeName
{
TextFile addText... |
PowerShellCorpus/Github/Xainey_DSCTextfile/Tests/Unit/TextFile.unit.tests.ps1 | TextFile.unit.tests.ps1 | using module "..\..\TextFile.psm1"
describe "Textfile DSC Module - Unit Testing" {
context "Check Path" {
it 'return false for non-existing path' {
[TextFileHelpers]::new().CheckPathExists('c:\bogus\path\example') | Should Be $false
}
it 'return true for existing p... |
PowerShellCorpus/Github/Xainey_DSCTextfile/Tests/integration/TextFile/pester/TextFile.tests.ps1 | TextFile.tests.ps1 | describe "TextFile" {
it 'creates a text file' {
'c:\Temp\hello.txt' | Should Exist
}
it 'has the correct content' {
'c:\Temp\hello.txt' | Should Contain 'Hello World!'
}
} |
PowerShellCorpus/Github/renlesterdg_machinebuilds/BoxStarter-Machine-Build.ps1 | BoxStarter-Machine-Build.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
#### .NET 3.5 ####
cinst dotnet3.5 -y # Not automatically installed. Includes .NET 2.0... |
PowerShellCorpus/Github/ArtKozlov_WebApi_training/TaskManagerProvider/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/ArtKozlov_WebApi_training/TaskManagerProvider/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/ArtKozlov_WebApi_training/TaskManagerProvider/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/ArtKozlov_WebApi_training/TaskManagerProvider/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/ArtKozlov_WebApi_training/TaskManagerProvider/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/ArtKozlov_WebApi_training/TaskManager/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/ArtKozlov_WebApi_training/TaskManager/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/ArtKozlov_WebApi_training/TaskManager/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/ArtKozlov_WebApi_training/TaskManager/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/ArtKozlov_WebApi_training/TaskManager/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/edwarddijk_Powershell-StoreFront/StartPublishedApp.ps1 | StartPublishedApp.ps1 | #Start Published App
#Requires -Version 3.0
#This File is in Unicode format. Do not edit in an ASCII editor.
<#
.SYNOPSIS
Connects to a Citrix StoreFront server andd starts the requested Published Applications.
.DESCRIPTION
Connects to a Citrix StoreFront server andd starts the requested Published Applicati... |
PowerShellCorpus/Github/jagger_PSTools/profile.ps1 | profile.ps1 | Function prompt {
$color = "yellow"
$out += "["+ (whoami) + "]"
try {$last = (Get-History)[-1]}catch{$last=""}
if (($last.EndExecutionTime - $last.StartExecutionTime).totalseconds -gt 2 -or $last.ExecutionStatus -ne "Completed"){$out += " [Last Command: " + $last.ExecutionStatus + "] [Time (Sec): " + ($last.EndExe... |
PowerShellCorpus/Github/rsyuzyov_docker-commands/gogs-run.ps1 | gogs-run.ps1 | docker volume create --name gogs
docker run --name=gogs --restart always `
-v gogs:/data `
-p 10022:22 -p 10080:3000 `
-d gogs/gogs |
PowerShellCorpus/Github/rsyuzyov_docker-commands/zabbix-server-run.ps1 | zabbix-server-run.ps1 | docker volume create --name zabbix-alertscripts
docker volume create --name zabbix-externalscripts
docker volume create --name zabbix-enc
docker volume create --name zabbix-modules
docker volume create --name zabbix-ssh_keys
docker volume create --name zabbix-certs
docker volume create --name zabbix-keys
docker ... |
PowerShellCorpus/Github/rsyuzyov_docker-commands/http-proxy-run.ps1 | http-proxy-run.ps1 | docker run -d -p 2375:2375 --restart always --volume=/var/run/docker.sock:/var/run/docker.sock --name=docker-http sequenceiq/socat |
PowerShellCorpus/Github/rsyuzyov_docker-commands/compose-ui-run.ps1 | compose-ui-run.ps1 | docker volume create --name compose-ui
docker run --restart always `
--name compose-ui `
-p 5000:5000 `
-w /opt/docker-compose-projects/ `
-v compose-ui:/opt/docker-compose-projects -v /var/run/docker.sock:/var/run/docker.sock `
-d francescou/docker-compose-ui:1.4.1 |
PowerShellCorpus/Github/rsyuzyov_docker-commands/zabbix-web-run.ps1 | zabbix-web-run.ps1 | docker volume create --name zabbix-web
docker run --name zabbix-web --restart always `
--net host `
-v zabbix-web:/etc/ssl/apache2 `
-e DB_SERVER_HOST="127.0.0.1" `
-e POSTGRES_USER="postgres" `
-e POSTGRES_PASSWORD="12345" `
-e ZBX_SERVER_HOST="127.0.0.1" `
-e TZ="Asia/Yekaterinburg" `
-d zabbix/zabbi... |
PowerShellCorpus/Github/rsyuzyov_docker-commands/postgresql-run.ps1 | postgresql-run.ps1 | docker volume create --name pg-data
docker volume create --name pg-run
docker run --name postgresql --restart always `
-v pg-data:/var/lib/postgresql -v pg-run:/run/postgresql `
--net host -p 5432:5432 `
-d rsyuzyov/postgresql-pro-1c |
PowerShellCorpus/Github/rsyuzyov_docker-commands/portainer-run.ps1 | portainer-run.ps1 | docker volume create --name portainer
docker run --name portainer --restart always -v portainer:/data -p 9000:9000 -d portainer/portainer |
PowerShellCorpus/Github/rsyuzyov_docker-commands/zabbix-xxl-run.ps1 | zabbix-xxl-run.ps1 | docker volume create --name zabbix-custom-config
docker volume create --name zabbix-alertscripts
docker volume create --name zabbix-externalscripts
docker volume create --name zabbix-certs
docker volume create --name zabbix-keys
docker volume create --name zabbix-modules
docker volume create --name zabbix-mibs
d... |
PowerShellCorpus/Github/wh-alice_alicemtest.ja-jp/.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/OPS-E2E-PPE_E2E_D_NewRepo_2017_4_13_17_4_13/.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/JeremyTCD_Powershell.ContinuousDeploymentUtils/src/ContinuousDeploymentUtils/ContinuousDeploymentUtils.pre.ps1 | ContinuousDeploymentUtils.pre.ps1 | if ((Get-Command "git" -ErrorAction SilentlyContinue) -eq $null)
{
throw "Error: Git not available. Please install git and add it to your path."
} |
PowerShellCorpus/Github/JeremyTCD_Powershell.ContinuousDeploymentUtils/tests/ContinuousDeploymentUtils.tests.ps1 | ContinuousDeploymentUtils.tests.ps1 | $projectRoot = $PSScriptRoot | Split-Path -Parent
$projectName = 'ContinuousDeploymentUtils'
Remove-Module $projectName
Import-Module "$projectRoot\src\$projectName\$projectName.psd1"
Invoke-Expression -Command "`"$projectRoot\src\$projectName\$projectName.pre.ps1`""
#Describe "Push-TagAndChangelog" {
# BeforeAll{
# ... |
PowerShellCorpus/Github/JeremyTCD_Powershell.ContinuousDeploymentUtils/tests/Deploy.tests.ps1 | Deploy.tests.ps1 | $projectRoot = $PSScriptRoot | Split-Path -Parent
$projectName = 'ContinuousDeploymentUtils'
Invoke-Expression -Command "`"$projectRoot\src\$projectName\$projectName.pre.ps1`""
Remove-Module $projectName
Import-Module "$projectRoot\src\$projectName\$projectName.psd1"
Describe "Deploy" {
AfterAll{
# So test drive ca... |
PowerShellCorpus/Github/JeremyTCD_Powershell.ContinuousDeploymentUtils/tools/Deploy.ps1 | Deploy.ps1 | Invoke-Git config --global credential.helper store
Add-Content "$($env:USERPROFILE)\.git-credentials" "https://$($env:git_key):x-oauth-basic@github.com`n"
Invoke-Git config --global user.email $env:build_user_email
Invoke-Git config --global user.name $env:build_user
Write-Host "Checking if changelog has changed"
# ... |
PowerShellCorpus/Github/JeremyTCD_Powershell.ContinuousDeploymentUtils/tools/Test.ps1 | Test.ps1 | $testResultsFile = ".\TestsResults.xml"
$res = Invoke-Pester -OutputFormat NUnitXml -OutputFile $testResultsFile -PassThru
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $testResultsFile))
if ($res.FailedCount -gt 0) {
throw "$(... |
PowerShellCorpus/Github/tksh164_ConsoleFontConfigurationScript/SetConsoleFontMigu1m.ps1 | SetConsoleFontMigu1m.ps1 | #Requires -Version 5.0
function Restart-PowerShellConsoleAsAdmin
{
[OutputType([void])]
param ()
$curretUserId = [System.Security.Principal.WindowsIdentity]::GetCurrent();
$currentWindowsPrincipal = New-Object System.Security.Principal.WindowsPrincipal($curretUserId);
$adminRole = [System... |
PowerShellCorpus/Github/natetsu123_downloadtool/Tools_Downloads.ps1 | Tools_Downloads.ps1 | # パラメータ
# ファイルを保存するパス、ダウンロードファイルリストを宣言
Param([String]$path=$HOME + "\Downloads")
# ダウンロードするファイルリストを配列にする。
# 絶対パスになっているので、最新版をいかに特定するかが課題
$file = @()
$file += "http://download.sysinternals.com/files/BGInfo.zip"
$file += "http://download.sysinternals.com/files/TCPView.zip"
$file += "https://download.microsoft.c... |
PowerShellCorpus/Github/ppollanen_bookshelf/deployAzure/deployRg.ps1 | deployRg.ps1 | ##Login to Azure
Login-AzureRmAccount
##Create Resource Group
New-AzureRmResourceGroup -Name "rg-bookshelf" -Location "NorthEurope" |
PowerShellCorpus/Github/ghosthand7_GroupPolicySettings/Get-GroupPolicySettings.ps1 | Get-GroupPolicySettings.ps1 | param(
[Parameter(Mandatory=$true)]
[string]$XMLPath,
[Parameter(ParameterSetName = "Mappings",Position=0)]
[Switch]$PrinterMappings,
[Parameter(ParameterSetName = "Mappings",Position=1)]
[switch]$DriveMappings,
[Parameter(ParameterSetName = "Certificates",Position=0)]
[switch]$CertificateAuthority,
[Parameter... |
PowerShellCorpus/Github/MSUDenverSystemsEngineering_RStudio/Deploy-Application.ps1 | Deploy-Application.ps1 | <#
.SYNOPSIS
This script performs the installation or uninstallation of an application(s).
.DESCRIPTION
The script is provided as a template to perform an install or uninstall of an application(s).
The script either performs an "Install" deployment type or an "Uninstall" deployment type.
The install deploymen... |
PowerShellCorpus/Github/MSUDenverSystemsEngineering_RStudio/AppDeployToolkit/AppDeployToolkitExtensions.ps1 | AppDeployToolkitExtensions.ps1 | <#
.SYNOPSIS
This script is a template that allows you to extend the toolkit with your own custom functions.
.DESCRIPTION
The script is automatically dot-sourced by the AppDeployToolkitMain.ps1 script.
.NOTES
Toolkit Exit Code Ranges:
60000 - 68999: Reserved for built-in exit codes in Deploy-Applicatio... |
PowerShellCorpus/Github/MSUDenverSystemsEngineering_RStudio/AppDeployToolkit/AppDeployToolkitMain.ps1 | AppDeployToolkitMain.ps1 | <#
.SYNOPSIS
This script contains the functions and logic engine for the Deploy-Application.ps1 script.
.DESCRIPTION
The script can be called directly to dot-source the toolkit functions for testing, but it is usually called by the Deploy-Application.ps1 script.
The script can usually be updated to the latest v... |
PowerShellCorpus/Github/MSUDenverSystemsEngineering_RStudio/AppDeployToolkit/AppDeployToolkitHelp.ps1 | AppDeployToolkitHelp.ps1 | <#
.SYNOPSIS
Displays a graphical console to browse the help for the App Deployment Toolkit functions
.DESCRIPTION
Displays a graphical console to browse the help for the App Deployment Toolkit functions
.EXAMPLE
AppDeployToolkitHelp.ps1
.NOTES
.LINK
http://psappdeploytoolkit.com
#>
##*================... |
PowerShellCorpus/Github/oleghansen_FAQ-Snublevann/nettbutikkfaq/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/oleghansen_FAQ-Snublevann/nettbutikkfaq/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/hmontoliu_snippets/informemigracion/informemigracionFormato.ps1 | informemigracionFormato.ps1 | <#
# vim:ts=4:sw=4:et:
# Description: informe de migración de equipos
# powershell -executionpolicy unrestricted ./script.ps1
# . { iwr -useb https://raw.githubusercontent.com/hmontoliu/snippets/master/informemigracion/informemigracionFormato.ps1 } | iex
# Created: 2016-11-18
# Copyright (c) 2016: Hilario J. Mont... |
PowerShellCorpus/Github/hmontoliu_snippets/informemigracion/informemigracion.ps1 | informemigracion.ps1 | $detalles = @("computersystem", "os",
"baseboard", "cpu", "memorychip",
"nic", "nicconfig",
"logicaldisk", "netuse", "volume", "diskdrive", "partition",
"useraccount",
"printer",
"share",
"startup",
"job",
... |
PowerShellCorpus/Github/hmontoliu_snippets/mantmisc/mantenimiento.ps1 | mantenimiento.ps1 | # mantenimiento.ps1
# draft/beta
# . { iwr -useb https://raw.githubusercontent.com/hmontoliu/snippets/master/mantmisc/mantenimiento.ps1 } | iex
# -- H. Montoliu <hmontoliu@gmail.com> Wed Jan 18 10:27:01 UTC 2017
# -- Marcos Leal Sierra <marcoslealsierra90@gmail.com>
# Editable variables
$ccleaner_ver = "529... |
PowerShellCorpus/Github/hmontoliu_snippets/mantmisc/ninite.ps1 | ninite.ps1 | # based on borgfriend's https://gist.github.com/borgfriend/5763637
# -- Marcos Leal Sierra <marcoslealsierra90@gmail.com> lunes 13 de febrero del 2017 a las 10:54:09
Write-Host Ninite autoinstall
# Items to download
$items = @("winrar", "chrome", "java", "notepadplusplus", "thunderbird",
"vlc", "pdfcreator", ... |
PowerShellCorpus/Github/hmontoliu_snippets/mantmisc/ccleanermant.ps1 | ccleanermant.ps1 | # Download, install, and run free ccleaner
# You should run ccleaner if you have configured it previously
#
# -- H. Montoliu <hmontoliu@gmail.com> Wed Jan 18 10:27:01 UTC 2017
#
$VERSION="526"
# download
$URL="http://download.piriform.com/ccsetup${VERSION}.exe"
$DESTDIR="c:\_administrador\programas"
$INSTA... |
PowerShellCorpus/Github/seksenov_HWAAuthentication/gulpfile.js/AppxUtilities/Add-AppxPackageExt.ps1 | Add-AppxPackageExt.ps1 | <#
.SYNOPSIS
Install Appx packages.
.DESCRIPTION
A wrapper for Add-AppxPackage, this script additionally supports a Force
switch that will install the package even when a package with the same
package full name is already installed or if the package to install has an
untrusted signature. Add... |
PowerShellCorpus/Github/seksenov_HWAAuthentication/gulpfile.js/AppxUtilities/Launch-AppxPackageBackgroundTask.ps1 | Launch-AppxPackageBackgroundTask.ps1 | <#
.SYNOPSIS
Launch an Appx package's registered background task.
.DESCRIPTION
Given a background task id, launch the corresponding registered background
task.
.PARAMETER BackgroundTaskId
The GUID of the registered background task to launch. This may be obtained by
examining the BackgroundTa... |
PowerShellCorpus/Github/seksenov_HWAAuthentication/gulpfile.js/AppxUtilities/Suspend-AppxPackage.ps1 | Suspend-AppxPackage.ps1 | <#
.SYNOPSIS
Suspend all running processes for a particular Appx package.
.DESCRIPTION
Suspend all running processes for a particular Appx package.
.PARAMETER PackageFullNames
The list of PackageFullNames of the Appx package's the processes of which
should be acted upon. This is either a string o... |
PowerShellCorpus/Github/seksenov_HWAAuthentication/gulpfile.js/AppxUtilities/Start.ps1 | Start.ps1 | $cwd = $args[0]
$guid = $args[1]
Write-Host $guid
cd $cwd
$installed = .\gulpfile.js\AppxUtilities\Get-AppxPackageExt.ps1 $guid
if ($installed) { Remove-AppxPackage $installed.PackageFullName }
$result = .\gulpfile.js\AppxUtilities\Add-AppxPackageExt.ps1 .\src\AppxManifest.xml
$pfn = $result.Package.PackageFamil... |
PowerShellCorpus/Github/seksenov_HWAAuthentication/gulpfile.js/AppxUtilities/Debug-AppxPackage.ps1 | Debug-AppxPackage.ps1 | <#
.SYNOPSIS
Debug appx packages.
.DESCRIPTION
A wrapper for plmdebug.exe, this script makes it easy to use plmdebug.exe
in PowerShell with other AppxPackage commands. Returns the
Get-AppxPackageExt results of the packages to which this command applied.
.PARAMETER PackageFullNames
This para... |
PowerShellCorpus/Github/seksenov_HWAAuthentication/gulpfile.js/AppxUtilities/Get-ProcessAppxPackage.ps1 | Get-ProcessAppxPackage.ps1 | <#
.SYNOPSIS
Get Appx package info for running processes.
.DESCRIPTION
A wrapper for Get-Process, this script provides information about the
running processes package identity and package execution state.
.PARAMETER ProcessFilter
Filter the output using this to match either process ID, proce... |
PowerShellCorpus/Github/seksenov_HWAAuthentication/gulpfile.js/AppxUtilities/Get-AppxPackageExt.ps1 | Get-AppxPackageExt.ps1 | <#
.SYNOPSIS
Get installed Appx package information.
.DESCRIPTION
A wrapper for Get-AppxPackage, this script provides additional info beyond
Get-AppxPackage's including:
- DisplayName
- Manifest parsed as XML
- InstallLocation as file item
- Application IDs
- Registered ba... |
PowerShellCorpus/Github/seksenov_HWAAuthentication/gulpfile.js/AppxUtilities/Launch-AppxPackage.ps1 | Launch-AppxPackage.ps1 | <#
.SYNOPSIS
Launch an installed Appx package's application.
.DESCRIPTION
Given an AppxPackage or PackageFamilyName and ApplicationId Launch-AppxPackage
launches the application and provides as output the Get-ProcessAppxPackage
result of the launched process.
.PARAMETER PackageFamilyName
The... |
PowerShellCorpus/Github/seksenov_HWAAuthentication/gulpfile.js/AppxUtilities/Get-AppxPackageFile.ps1 | Get-AppxPackageFile.ps1 | <#
.SYNOPSIS
Get Appx package info from an Appx package file.
.DESCRIPTION
Given an Appx package file, Get-AppxPackageFile extracts the manifest from
the file (using ExtractFromAppx.exe) and outputs the results of
Get-AppxPackageExt filtered to packages with the same name as that in the
mani... |
PowerShellCorpus/Github/seksenov_HWAAuthentication/gulpfile.js/AppxUtilities/Resume-AppxPackage.ps1 | Resume-AppxPackage.ps1 | <#
.SYNOPSIS
Resume all suspended processes for a particular Appx package.
.DESCRIPTION
Resume all suspended processes for a particular Appx package.
.PARAMETER PackageFullNames
The list of PackageFullNames of the Appx package's the processes of which
should be acted upon. This is either a string... |
PowerShellCorpus/Github/seksenov_HWAAuthentication/gulpfile.js/AppxUtilities/Terminate-AppxPackage.ps1 | Terminate-AppxPackage.ps1 | <#
.SYNOPSIS
Terminate all processes for a particular Appx package.
.DESCRIPTION
Terminate all processes for a particular Appx package.
.PARAMETER PackageFullNames
The list of PackageFullNames of the Appx package's the processes of which
should be acted upon. This is either a string or the result... |
PowerShellCorpus/Github/LeandroBelge_Estudos-Linq/AluraTunes/packages/EntityFramework.6.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
if (Get-Module | ?{ $_.Name -eq 'EntityFramework' })
{
Remove-Module EntityFramework
}
Import-Module (Join-Path $toolsPath EntityFramework.psd1)
# SIG # Begin signature block
# MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/LeandroBelge_Estudos-Linq/AluraTunes/packages/EntityFramework.6.0.0/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Initialize-EFConfiguration $project
Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'
Write-Host
Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma... |
PowerShellCorpus/Github/glasnt_hackfest/IMDB_ipsum/IMDB.ps1 | IMDB.ps1 | $DebugPreference = "continue"
$ErrorPreference = "stop"
$s3cmd = "python c:\s3cmd\s3cmd"
$here = "C:\anchor\hackfest\IMDB\"
$bucket="imdbipsum"
$RawContent = $Here+"raw_content\quotes_clean.txt"
$QuotesFolder = $Here+"Quotes"
$RawContent, $QuotesFolder | % { if (!(test-path $_)) { $suppress = new-item -... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.