Skip to content

Instantly share code, notes, and snippets.


Justin Yoo justinyoo

View GitHub Profile
View 01-local-settings-min.json
"Values": {
justinyoo /
Last active February 15, 2022 07:02
Things to Know When Writing Azure Functions in Java
process_id=$(sudo lsof -nP -i4TCP:7071 | grep LISTEN | awk '{print $2}')
sudo kill -9 $process_id
justinyoo /
Created January 26, 2022 15:21
This script kills the Azure Functions process for IntelliJ IDEA on Mac
# Even after IntelliJ IDEA stops running the function app,
# the process is still alive. It only happens on IntelliJ IDEA on Mac.
# This script finds the Azure Functions process and kill it.
# You don't need this script if you use terminal or Visual Studio Code.
# You don't need this script if you run IntelliJ IDEA on Windows.
# Usage: ./ -p 7071
justinyoo /
Last active December 19, 2021 10:39
Oh My Azure Cloud Shell
sh -c "$(curl -fsSL \"
justinyoo / 01-fncapp-31-package-reference.xml
Last active December 7, 2021 10:32
Migrating Azure Functions OpenAPI Extension to V4
View 01-fncapp-31-package-reference.xml
<Project Sdk="Microsoft.NET.Sdk">
<!-- .NET Core 2.1 or 3.1: In-process Worker -->
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.OpenApi" Version="1.0.0" />
justinyoo / 01-original-workflow.yaml
Last active November 30, 2021 06:28
Refactoring GitHub Actions Workflow for Azure Static WebApps
View 01-original-workflow.yaml
### original workflow: azure-static-web-apps-xxxx-xxxx-xxxx.yml ###
name: Azure Static Web Apps CI/CD
- main
types: [opened, synchronize, reopened, closed]
justinyoo /
Last active December 27, 2022 11:21
Removing .NET SDKs from MacOS Manually
sudo rm -rf /usr/local/share/dotnet/sdk/$sdkVersion
sudo rm -rf /usr/local/share/dotnet/sdk-manifests/$sdkVersion
justinyoo / 01-run-byte-array.cs
Last active October 26, 2021 06:34
Transmitting Binary Data via OpenAPI on Azure Functions
View 01-run-byte-array.cs
public static class BinaryDataHttpTrigger
[OpenApiOperation(operationId: "run.bytearray", tags: new[] { "bytearray" }, ...)]
[OpenApiSecurity("function_key", SecuritySchemeType.ApiKey, Name = "code", In = OpenApiSecurityLocationType.Query)]
[OpenApiRequestBody(contentType: "text/plain", bodyType: typeof(byte[]), ...)]
[OpenApiResponseWithBody(statusCode: HttpStatusCode.OK, contentType: "image/png", bodyType: typeof(byte[]), ...)]
justinyoo / 01-apikey-in-query-auth-flow-httptrigger.cs
Last active October 5, 2021 08:40
Securing Azure Functions Endpoints via OpenAPI Auth
View 01-apikey-in-query-auth-flow-httptrigger.cs
public static class ApiKeyInQueryAuthFlowHttpTrigger
[OpenApiOperation(operationId: "apikey.query", tags: new[] { "apikey" }, Summary = "API Key authentication code flow via querystring", Description = "This shows the API Key authentication code flow via querystring", Visibility = OpenApiVisibilityType.Important)]
In = OpenApiSecurityLocationType.Query,
Name = "code")]