Skip to content

Instantly share code, notes, and snippets.

View drucoder's full-sized avatar
😋
lets code right now!

Andrew drucoder

😋
lets code right now!
View GitHub Profile
@drucoder
drucoder / pom.xml
Created May 9, 2018 13:18
Spring Boot. Быстрый старт: Mail, подтверждение ящика
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
@drucoder
drucoder / application.properties
Last active April 6, 2024 09:05
Spring Boot. Быстрый старт: Mail, подтверждение ящика
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.mail.host=smtp.yandex.ru
[email protected]
spring.mail.password=12345678
spring.mail.port=465
spring.mail.protocol=smtps
mail.debug=true
@drucoder
drucoder / pom.xml
Created May 13, 2018 07:57
Spring Boot. Быстрый старт Flyway
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
@drucoder
drucoder / application.properties
Created May 13, 2018 07:58
Spring Boot. Быстрый старт Flyway
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=create
@drucoder
drucoder / pom.xml
Created May 21, 2018 15:27
Spring Boot. Быстрый старт. Spring Session
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-jdbc</artifactId>
</dependency>
@drucoder
drucoder / application.properties
Created May 21, 2018 15:30
Spring Boot. Быстрый старт. Spring Session (+ reCaptcha)
recaptcha.secret=6LduQVoUAAAAACpkNtp9c5WWgyGENzIxZqF9SbZL
spring.session.jdbc.initialize-schema=always
spring.session.jdbc.table-name=SPRING_SESSION
@drucoder
drucoder / pom.xml
Created May 25, 2018 15:40
Spring Boot. Быстрый старт: deploy на сервер
<!-- JAXB -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0</version>
@drucoder
drucoder / config
Created May 25, 2018 15:41
Spring Boot. Быстрый старт: deploy на сервер
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:8080;
}
location /img/ {
alias /home/dru/uploads/;
}
@drucoder
drucoder / .bashrc
Created June 14, 2018 17:58
Code highlighting in console
alias ccat='pygmentize -g'
@drucoder
drucoder / requests.js
Created June 18, 2018 05:48
Spring Boot REST: тестироем rest методы
// GET all
fetch('/message/').then(response => response.json().then(console.log))
// GET one
fetch('/message/2').then(response => response.json().then(console.log))
// POST add new one
fetch(
'/message',
{