Skip to content

Instantly share code, notes, and snippets.

Memory Lovers memory-lovers

Block or report user

Report or block memory-lovers

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 create_android_dirs.sh
#!/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
View Procfile
web: java -jar build/libs/*.jar --server.port=$PORT --spring.profiles.active=heroku_dev
View application-local.properties
# ===================================================================
# 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
View application-heroku_dev.properties
# ===================================================================
# APPLICATION PROPERTIES
# ===================================================================
# ----------------------------------------
# DATA PROPERTIES
# ----------------------------------------
# DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.url=jdbc:postgres://<hostname>:5432/<dbname>
View application-heroku.properties
# ===================================================================
# APPLICATION PROPERTIES
# ===================================================================
# ----------------------------------------
# DATA PROPERTIES
# ----------------------------------------
# DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.url=jdbc:postgres://<hostname>/<dbname>
View application.properties
# ===================================================================
# APPLICATION PROPERTIES
# ===================================================================
# ----------------------------------------
# CORE PROPERTIES
# ----------------------------------------
# LOGGING
logging.file=logs/app.log
View HerokuConfig
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
View application.properties template for Spring Boot
# ===================================================================
# APPLICATION PROPERTIES
# ===================================================================
# ----------------------------------------
# CORE PROPERTIES
# ----------------------------------------
# LOGGING
logging.file=logs/app.log
View .gitignore Eclipse Java Gradle: generated by gibo
### https://raw.github.com/github/gitignore/ae5dd85759b8a94e5f3276383295f3b655aaa975/Java.gitignore
*.class
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
You can’t perform that action at this time.