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
Windows: https://github.com/coreybutler/nvm-windows | |
= install nvm-setup.exe (https://github.com/coreybutler/nvm-windows/releases) | |
= open PowerShell: | |
- nvm install lts | |
- nvm list | |
- nvm use (version) | |
- nvm install -g yarn | |
- node -v |
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
Ошибка: | |
yarn : Невозможно загрузить файл C:\Program Files\nodejs\yarn.ps1, так как выполнение сценариев отключено в этой | |
системе. Для получения дополнительных сведений см. about_Execution_Policies по адресу | |
https:/go.microsoft.com/fwlink/?LinkID=135170. | |
строка:1 знак:1 | |
+ yarn --version | |
+ ~~~~ | |
+ CategoryInfo : Ошибка безопасности: (:) [], PSSecurityException | |
+ FullyQualifiedErrorId : UnauthorizedAccess |
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
<persistence | |
xmlns="http://xmlns.jcp.org/xml/ns/persistence" version="2.1"> | |
<persistence-unit name="default"> | |
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> | |
<properties> | |
<property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5444/bobocode2" /> | |
<property name="javax.persistence.jdbc.user" value="postgres"/> | |
<property name="javax.persistence.jdbc.password" value="admin"/> |
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
public static void main(String[] args) { | |
String[] ipAddresses = { | |
"192.168.1.1", | |
"10.0.0.1", | |
"172.16.0.1", | |
"255.255.255.0", | |
"192.168.256.1", | |
"192.168.1.2", | |
"10.0.0.2", |
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
public class Main { | |
public static void main(String[] args) { | |
String[] ipAddresses = { | |
"192.168.1.1", | |
"10.0.0.1", | |
"172.16.0.1", | |
"255.255.255.0", | |
"192.168.256.1", | |
"192.168.1.2", |
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
#Application | |
APP_PORT=8080 | |
#Postgres | |
POSTGRES_DB_NAME=winwin | |
DB_HOST=localhost | |
EXTERNAL_DB_PORT=5432 | |
DB_USERNAME=winwin | |
DB_PASSWORD=winwin |
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
version: '3.8' | |
services: | |
db: | |
image: postgres | |
container_name: "db" | |
volumes: | |
- pg_data:/var/lib/postgresql/data | |
environment: |