I hereby claim:
- I am valery1707 on github.
- I am valery1707 (https://keybase.io/valery1707) on keybase.
- I have a public key whose fingerprint is 219B 993A E2AB D6D1 1A8F C1C9 AD19 10A0 8F29 7A28
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Сейчас будет много текста про HTTPS, SSL/TLS и сертификаты.
Вот есть у нас сайт https://voronezh.rt.ru/ Если зайти на него браузером и посмотреть на сертификат, то мы увидим цепочку из 3-х сертификатов.
Если же проверить сертификат через openssl s_client -connect habr.com:443, то там тоже 3 сертификата:
Certificate chain
0 s:/C=RU/ST=Moscow/L=Moscow/O=PJSC Rostelecom/OU=IT Department/CN=*.rt.ru
i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=GeoTrust RSA CA 2018
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| jcenter() | |
| } | |
| dependencies { | |
| classpath("org.springframework.boot:spring-boot-gradle-plugin:2.1.1.RELEASE") | |
| classpath("name.valery1707.kaitai:kaitai-gradle-plugin:0.1.1") | |
| } | |
| } |
| # Run complete. Total time: 00:32:54 | |
| REMEMBER: The numbers below are just data. To gain reusable insights, you need to follow up on | |
| why the numbers are the way they are. Use profilers (see -prof, -lprof), design factorial | |
| experiments, perform baseline and negative tests that provide experimental control, make sure | |
| the benchmarking environment is safe on JVM/OS/HW level, ask for reviews from the domain experts. | |
| Do not assume the numbers tell you what you want them to tell. | |
| Benchmark (clazz) (size) Mode Cnt Score Error Units | |
| CollectionIteration.forEachJava5 java.util.HashSet 1 avgt 5 18,992 ▒ 2,319 ns/op |
| public class Benchmark { | |
| @Test | |
| public void test() { | |
| String PATH_TO_A_HUGE_TEXT_FILE = ""; | |
| Option | |
| .of(PATH_TO_A_HUGE_TEXT_FILE) | |
| .map(Paths::get) | |
| .toTry() | |
| .mapTry(Files::lines) | |
| .map(BaseStream::iterator) |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.Random; | |
| import java.util.stream.IntStream; | |
| class Main { | |
| public static void main(String[] args) { | |
| Dice dice = new RandomDice(6); | |
| System.out.println("dice6.roll() = " + dice.roll()); |
| #edit => sudo systemctl edit --system --full va-wildfly | |
| #refresh system status => sudo systemctl daemon-reload | |
| #status=> sudo systemctl status va-wildfly | |
| #start => sudo systemctl start va-wildfly | |
| #stop => sudo systemctl stop va-wildfly | |
| [Unit] | |
| Description=WildFly application server | |
| After=syslog.target |
| description "JBoss 7.1.1.Final" | |
| #start on (filesystem and networking) or runlevel [2345] | |
| stop on runlevel [016] | |
| env JBOSS_USER=jboss | |
| env JBOSS_HOME=/srv/jboss/jboss-as-7.1.1.Final | |
| env JBOSS_CONF_F=standalone | |
| env JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman" | |
| env JAVA_OPTS1="-Xms1g -Xmx4g -XX:PermSize=512m -XX:MaxPermSize=1024m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true" |
| @echo off | |
| rem Check requirements | |
| if not exist 7z.dll goto require_7z | |
| if not exist 7z.exe goto require_7z | |
| if not exist eset_sysrescue.iso goto require_iso | |
| :create_iso | |
| if exist tmp-iso (rmdir /S /Q tmp-iso) | |
| mkdir tmp-iso |