Skip to content

Instantly share code, notes, and snippets.

View Graham-Beer's full-sized avatar

Graham Beer Graham-Beer

View GitHub Profile
function Get-EC2Ami {
[CmdletBinding()]
param (
[Parameter(Mandatory, Position = 0, ValueFromPipeline)]
[SupportsWildcards()]
[String] $ImageType,
[Parameter(Mandatory, Position = 1)]
[ArgumentCompleter( { (Get-AWSRegion).Region })]
[String] $Region,
netsh wlan show profiles |
Select-String ': *(.+)$' | ForEach-Object {
$_.Matches.Groups[1].Value
}
# Source: https://gist.github.com/7e0ada996b5d09486f2df0d7e1cbbea2
###############################################
# Amazon Lambda Containers #
# Packaging AWS Functions as Container Images #
# https://youtu.be/DsQbBVr-GwU #
###############################################
# Requirements:
# - AWS account (https://aws.amazon.com/)
@Graham-Beer
Graham-Beer / bashrc
Created May 5, 2023 07:23
WSL bashrc profile
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac