This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.20.0/genericrandomerrorplugin.schema.json", | |
"errors": [ | |
{ | |
"request": { | |
"url": "https://jsonplaceholder.typicode.com/*" | |
}, | |
"responses": [ | |
{ | |
"statusCode": 400, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zx | |
// suppress printing command names and output | |
$.verbose = false; | |
const token = 'github_pat_' | |
async function getDownloads() { | |
let numDownloads = 0; | |
let page = 1; | |
const perPage = 30; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
This script publishes a new release of Dev Proxy to the Windows Package Manager (winget). | |
.DESCRIPTION | |
This script updates the manifest files for Dev Proxy to create a new release. It copies the old version files to the new version folder, replaces the old version number with the new version number in the files, and updates the installer hash in the Microsoft.DevProxy.installer.yaml file. The script then creates a new branch, commits the changes, and pushes the branch to the remote repository. Finally, the script creates a pull request with the new version information. | |
.PARAMETER OldVersion | |
The version number of the current release in semver format. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"position": { | |
"type": "string" | |
}, | |
"value": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"playstyles": [ | |
{ | |
"position": "GK", | |
"value": "Line Keeper", | |
"modifiers": [ | |
{ | |
"key": "overall", | |
"value": 3 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[Parameter(Mandatory=$true)] | |
[string]$Path | |
) | |
# Define the files to search for | |
$filesToSearch = ".env.local", ".env.local.user", ".env.dev", ".env.dev.user" | |
# Define the keys to ignore | |
$keysToIgnore = "SPO_HOSTNAME", "SPO_SITE_URL", "APP_NAME_SUFFIX" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assumes you are logged into tenant using CLI for Microsoft 365 (https://aka.ms/cli-m365) | |
$apps = m365 teams user app list --userId "@meId" | ConvertFrom-Json | |
$apps | Where-Object { $_.teamsApp.distributionMethod -eq "sideloaded" } | ForEach-Object { m365 teams user app remove --id $_.id --userId "@meId" --force } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assumes you are logged into tenant using CLI for Microsoft 365 (https://aka.ms/cli-m365) | |
$apps = m365 teams app list --distributionMethod organization | ConvertFrom-Json | |
$apps | ForEach-Object { m365 teams app remove --id $_.id --force } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async (window) => { | |
const ootbApps = [ | |
"Bookings", | |
"Files", | |
"Go to Excel", | |
"Go to OneNote", | |
"Go to PowerPoint", | |
"Go to Word", | |
"SurveyMonkey: Surveys for Feedback", | |
"Viva Engage" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remove all bots from your account | |
// 1. Go to https://dev.botframework.com/bots | |
// 2. Open the console (F12) | |
// 3. Paste the following code and press enter | |
(async () => { | |
// select the first bot element | |
let bot = document.querySelector('.bot-content > a'); | |
while (bot) { | |
// click the element link |
NewerOlder