Skip to content

Instantly share code, notes, and snippets.

Justin Yoo justinyoo

Block or report user

Report or block justinyoo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Ignite the Tour Seoul materials.md

Ignite the Tour - Seoul: 자료 모음

공유된 커뮤니티 발표 자료 (한글)

View build-message-card.cs
private async Task ProcessAsync(string webhookUri, string summary, string title = null, string text = null, string themeColor = null, string sections = null, string actions = null)
{
var card = new MessageCard()
{
Title = title,
Summary = summary,
Text = text,
ThemeColor = themeColor,
Sections = ParseCollection<Section>(sections),
Actions = ParseCollection<BaseAction>(actions)
View config-metadata-en.js
...
module.exports = {
siteName: 'Dev Kimchi',
siteDescription: "Fermentation: Turning .NET, Web and Cloud into Something",
siteUrl: 'https://devkimchi.com',
titleTemplate: `%s | DevKimchi`,
icon: 'src/favicon.png',
...
@justinyoo
justinyoo / action-download-artifact.yaml
Created Dec 15, 2019
Building CI/CD Pipelines with GitHub Actions
View action-download-artifact.yaml
- name: Download app
uses: actions/download-artifact@v1
with:
name: app
path: src/WebApp/dist
@justinyoo
justinyoo / az-storage-blob-activate.sh
Last active Dec 12, 2019
Publishing Static Website to Azure Blob Storage via GitHub Actions
View az-storage-blob-activate.sh
# Activate static website hosting feature
az storage blob service-properties update \
--account-name <STORAGE_ACCOUNT_NAME> \
--static-website true \
--index-document index.html \
--404-document 404/index.html
@justinyoo
justinyoo / create-dotnet-project.sh
Last active Dec 4, 2019
Tools for .NET Developers on Mac
View create-dotnet-project.sh
dotnet new sln --name MySolution
dotnet new classlib --name MyClassLib --language c#
dotnet sln add MyClassLib
@justinyoo
justinyoo / blob-trigger.cs
Created Nov 29, 2019
25 Days of Serverless
View blob-trigger.cs
[FunctionName(nameof(GiftPhotoValidationFunction))]
public static async Task Run([BlobTrigger(_containerName)] CloudBlockBlob blockBlob, ILogger log)
{
log.LogInformation("Validating Gift Image is a PNG");
if (blockBlob.Name.EndsWith(".png", StringComparison.InvariantCultureIgnoreCase))
{
log.LogInformation("Confirmed PNG");
}
else
@justinyoo
justinyoo / backup-secrets.cs
Created Nov 26, 2019
Backup & Restore Key Vault Secrets via Azure Functions
View backup-secrets.cs
public async Task<List<BackupSecretResult>> BackupSecretsAsync(List<string> secrets)
{
// Declares a KeyVaultClient instance.
var azureServiceTokenProvider = new AzureServiceTokenProvider();
var kv = new KeyVaultClient(
new KeyVaultClient.AuthenticationCallback(
azureServiceTokenProvider.KeyVaultTokenCallback));
// Performs the backup and add the result into the list.
var results = new List<BackupSecretResult>();
@justinyoo
justinyoo / new-azresourcegroupdeployment.txt
Last active Nov 20, 2019
Backup & Restore Key Vault Secrets via Logic Apps
View new-azresourcegroupdeployment.txt
New-AzResourceGroupDeployment `
-Name "[DEPLOYMENT_NAME]" `
-ResourceGroupName "[RESOURCE_GROUP_NAME]"
-TemplateFile "integrationAccount.json" `
-TemplateParameterFile "integrationAccount.parameters.json" `
-Verbose
@justinyoo
justinyoo / sort-action.js
Created Nov 13, 2019
Getting the Latest Array Item with Inline Script in Logic App
View sort-action.js
"use strict";
// Assign the array value from the output of the previous action, `List Backups`.
var items = workflowContext.actions.List_Backups.outputs.body.value;
var sorted = items.sort(function (a, b) {
var dateA = a.Name.replace('.json', '');
var dateB = b.Name.replace('.json', '');
if (dateA > dateB) {
You can’t perform that action at this time.