mkdir -p /root/pki
# Поменяйте client на ваше имя клиентского подключения
set CLIENT_NAME client # fish
CLIENT_NAME=client # bash
set DOMAIN_FQDN localhost # fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Use with docker-compose up | |
version: "3.9" | |
services: | |
keycloak-service: | |
image: quay.io/keycloak/keycloak:23.0.4 | |
restart: always | |
network_mode: host | |
ports: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Use with docker-compose -f docker-compose.yml up | |
version: "3.9" | |
services: | |
postgresql-service: | |
container_name: springapp-postgres-dev | |
network_mode: host | |
environment: | |
POSTGRES_PASSWORD: postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.me.springapp.configuration; | |
import com.me.springapp.exceptions.NoSuchEntityException; | |
import com.me.springapp.model.User; | |
import com.me.springapp.security.service.UserDetailsServiceImpl; | |
import com.me.springapp.security.userdetails.UserDetailsImpl; | |
import com.me.springapp.service.UserService; | |
import lombok.RequiredArgsConstructor; | |
import org.jetbrains.annotations.NotNull; | |
import org.springframework.context.annotation.Bean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Приветствую, как вам такая заготовка для проекта: | |
Основная идея - иметь базу, с которой можно начинать, в духе Минимализма, но как можно более приближенную к реальности, и которая | |
поможет выбрать альтернативы: | |
0. последний Спринг Бут и Java 20 + Rest API, чтобы рассмотреть последние фишки типа spring-boot-docker-compose или TestContainers. | |
Maven или Gradle? Gradle намного лаконичней | |
1. Сущности BaseModel, Person + enum State, PersonRole (m2m), UserDetailService.Можно продемонстрировать все остальные виды связей | |
(One2One, One2Many), например, добавить ещё одну последнюю сущность Article, нужно ли делать обратные связи. Postgresql. | |
Использовать даты createdAt, updatedAt и обосновать как работать с часовыми поясами. | |
Что-то можно взять отсюда - https://github.com/JavaOPs/bootjava/tree/patched | |
2. Миграции - обосновать выбор Liquibase и sql миграций )). Как лучше организовать работу (это в ваших видео уже было) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-Command # Retrieves a list of all the commands available to PowerShell | |
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules) | |
Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft* | |
Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item" | |
Get-Help # Get all help topics | |
Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page) | |
Get-Help -Name Get-Command # Get help for a specific PowerShell function | |
Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SFML/Graphics.hpp> | |
#include <time.h> | |
using namespace sf; | |
int main() | |
{ | |
srand(time(0)); | |
RenderWindow app(VideoMode(400, 400), "Minesweeper!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.task.task19.task1919; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.Comparator; | |
import java.util.Map; | |
import java.util.TreeMap; | |
import java.util.stream.Collectors; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.task.task19.task1920; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.Map; | |
import java.util.TreeMap; | |
import java.util.stream.Collectors; | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example; | |
import java.io.IOException; | |
import java.nio.charset.StandardCharsets; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.Map; | |
import java.util.function.Function; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; |
NewerOlder