I hereby claim:
- I am kasuken on github.
- I am ebartolesi (https://keybase.io/ebartolesi) on keybase.
- I have a public key ASD-nHf_Ps_Yh4_wIO0bTyr07z47zTI9shrcpK0FKt_XIwo
To claim this, I am signing this object:
$currentUTCtime = (Get-Date).ToUniversalTime() | |
$expiredResources = Search-AzGraph -Query 'where todatetime(tags.expireOn) < now() | project id, name' | |
foreach ($r in $expiredResources) { | |
Write-Host "==> Deleting $($r.name)..."; | |
Remove-AzResource -ResourceId $r.id -Force -WhatIf | |
} | |
$expiredResources = Get-AzResourceGroup; |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{7d04ce37-c00f-43ac-ba47-992cb1393216}", | |
"initialCols": 120, | |
"initialRows": 30, | |
"profiles": [ | |
{ | |
"acrylicOpacity": 0.85, |
var procStartInfo = new System.Diagnostics.ProcessStartInfo("cmd", "/c whoami /upn"); | |
procStartInfo.RedirectStandardOutput = true; | |
procStartInfo.UseShellExecute = false; | |
procStartInfo.CreateNoWindow = true; | |
System.Diagnostics.Process proc = new System.Diagnostics.Process(); | |
proc.StartInfo = procStartInfo; | |
proc.Start(); | |
string result = proc.StandardOutput.ReadToEnd(); | |
var email = result.Trim(); |
$configPath = "$ENV:APPDATA\Microsoft\Teams\desktop-config.json"; | |
$cookiesFilePath = "$ENV:APPDATA\Microsoft\Teams\Cookies" | |
$cookiesJournalPath = "$ENV:APPDATA\Microsoft\Teams\Cookies-journal" | |
$teams = Get-Process Teams -ErrorAction SilentlyContinue | |
if ($teams) { | |
Stop-Process -Name Teams -Force | |
} | |
Start-Sleep -s 5 |
$siteUrl = "" | |
Connect-PnPOnline –Url $siteUrl -UseWebLogin | |
$items =Get-PnPListItem -List "SitePages" -PageSize 1000 | |
foreach ($item in $items) | |
{ | |
if ($item.Id -ne 1) | |
{ | |
try |
Connect-ExchangeOnline -UserPrincipalName <YOUR UPN> -ShowProgress $true | |
#$O365Groups = Get-UnifiedGroup | Where-Object { $_.WelcomeMessageEnabled -eq $true } | |
$O365Groups = Get-UnifiedGroup | |
foreach ($group in $O365Groups) { | |
Write-Host "Disabling Welcome Message on O365 Group: " -NoNewline; Write-Host $group.DisplayName -ForegroundColor Cyan | |
Set-UnifiedGroup $group.Identity -AlwaysSubscribeMembersToCalendarEvents:$false -AutoSubscribeNewMembers:$false -SubscriptionEnabled:$false -UnifiedGroupWelcomeMessageEnabled:$false | |
} |
{ | |
"Condition statement": { | |
"prefix": "cond", | |
"body": [ | |
"${_} { ${0}; break }" | |
], | |
"description": "Switch condition statement" | |
}, | |
"Condition single quoted string statement": { |
I hereby claim:
To claim this, I am signing this object:
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false | |
}, |