Skip to content

Instantly share code, notes, and snippets.

Avatar
🕵️‍♂️
Investigating a better artifact workflow

Jake Morrison techthoughts2

🕵️‍♂️
Investigating a better artifact workflow
View GitHub Profile
@darko-mesaros
darko-mesaros / github_cfn.yml
Created May 25, 2020
Creation of GitHub repositories via AWS CloudFormation
View github_cfn.yml
AWSTemplateFormatVersion: "2010-09-09"
Description: >
https://twitch.tv/ruptwelve
Parameters:
RepoName:
Type: String
Description: Enter the name for your repository
Default: please-change-me
Resources:
MyGitHubRepo:
@austoonz
austoonz / Get-AWSCommandsFromFile.ps1
Created Feb 14, 2020
This function will use the PowerShell Parser, and the Get-AWSCmdletName cmdlet (found in AWS.Tools.Common, AWSPowerShell or AWSPowerShell.NetCore) to find and output all AWS Cmdlets from a script. This can be used to assist with migrations to the AW
View Get-AWSCommandsFromFile.ps1
function Get-AWSCommandsFromFile {
[CmdletBinding()]
param (
[ValidateScript({Test-Path -Path $_ -PathType Leaf})]
$FilePath
)
$awsCommands = @{}
$tokens = [System.Management.Automation.PSParser]::Tokenize((Get-Content -Path $FilePath -Raw), [ref]$null)
@austoonz
austoonz / Invoke-FastPing
Last active Mar 1, 2019
A PowerShell Function that uses asynchronous ping commands to quickly ping a fleet of target machines.
View Invoke-FastPing
# This has been replaced by the FastPing PowerShell Module.
## Source
[GitHub](]https://github.com/austoonz/FastPing)
## Installation
```powershell
Install-Module -Name FastPing -Scope CurrentUser
@SteveL-MSFT
SteveL-MSFT / profile.ps1
Last active Nov 20, 2020
PowerShell Prompt
View profile.ps1
#Requires -Version 7
# Version 1.2.5
# check if newer version
$gistUrl = "https://api.github.com/gists/a208d2bd924691bae7ec7904cab0bd8e"
$latestVersionFile = Join-Path -Path ~ -ChildPath ".latest_profile_version"
$versionRegEx = "# Version (?<version>\d+\.\d+\.\d+)"
if (Test-Path $latestVersionFile) {
You can’t perform that action at this time.