Skip to content

Instantly share code, notes, and snippets.

View kazusato's full-sized avatar

Kazuhiko Sato kazusato

View GitHub Profile
@kazusato
kazusato / AzureADPowerShell.md
Last active August 24, 2022 00:37
PowerShell によるAzure AD操作

モジュールの種類

Azure AD用モジュールの種類については、以下のページが参考になる(2017年と若干古いが)。

https://jpazureid.github.io/blog/azure-active-directory/powershell-module/

このドキュメントに記載されている通り、Azure AD関連のPowerShellモジュールは以下の3種類がある。

  • MSOnline
  • AzureAD
# Summary
- Enable a "test" profile in the test class.
- Check the active profile within the run method of the CommandLineRunner class
# MyApplication
```
import org.springframework.boot.CommandLineRunner
import org.springframework.boot.autoconfigure.SpringBootApplication
@kazusato
kazusato / springboot-library-project.md
Last active July 28, 2020 19:21
Spring Bootでライブラリープロジェクトを作る

はじめに

目的

Spring Bootアプリケーションで、複数アプリケーション間で共通に使われるコンポーネントを別のプロジェクトに切り出し、 当該プロジェクトをJARとしてMavenリポジトリー経由で配布可能とする。

前提

  • ビルドはGradle、開発言語はKotlin。プロジェクトはSpring Initializrで作るが、build.gradleはGroovy DSLに差し替え済。
@kazusato
kazusato / README.md
Created July 19, 2020 08:06
create-nuxt-app with npm init
$ npm init nuxt-app

create-nuxt-app v3.1.0
✨  Generating Nuxt.js project in .
? Project name: (aad-msal)
@kazusato
kazusato / building-falco-probe-driver-for-aks.md
Last active April 3, 2023 10:45
Building Falco probe driver for Azure AKS nodes

Background

Falco

Falco is an open source product for container runtime security.

https://falco.org/

Installation for Kubernetes

@kazusato
kazusato / openapi-docs-client-generation-spring-boot.md
Last active May 19, 2021 16:40
OpenAPI Docs and Client code generation for Spring Boot applications

Environment

  • Spring Boot 2.x
  • Gradle
  • Java

Steps

Step1: Enable springdoc-openapi in app

@kazusato
kazusato / gist:c9637635adf819e722cb8308775e3fe7
Created February 28, 2020 17:58
Default Admin Credentials for SonarQube
admin/admin
https://docs.sonarqube.org/latest/instance-administration/security/#Authentication-AdminCredentialsDefaultAdminCredentials
@kazusato
kazusato / run_sonarqube_with_docker_compose.md
Last active December 9, 2023 06:45
Run SonarQube with docker-compose

Problem

There is an instruction to run SonarQube with docker on the following URL (see the "Installing the Server from the Docker Image" section):

https://docs.sonarqube.org/latest/setup/install-server/

However, when I started a container with the following command, an Permission Denied error occurred.

@kazusato
kazusato / rails_tips.md
Last active February 4, 2020 20:31
Rails Tips

ページ追加

app/controllers/xxx_controller.rb

追加したいコントローラーメソッドを追加

config/routes.rb

ルーティング設定を追加

get '/xxx/list'
get '/xxx/list/:group_id', to: 'xx#list_by_group_id'
@kazusato
kazusato / DisableAutoConfigCassandraSpringBoot.md
Last active January 11, 2020 10:55
Disabling autoconfiguration for Cassandra on Spring Boot Test

Purpose

When we run SpringBootTest annotated tests with Spring Data Cassandra, Cassndra conneciton is configured automatically. However, some tests do not need such connection and, if you do not have a Cassandra server to connect, your tests will fail. This document explains how you can configure JUnit tests not to connect to Cassandra in a Spring Data Cassandra enabled project.

Add an annotation to your test class

If you would like to disable autoconfiguration for Cassandra, you should add the following annotation to your test class:

@SpringBootTest