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:
| function Sync-GitHubWorkspace { | |
| [CmdletBinding(SupportsShouldProcess)] | |
| param( | |
| [string]$Path = (Get-Location).Path, | |
| [string[]]$IncludeBranches = @("main", "master", "develop", "dev"), | |
| [switch]$CleanBinObj, | |
| [switch]$AutoStash | |
| ) | |
| function Write-Section { |
| using Microsoft.AspNetCore.Authentication.JwtBearer; | |
| using Microsoft.OpenApi.Models; | |
| var builder = WebApplication.CreateBuilder(args); | |
| builder.Services.AddEndpointsApiExplorer(); | |
| builder.Services.AddSwaggerGen(c => | |
| { | |
| c.SwaggerDoc("v1", new OpenApiInfo | |
| { |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "actions": | |
| [ | |
| { | |
| "command": | |
| { | |
| "action": "copy", | |
| "singleLine": false | |
| }, |
| ##################### | |
| # SOFTWARE | |
| ##################### | |
| # Console | |
| cinst poshgit | |
| # 7Zip | |
| cinst 7zip.install -y |
I hereby claim:
To claim this, I am signing this object:
| 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 | |
| } |
| $siteUrl = "" | |
| Connect-PnPOnline –Url $siteUrl -UseWebLogin | |
| $items =Get-PnPListItem -List "SitePages" -PageSize 1000 | |
| foreach ($item in $items) | |
| { | |
| if ($item.Id -ne 1) | |
| { | |
| try |
| $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 |
| 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(); |
| { | |
| "info": { | |
| "_postman_id": "90d3ea99-ce5f-4b8d-8fe9-2b66766b0bcc", | |
| "name": "Yammer API (Public)", | |
| "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
| }, | |
| "item": [ | |
| { | |
| "name": "Get My Feed", | |
| "request": { |