Skip to content

Instantly share code, notes, and snippets.

valery1707 /
Created February 28, 2020 14:13

Keybase proof

I hereby claim:

  • I am valery1707 on github.
  • I am 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:

valery1707 /
Last active November 28, 2019 20:18
X.509 Certificate Chain with

Сейчас будет много текста про HTTPS, SSL/TLS и сертификаты.

Вот есть у нас сайт Если зайти на него браузером и посмотреть на сертификат, то мы увидим цепочку из 3-х сертификатов.

Если же проверить сертификат через openssl s_client -connect, то там тоже 3 сертификата:

Certificate chain
 0 s:/C=RU/ST=Moscow/L=Moscow/O=PJSC Rostelecom/OU=IT Department/CN=*
 i:/C=US/O=DigiCert Inc/ RSA CA 2018
valery1707 / build.gradle
Created January 28, 2019 08:32
buildscript {
repositories {
dependencies {
valery1707 / Result_707c01a_2018-08-01.txt
Last active September 27, 2023 17:01
Benchmark of different collection iteration modes
# 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 {
public void test() {
valery1707 /
Created January 13, 2017 13:57
Temir.Dice created by valery1707 -
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
class Main {
public static void main(String[] args) {
Dice dice = new RandomDice(6);
System.out.println("dice6.roll() = " + dice.roll());
valery1707 / jboss_wildfly.service
Created December 15, 2015 09:48
JBoss (WildFly) configuration for Systemd for Ubuntu 15.10
#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
Description=WildFly application server
valery1707 / jboss.conf
Last active December 29, 2015 07:29
JBoss Upstart script
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 -Dorg.jboss.resolver.warning=true"
valery1707 / eset_sysrescue_min.iso.cmd
Created February 28, 2012 11:49
Reduce size of ESET sysrescue ISO for use with flash-drives
@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
if exist tmp-iso (rmdir /S /Q tmp-iso)
mkdir tmp-iso