Skip to content

Instantly share code, notes, and snippets.

View NandanSatheesh's full-sized avatar
💻
Peace

Nandan Satheesh NandanSatheesh

💻
Peace
View GitHub Profile
@NandanSatheesh
NandanSatheesh / config.yml
Last active October 8, 2019 11:42
Common Circle CI Config for Android Apps
version: 2
jobs:
build:
resource_class: large
branches:
only:
- master
working_directory: ~/code
docker:
- image: circleci/android:api-28-alpha
@NandanSatheesh
NandanSatheesh / analysis_options.yaml
Last active November 6, 2019 06:23
Linter Configs for Flutter. Medium Level of Strictness.
include: package:pedantic/analysis_options.yaml
analyzer:
exclude:
- lib/ui/styles/**
- lib/ui/images/**
linter:
rules:
@NandanSatheesh
NandanSatheesh / SwaggerConfig.java
Last active November 16, 2019 14:38
Swagger Configuration for Spring Boot
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableSwagger2
@NandanSatheesh
NandanSatheesh / application.properties
Created December 4, 2019 07:52
My Config for Spring with MySQL
spring.datasource.url=jdbc:mysql://localhost:3306/test?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.ImprovedNamingStrategy
# Hibernate ddl auto (create, create-drop, validate, update)