Skip to content

Instantly share code, notes, and snippets.

View borymskyi's full-sized avatar
🔥
action expresses priorities

Dmytrii Borymskyi borymskyi

🔥
action expresses priorities
  • Ukraine
View GitHub Profile
@borymskyi
borymskyi / gist:d3159c3d6f1afccb913495f79e08818e
Created September 17, 2023 18:27
winwin-comment-docker-compose-example
version: '3.8'
services:
db:
image: postgres
container_name: "db"
volumes:
- pg_data:/var/lib/postgresql/data
environment:
@borymskyi
borymskyi / gist:2c89ce9113dcdc67dbdc60ec60567803
Created September 17, 2023 18:21
winwin-env-file-example
#Application
APP_PORT=8080
#Postgres
POSTGRES_DB_NAME=winwin
DB_HOST=localhost
EXTERNAL_DB_PORT=5432
DB_USERNAME=winwin
DB_PASSWORD=winwin
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",
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",
@borymskyi
borymskyi / persistence.xml
Last active February 17, 2023 10:04
property file for hibernate factory entity manager
<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"/>
@borymskyi
borymskyi / gist:cf151ec8241d8ca5f653369234b199bf
Last active September 13, 2024 07:48
Устранение ошибки в PowerShell yarn --version
Ошибка:
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
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