Skip to content

Instantly share code, notes, and snippets.

View memory-lovers's full-sized avatar
🥳

Memory Lovers memory-lovers

🥳
View GitHub Profile
[
{
"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
### https://raw.github.com/github/gitignore/ae5dd85759b8a94e5f3276383295f3b655aaa975/Java.gitignore
*.class
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war