GNU Octave is a high-level interpreted language, primarily intended for numerical computations.
(via GNU Octave)
- not equal
~= - logical AND
&&
| #!/bin/bash | |
| trap 'echo "# $BASH_COMMAND";read' DEBUG | |
| echo line1 | |
| echo line2 | |
| echo line3 | |
| echo "Hello World"; |
| Option1: | |
| 1. install json server | |
| npm install -g json-server | |
| or for local install without -g | |
| npm install json-server | |
| 2. create file with "db" db.json |
| version: '3.8' | |
| services: | |
| dynamodb: | |
| container_name: dynamodb | |
| image: amazon/dynamodb-local:latest | |
| ports: | |
| - "8000:8000" | |
| localstack: |
| list.stream() | |
| .collect(Collectors.collectingAndThen( | |
| Collectors.groupingBy(A::getId, Collector.of( | |
| () -> new A<>(null, 0d, null), (acc, a) -> { | |
| acc.setId(a.getId()); | |
| acc.setQuant(Double.sum(acc.getQuant(), a.getQuant())); | |
| acc.setType(a.getType()); | |
| }, (a1, a2) -> { | |
| a1.setQuant(Double.sum(a1.getQuant(), a2.getQuant())); | |
| return a1; |
| 1. Найти что примаплено к текущей папке. Например смотрим что примаплено к папке images | |
| sudo grep -h images /proc/*/task/*/mountinfo | sort -u | |
| 2. Стандартные пути томката | |
| /usr/share/tomcat | |
| /var/lib/tomcat | |
| Конфиги | |
| /etc/tomcat | |
| Логи | |
| /var/log/tomcat |
| //на другой стороне может быть ничего, а может @OneToMany | |
| @ManyToOne(cascade = {CascadeType.PERSIST, CascadeType.MERGE, CascadeType.DETACH, CascadeType.REFRESH}) | |
| @OnDelete(action = OnDeleteAction.CASCADE) | |
| @JoinColumn(name = "station_id", nullable = false) | |
| private StationEntity parent; | |
| /*======================================*/ | |
| //на другой стороне | |
| // @ManyToOne | |
| // @JoinColumn(name = "task_id", nullable = false) |
GNU Octave is a high-level interpreted language, primarily intended for numerical computations.
(via GNU Octave)
~=&&| 1.Список запущенных докер образов | |
| docker ps | |
| CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
| 444df81fb674 os-registry.ru/gkc/sc-db:1.0.0 "docker-entrypoint.s…" 22 hours ago Up 22 hours 0.0.0.0:5433->5432/tcp sc-db | |
| 2. Остановить контейнер | |
| docker stop <container_name> | |
| где <container_name> из п.1 например sc-db |
| FTP | |
| openssl s_client -connect myftpserver.office:21 -starttls ftp | |
| To test http SSL connection type: | |
| openssl s_client -connect www.sslshopper.com:443 -CApath /etc/ssl/certs/ | |
| Additionally path to certificates has been added (to prevent broken chain issues). | |
| To test FTPS connection use this command (thanks for test FTPS server at rebex.net): | |
| openssl s_client -connect test.rebex.net:990 -CApath /etc/ssl/certs/ |
| list.stream() | |
| .collect(Collectors.collectingAndThen( | |
| Collectors.groupingBy(A::getId, Collector.of( | |
| () -> new A<>(null, 0d, null), (acc, a) -> { | |
| acc.setId(a.getId()); | |
| acc.setQuant(Double.sum(acc.getQuant(), a.getQuant())); | |
| acc.setType(a.getType()); | |
| }, (a1, a2) -> { | |
| a1.setQuant(Double.sum(a1.getQuant(), a2.getQuant())); | |
| return a1; |