스프링 부트에서는 애플리케이션에서 필요한 속성을 "애플리케이션 구성파일" application.yml
(혹은 applicatoin.properties
) 에 작성하여 활용합니다.
Note
|
데이터구조를 계층형으로 표현할 수 있어서 개인적으로 |
import cv2 | |
import subprocess | |
import numpy as np | |
# I'm using this package for convenience detecting and capturing Lepton camera. It's not neccessary tho. | |
from flirpy.camera.lepton import Lepton | |
def ktoc(val): | |
return (val - 27315) / 100.0 |
Follow the instructions on Github to Create an Access Token in Github
By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an “osxkeychain” mode, which caches credentials in the secure keychain that’s attached to your system account.
You can tell Git you want to store credentials in the osxkeychain by running the following:-
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" | |
"https://checkstyle.org/dtds/configuration_1_3.dtd"> | |
<!-- | |
Checkstyle configuration that checks the Google coding conventions from Google Java Style | |
that can be found at https://google.github.io/styleguide/javaguide.html | |
Checkstyle is very configurable. Be sure to read the documentation at |
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
######################################################################## | |
# from https://cipherli.st/ # | |
# and https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html # | |
######################################################################## | |
#ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; | |
ssl_protocols TLSv1.2 TLSv1.3; | |
ssl_prefer_server_ciphers on; | |
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"; | |
ssl_ecdh_curve secp384r1; |
@RequiredArgsConstructor | |
public class HttpClientUtil { | |
private final HttpServletRequest request; | |
private final String[] HEADERS_TO_TRY_TO_GET_IP = { | |
"X-Forwarded-For", | |
"Proxy-Client-IP", | |
"WL-Proxy-Client-IP", | |
"HTTP_X_FORWARDED_FOR", |
dependencies { | |
implementation "com.querydsl:querydsl-jpa" | |
implementation "com.querydsl:querydsl-core" | |
implementation "com.querydsl:querydsl-collections" | |
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jpa" // querydsl JPAAnnotationProcessor | |
annotationProcessor "jakarta.annotation:jakarta.annotation-api" // This prevents java.lang.NoClassDefFoundError | |
annotationProcessor "jakarta.persistence:jakarta.persistence-api" // This prevents java.lang.NoClassDefFoundError | |
} |