Skip to content

Instantly share code, notes, and snippets.

View apalyukha's full-sized avatar
🇺🇦

Andrii Paliukha apalyukha

🇺🇦
View GitHub Profile
@apalyukha
apalyukha / http_status.py
Created August 3, 2019 06:38
http status
STATUS_CODES = {
100: "100 Continue",
101: "101 Switching Protocols",
102: "102 Processing",
200: "200 OK",
201: "201 Created",
202: "202 Accepted",
203: "203 Non-authoritative Information",
204: "204 No Content",
@apalyukha
apalyukha / .bashrc
Created January 23, 2019 19:43
Syntax highlighting in the terminal
alias ccat='pygmentize -g'
@apalyukha
apalyukha / sqlite_dependecies.xml
Created January 7, 2019 13:47
Spring Boot. dependencies for connecting a SQLite database
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
</dependency>
<dependency>
<groupId>com.zsoltfabok</groupId>
<artifactId>sqlite-dialect</artifactId>
<version>1.0</version>
</dependency>
@apalyukha
apalyukha / application.properties
Created January 7, 2019 13:45
Spring Boot. SQLite database settings
spring.datasource.url=jdbc:sqlite:data.db
spring.jpa.database-platform=org.hibernate.dialect.SQLiteDialect
@apalyukha
apalyukha / mustache-dependency.xml
Created January 7, 2019 13:44
Spring Boot: mustache dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mustache</artifactId>
</dependency>
@apalyukha
apalyukha / application.properties
Created January 7, 2019 13:44
Spring Boot. JPA
spring.datasource.url=jdbc:postgresql://localhost/sweater
spring.datasource.username=postgres
spring.datasource.password=123
spring.jpa.generate-ddl=true
@apalyukha
apalyukha / pom.xml
Created January 7, 2019 13:42
Spring Boot. JPA
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>
@apalyukha
apalyukha / application.properties
Created January 7, 2019 13:42
Spring Boot: Spring Security
spring.mustache.expose-request-attributes=true
@apalyukha
apalyukha / application.properties
Created January 7, 2019 13:41
Spring Boot. Freemarker template engine
spring.freemarker.expose-request-attributes=true
@apalyukha
apalyukha / pom.xml
Created January 7, 2019 13:40
Spring Boot. Freemarker template engine
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>