Skip to content

Instantly share code, notes, and snippets.

View memory-lovers's full-sized avatar
🥳

Memory Lovers memory-lovers

🥳
View GitHub Profile
@memory-lovers
memory-lovers / create-pr-on-branch.yml
Created July 5, 2025 23:50
GitHub Actions: ブランチ作成時に自動でPRを作成
name: 自動PR作成
on:
push:
branches:
- '*/**'
permissions:
contents: read
pull-requests: write
[
{
"word": "Asshole",
"kana": "アスホール",
"meaning": "いやな奴(Ass=お尻、Hole=穴)",
"notice": "「うざい野郎」「ろくでなし」"
},
{
"word": "あばずれ",
"kana": "あばずれ",
#!/bin/bash
# Usage:
# bash <(curl https://gist.githubusercontent.com/memory-lovers/b5424b3d91857b975b138371143dbf83/raw/c807b6813f619a11b850cde7b9c6e315505727a4/create_android_dirs.sh)
dirs='
config/di
config/exception
domain/entity
domain/enums
domain/repository
web: java -jar build/libs/*.jar --server.port=$PORT --spring.profiles.active=heroku_dev
# ===================================================================
# APPLICATION PROPERTIES
# ===================================================================
# ----------------------------------------
# DATA PROPERTIES
# ----------------------------------------
# DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.url=jdbc:h2:file:./database/test;MODE=PostgreSQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
# ===================================================================
# APPLICATION PROPERTIES
# ===================================================================
# ----------------------------------------
# DATA PROPERTIES
# ----------------------------------------
# DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.url=jdbc:postgres://<hostname>:5432/<dbname>
# ===================================================================
# APPLICATION PROPERTIES
# ===================================================================
# ----------------------------------------
# DATA PROPERTIES
# ----------------------------------------
# DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.url=jdbc:postgres://<hostname>/<dbname>
# ===================================================================
# APPLICATION PROPERTIES
# ===================================================================
# ----------------------------------------
# CORE PROPERTIES
# ----------------------------------------
# LOGGING
logging.file=logs/app.log
package com.example
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Profile
import java.net.URI
import java.net.URISyntaxException
# ===================================================================
# APPLICATION PROPERTIES
# ===================================================================
# ----------------------------------------
# CORE PROPERTIES
# ----------------------------------------
# LOGGING
logging.file=logs/app.log