Skip to content

Instantly share code, notes, and snippets.

View dzeyelid's full-sized avatar
🐹
Enjoying developing! 🌠

Kazumi OHIRA dzeyelid

🐹
Enjoying developing! 🌠
View GitHub Profile

gistのサンプル

説明 デフォルト 左利き用案
アイテムを落とす Q U
持ち物 E O
ジャンプ /上昇(飛行時) SPACE
しのび足 /下降(飛行時) SHIFT
ダッシュ CONTROL
左に平行移動 A J
右に平行移動 D L
後退 S K
const body = {
text: alert.schemaId,
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": `:loudspeaker: リソースグループ \`${resourceGroup}\` の利用が予算の ${percentage}% を超えました!\nコストの見直しを行ってください。`,
}
},
@dzeyelid
dzeyelid / azure-cost-alert-webhook-data-sample.json
Created August 7, 2020 11:29
A sample of the data via Azure Cost Alert Webhook
{
"schemaId": "AIP Budget Notification",
"data": {
"SubscriptionName": "<Subscription name>",
"SubscriptionId": "12345678-1234-1234-1234-123456789012",
"EnrollmentNumber": "",
"DepartmentName": "",
"AccountName": "",
"BillingAccountId": "",
"BillingProfileId": "",
@dzeyelid
dzeyelid / README.md
Created April 12, 2020 03:01
Node-RED v1.0.x で sshd のログを監視するフローのサンプルです。

概要

Node-RED で sshd のログを監視するフローのサンプルです。

このフローは、Ubuntu の /var/log/auth.log を監視し、不正なSSHログインを検知します。検知すると Slack へ通知し、不正ログイン状況を集計してダッシュボードに表示します。

動作環境

  • Ubuntu 18.04 LTS
@dzeyelid
dzeyelid / arm-template.json
Last active March 2, 2020 01:39
ARM template sample of a combine with user-defined functions and multi-line syntax. It's more readable. When you run this template with Azure CLI, you should apply `--handle-extended-json-format` option.
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {
"settings": "[
createArray(
setting.create('serviceA', bool('true')),
setting.create('serviceB', bool('false'))
)
@dzeyelid
dzeyelid / azure-pipelines.yml
Created December 15, 2019 10:41
azure-pipelines.yml sample for "Check! Code Coverage with Jest on Azure DevOps"
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm install
npm run coverage
displayName: 'npm install and output coverage'
@dzeyelid
dzeyelid / package.json
Last active December 15, 2019 10:40
package.json sample for "Check! Code Coverage with Jest on Azure DevOps"
"scripts": {
"coverage": "jest --coverage --coverageReporters=cobertura"
},
@dzeyelid
dzeyelid / create-env-azure-bastion.sh
Created November 16, 2019 03:18
Bash script to create an environment for Azure Bastion
PREFIX=try-bastion
RESOURCE_GROUP_NAME=${PREFIX}-rg
LOCATION=japaneast
VNET_NAME=${PREFIX}-vnet
SUBNET_NAME=${PREFIX}-subnet
BASTION_NAME=${PREFIX}-bastion
BASTION_PUBLICIP_NAME=${PREFIX}-bastion-ip