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
#!/bin/bash | |
arg1=$1 | |
# Get the list of network services | |
network_services=$(networksetup -listallnetworkservices | tail -n +2) | |
if [[ "$arg1" == "on" ]]; then | |
while IFS= read -r service; do | |
networksetup -setwebproxy "$service" 127.0.0.1 8000 |
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
# stop on the first error | |
set -e | |
architecture="osx-x64" | |
release="m365-developer-proxy-$architecture-local" | |
# Clean | |
rm -rf ./$release | |
# Publish |
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 Markdig; | |
using Microsoft.Graph.Models.ExternalConnectors; | |
using YamlDotNet.Serialization; | |
// [...] trimmed for brevity | |
static class ContentService | |
{ | |
static IEnumerable<BlogPost> Extract() | |
{ |
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() | |
{ |
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
{ | |
"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
{ | |
"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
<html> | |
<head> | |
<title>v0.27.0</title> | |
</head> | |
<body> | |
<h1>v0.27.0</h1> | |
<h2>Add schema for the MinimalPermissionsGuidancePlugin</h2> | |
<p>No description provided.</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": "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
mgdp --config presets/microsoft-graph-rate-limiting.json |