This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Show-Help { | |
| <# | |
| .Synopsis | |
| Open help in "Show window" mode | |
| #> | |
| param ( | |
| [parameter(ValueFromPipeline=$true)] | |
| [ArgumentCompleter({ | |
| param($commandName, $parameterName,$wordToComplete,$commandAst,$fakeBoundParameter) | |
| [System.Management.Automation.CompletionCompleters]::CompleteCommand($wordToComplete) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -version 7.0 | |
| $am = @" | |
| _____ __ __ ___ _ __ ______ | |
| / ___/__ ___ ___/ / / |/ /__ _______ (_)__ ___ _ __ / /__ / _/ _/ | |
| / (_ / _ \ _ \ _ / / /|_/ / _ \/ __/ _ \/ / _ \ _ `/ / // / -_) _/ _/ | |
| \___/\___\___\_,_/ /_/ /_/\___/_/ /_//_/_/_//_\_, ( ) \___/\__/_//_/ | |
| /___/|/ | |
| "@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #lxprofile.ps1 | |
| #this is for Linux based computers | |
| $os = $PSVersionTable.OS | |
| $lsb = lsb_release -d | |
| $osver = ($lsb -split ":")[1].Trim() | |
| $elevated = "N/A" | |
| $user = [System.Environment]::UserName | |
| $computer = [System.Environment]::MachineName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [CmdletBinding(SupportsShouldProcess)] | |
| param ( | |
| [Parameter(Mandatory)][String]$KeePassDBPath, | |
| $Destination = (Join-Path ([Environment]::GetFolderPath('Desktop')) (((Split-Path $KeePassDBPath -leaf) -replace '.kdbx$','') + '.lnk')), | |
| [String]$KeePassExePath = ((command keepass.exe).source), | |
| [Parameter(Mandatory,ValueFromPipeline)]$SecurePassword | |
| ) | |
| end { | |
| $ErrorActionPreference = 'Stop' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Get-GitRepo { | |
| param( | |
| [Parameter(Position=0, Mandatory)] | |
| $url, | |
| [Parameter()] | |
| [switch] | |
| $DoNotTrackRemoteBranches | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Base box: https://github.com/akrabat/packer-templates | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "19ft/windows2016" | |
| config.vm.guest = :windows | |
| config.vm.boot_timeout = 600 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ######################################################################################### | |
| ## Author: David das Neves | |
| ## Date: 15.12.2019 | |
| ## Description: Filtering of Ignite session files with OutGridView | |
| ## Downloading with 10 downloads in parallel including resume functionality | |
| ######################################################################################### | |
| # Start PowerShell as admin | |
| # via code: Start-Process powershell -Verb runAs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as path from 'path'; | |
| import * as tl from 'azure-pipelines-task-lib/task'; | |
| async function run() { | |
| } | |
| run(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Import-Script { | |
| [CmdletBinding()] | |
| param ( | |
| [Parameter(Mandatory)] | |
| [String] $Path, | |
| [Hashtable] $Parameters = @{}, | |
| [Object[]] $Arguments = @(), | |
| [String] $EntryPoint = 'Main' | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Install-Module AutomatedLab.Recipe -AllowClobber -Force | |
| # Inline definition and execution | |
| LabRecipe MySuperLab { | |
| DeployRole = 'Domain', 'SQL' | |
| VmPrefix = 'LB' | |
| } | Invoke-LabRecipe | |
| # Store a lab for later use | |
| New-LabRecipe -Name MySuperLab -DeployRole DscPull,CI_CD |
NewerOlder