Tech Talk Tuesday
August 28th, 2018
Beware integrated consoles!!!
Invoke-RestMethod `
-Uri https://api.github.com/users/brendonthiede/repos `
| Sort-Object updated_at `
| Format-Table -Property clone_url,updated_at
("{'Name': 'Brendon', 'Details': {'Job': 'DevOps Engineer'}}" `
| ConvertFrom-Json).Details.Job
(@{Name="Brendon";Details=@{Job="DevOps Engineer"}}).Details.Job
$ObjArray = @(@{Name="Brendon";Details=@{Job="DevOps Engineer"}};@{Name="Tom";Details=@{Job="Operations"}};@{Name="Tom";Details=@{Job="DevOps Engineer"}})
$ObjArray | `
Where-Object {
$_.Details.Job -eq "DevOps Engineer"
} | ForEach-Object {
Write-Output $_.Name
}
1..10 | `
ForEach-Object {
Write-Output $_
}
Push-Location
/Pop-Location
Get-ChildItem env:
[System.IO.Compression.ZipFile]::CreateFromDirectory("C:\tmp", "C:\tmp.zip")