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
1. use this tutorial | |
https://spring.io/guides/gs/convert-jar-to-war/ or https://spring-projects.ru/guides/convert-jar-to-war-maven/ | |
2. use tomcat docker image | |
https://github.com/bitnami/bitnami-docker-tomcat | |
3. create dockerfile | |
``` | |
FROM bitnami/tomcat:9.0 | |
COPY target/*.war /opt/bitnami/tomcat/webapps_default/hello.war |
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
Enable ssh https://linuxize.com/post/how-to-enable-ssh-on-raspberry-pi/ | |
To enable SSH on your Raspberry Pi perform the following steps: | |
Power off your Raspberry Pi and remove the SD card. | |
Insert the SD card into your computer’s card reader. The SD card will mount automatically. | |
Navigate to the SD card boot directory using your OS file manager. Linux and macOS users can also do this from the command line. | |
Create a new empty file named ssh, without any extension, inside the boot directory. | |
Remove the SD card from your computer and put it in your Raspberry Pi. | |
Power on your Pi board. On boot Pi will check whether this file exists and if it does, SSH will be enabled and the file is removed. | |
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
1. SearchResponse ee = SearchResponse | |
.fromXContent( | |
new JsonXContentParser( | |
NamedXContentRegistry.EMPTY, | |
new JsonFactory().createParser(content))); | |
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
Тестировалось на fedora | |
1. устанавливаем https://computingforgeeks.com/install-cisco-anyconnect-on-ubuntu-debian-fedora/ | |
2. Настройка сертификата | |
Имеется клиенский серт с ключом client.pfx | |
openssl pkcs12 -in client.pfx -out certificate.pem -nokeys | |
openssl pkcs12 -in client.pfx -out certificate.key -nocerts |
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 Asset { | |
private AssetType type; | |
@JsonTypeInfo( | |
use = JsonTypeInfo.Id.NAME, | |
include = JsonTypeInfo.As.EXTERNAL_PROPERTY, | |
property = "type" | |
) | |
@JsonSubTypes({ | |
@JsonSubTypes.Type(value = ImageAssetProperties.class, name = "image"), |
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
(IntellijIdea) | |
we have EsServer.jar archive and we plan to change EsServer.class file and rebuild jar. | |
1. Unzip JAR | |
unzip EsServer.jar -d ./out/ | |
# or `jar xf ./EsServer.jar` to unzip to current dir | |
2. Decompile in IntellijIdea or by https://www.mikeleitz.com/blog/2018/8/9/decompile-java-classes-on-command-line `EsServer.class` |
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
(IntellijIdea) | |
we have EsServer.jar archive and we plan to change EsServer.class file and rebuild jar. | |
1. Unzip JAR | |
unzip EsServer.jar -d ./out/ | |
# or `jar xf ./EsServer.jar` to unzip to current dir | |
2. Decompile in IntellijIdea or by https://www.mikeleitz.com/blog/2018/8/9/decompile-java-classes-on-command-line `EsServer.class` |
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
(IntellijIdea) | |
we have EsServer.jar archive and we plan to change EsServer.class file and rebuild jar. | |
1. Unzip JAR | |
unzip EsServer.jar -d ./out/ | |
# or `jar xf ./EsServer.jar` to unzip to current dir | |
2. Decompile in IntellijIdea or by https://www.mikeleitz.com/blog/2018/8/9/decompile-java-classes-on-command-line `EsServer.class` |
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
convert file with lines ```eks_commission_enable: true``` into env var lines ```METRICS_ENABLE=true``` | |
sed -e 's/\(.*\): /\U\1=/' local-dev.env1 |