Skip to content

Instantly share code, notes, and snippets.

Investigating a better artifact workflow

Jake Morrison techthoughts2

Investigating a better artifact workflow
View GitHub Profile
View powershell_array
# adding stuff to emtpy array objects quickly
$myarray = [System.Collections.ArrayList]::new()
View autoCompletion.ps1
$GetVM={Get-VM | Select-Object -ExpandProperty Name}
$AutoCompleteVM = @{
CommandName = 'New-Foo'
ParameterName = 'VMName'
ScriptBlock = $GetVM
Register-ArgumentCompleter @AutoCompleteVM
View sort_ips.ps1
[string[]]('','' | % {[Version]$PSItem} | sort)
View install_pwsh_7
iex "& { $(irm } -UseMSI"
techthoughts2 / settings.json
Last active Apr 11, 2021
Current Windows Terminal Settings
View settings.json
// This file was initially generated by Windows Terminal 0.11.1333.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see:
// C:\Users\user\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingState
"$schema": "",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
techthoughts2 / python.json
Last active Apr 11, 2021
Collection of Python Snippets for VSCode
View python.json
"if": {
"prefix": "if",
"body": ["if ${1:expression}:", "\t${2:pass}"],
"description": "Code snippet for an if statement"
"if/else": {
"prefix": "if/else",
"body": ["if ${1:condition}:", "\t${2:pass}", "else:", "\t${3:pass}"],
"description": "Code snippet for an if statement with else"
View .jake.omp.json
"$schema": "",
"blocks": [
"type": "prompt",
"alignment": "left",
"segments": [
// {
// "type": "text",
// "style": "plain",
techthoughts2 / ws_setup.ps1
Last active May 13, 2021
This PowerShell script will setup a fresh workstation with everything needed to sucessfully work and be a DevOps Master day-to-day.
View ws_setup.ps1
#region installs
# basic choco installs
$script:chocoInstalls = @(
# 'ytmdesktop' #
'vscode' # visual studio code
'powershell-core' # powershell 7+
'python' # python
'cacher' # code snippet organizer
'winscp' # Open source free SFTP client, SCP client, FTPS client and FTP client
View az_pwsh.ps1
View install_powershell
iex "& { $(irm } -UseMSI -Quiet"