This file contains hidden or 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 | |
$.verbose = false; | |
console.log('Retrieving granted API permissions...'); | |
const apiPermissions = JSON.parse(await $`m365 spo sp grant list -o json`); | |
for (let i = 0; i < apiPermissions.length; i++) { | |
const permission = apiPermissions[i]; | |
console.log(`Removing permission ${permission.Resource}/${permission.Scope} (${permission.ObjectId})...`); | |
try { |
This file contains hidden or 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
# usage | |
# $ deg 10c # Celsius to Fahrenheit | |
# 50.0 | |
# | |
# $ deg 115f # Fahrenheit to Celsius | |
# 46 | |
deg() { | |
unit=${1:(-1)} | |
d=${1:0:(-1)} | |
if [ $unit = c ] |
This file contains hidden or 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
# usage: | |
# $ = "1+2" | |
# 3 | |
# quotes are necessary only for some expressions like *, but better to use them all the time just to be safe | |
function = { | |
echo "$1" | bc -l | |
} |
This file contains hidden or 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
mgdp --config presets/microsoft-graph-rate-limiting.json |
This file contains hidden or 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
{ | |
"plugins": [ | |
{ | |
"name": "GraphRandomErrorPlugin", | |
"enabled": true, | |
"pluginPath": "GraphProxyPlugins\\msgraph-developer-proxy-plugins.dll", | |
"configSection": "graphRandomErrorsPlugin" | |
} | |
], | |
"urlsToWatch": [ |
This file contains hidden or 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
<html> | |
<head> | |
<title>v0.29.0</title> | |
</head> | |
<body> | |
<h1>v0.29.0</h1> | |
<h2>Update trust-cert.sh prompt to use y|n + ENTER</h2> | |
<p> |
This file contains hidden or 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
{ | |
"plugins": [ | |
{ | |
"name": "RateLimitingPlugin", | |
"enabled": true, | |
"pluginPath": "plugins\\m365-developer-proxy-plugins.dll", | |
"configSection": "rateLimiting" | |
} | |
], | |
"urlsToWatch": [ |
This file contains hidden or 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
{ | |
"plugins": [ | |
{ | |
"name": "LatencyPlugin", | |
"enabled": true, | |
"pluginPath": "~appFolder\\plugins\\m365-developer-proxy-plugins.dll", | |
"configSection": "latencyPlugin" | |
} | |
], | |
"urlsToWatch": [ |
This file contains hidden or 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
using System.Text.Json; | |
using Microsoft.Graph.Models; | |
using Microsoft.Graph.Models.ExternalConnectors; | |
static class ConnectionConfiguration | |
{ | |
public static ExternalConnection ExternalConnection | |
{ | |
get | |
{ |
This file contains hidden or 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
static class ConnectionService | |
{ | |
async static Task CreateConnection() | |
{ | |
await GraphService.Client.External.Connections | |
.PostAsync(ConnectionConfiguration.ExternalConnection); | |
} | |
async static Task CreateSchema() | |
{ |