Skip to content

Instantly share code, notes, and snippets.

yellow1912

Block or report user

Report or block yellow1912

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View log
odfe-node1 | javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
odfe-node1 | at sun.security.ssl.Alert.createSSLException(Alert.java:128) ~[?:?]
odfe-node1 | at sun.security.ssl.Alert.createSSLException(Alert.java:117) ~[?:?]
odfe-node1 | at sun.security.ssl.TransportContext.fatal(TransportContext.java:308) ~[?:?]
odfe-node1 | at sun.security.ssl.Alert$AlertConsumer.consume(Alert.java:279) ~[?:?]
odfe-node1 | at sun.security.ssl.TransportContext.dispatch(TransportContext.java:181) ~[?:?]
odfe-node1 | at sun.security.ssl.SSLTransport.decode(SSLTransport.java:164) ~[?:?]
odfe-node1 | at sun.security.ssl.SSLEngineImpl.decode(SSLEngineImpl.java:672) ~[?:?]
odfe-node1 | at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:627) ~[?:?]
odfe-node1 | at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:443) ~[?:?]
@yellow1912
yellow1912 / custom-elasticsearch.yml
Created Jul 14, 2019
custom elasticsearch config for open distro
View custom-elasticsearch.yml
opendistro_security.ssl.transport.pemcert_filepath: esnode.pem
opendistro_security.ssl.transport.pemkey_filepath: esnode-key.pem
opendistro_security.ssl.transport.pemtrustedcas_filepath: root-ca.pem
opendistro_security.ssl.transport.enforce_hostname_verification: false
#opendistro_security.ssl.http.enabled: true
opendistro_security.ssl.http.pemcert_filepath: esnode.pem
opendistro_security.ssl.http.pemkey_filepath: esnode-key.pem
opendistro_security.ssl.http.pemtrustedcas_filepath: root-ca.pem
opendistro_security.allow_unsafe_democertificates: true
opendistro_security.allow_default_init_securityindex: true
@yellow1912
yellow1912 / docker-compose.yml
Created Jul 14, 2019
docker compose for open distro with 1 single node
View docker-compose.yml
version: '3'
services:
odfe-node1:
image: amazon/opendistro-for-elasticsearch:1.0.1
container_name: odfe-node1
environment:
# - cluster.name=odfe-cluster
- node.name=odfe-node1
- discovery.type=single-node
# - discovery.seed_hosts=odfe-node1,odfe-node2
@yellow1912
yellow1912 / gist:43e4009e0384426ccfa017feb0eedcc9
Created Dec 5, 2018
Sample unserialize issue code for 7.3
View gist:43e4009e0384426ccfa017feb0eedcc9
a:4:{i:0;O:38:"Myrepo\AccountBundle\Model\LiteAccount":24:{s:8:"*roles";a:2:{i:0;s:23:"ROLE_MYREPO_SUPER_ADMIN";i:1;s:25:"ROLE_MYREPO_DEFAULT_ADMIN";}s:11:"*username";s:14:"full@gmail.com";s:20:"*usernameCanonical";s:14:"full@gmail.com";s:8:"*email";s:14:"full@gmail.com";s:17:"*emailCanonical";s:14:"full@gmail.com";s:7:"*salt";s:31:"izf39uqo4g00owcgwc04gko4ss0kscs";s:11:"*password";s:88:"4VtNLMaU0bkQ00G41AnkdfxQVAZTXvFgDSHxjVz/nHmhk/S2pZISejVavzuWEPydvekx4xkB4jVwWLWEiE8ORA==";s:18:"*currentPassword";N;s:16:"*plainPassword";N;s:20:"*confirmationToken";N;s:12:"*readGuide";b:0;s:12:"*lastLogin";O:8:"DateTime":3:{s:4:"date";s:26:"2018-12-05 10:05:24.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Asia/Krasnoyarsk";}s:20:"*passwordRequested";N;s:20:"*accountRegistered";i:0;s:17:"*accountExpired";N;s:16:"*accountLocked";N;s:21:"*credentialsExpired";N;s:8:"*party";O:34:"Myrepo\PartyBundle\Model\LiteParty":42:{s:11:"*resource";s:0:"";s:8:"*email";N;s:9:"*avatar";N;s:8:"*roles";N;s:10:"*account";N;s:11:"*contact
View sample_lottie.json
{
"v": "5.4.1",
"fr": 30,
"ip": 0,
"op": 600,
"w": 1920,
"h": 710,
"nm": "Banner Abstract",
"ddd": 0,
"assets": [{
@yellow1912
yellow1912 / Client.php
Created Apr 11, 2018
Updated Client.php for Phpredis
View Client.php
<?php
/*
* This file is part of the SncRedisBundle package.
*
* (c) Henrik Westphal <henrik.westphal@gmail.com>
* (c) Yassine Khial <yassine.khial@blablacar.com>
* (c) Pierre Boudelle <pierre.boudelle@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
View sample.json
{
"pageview": {
"labels": [
{
"event_label": "/"
},
{
"event_label": "/about-us"
},
{
View gist:0a1f4d31aec3889b5464aa293d6cfd4e
/**
* Naive ExitIntent detector
*
* @author Vu Nguyen
* @link https://nilead.com
* @license Do Whatever The Fuck You Want
*/
(function () {
"use strict";
View Nginx SSL config
-----------------------------
NGINX setup
built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2)
built with OpenSSL 1.0.2h 3 May 2016
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_addition_module --with-http_dav_module --with-ht
View ssl error
openssl s_client -connect mysite.com:443 -debug
CONNECTED(00000003)
write to 0xdb5010 [0xdb5da0] (305 bytes => 305 (0x131))
0000 - 16 03 01 01 2c 01 00 01-28 03 03 20 f4 14 1a 35 ....,...(.. ...5
0010 - f6 69 61 92 ce 1e 9d 51-c9 42 a1 5c 6b d1 7e fd .ia....Q.B.\k.~.
0020 - fb e3 f0 0c 42 24 09 7d-fa 3d 30 00 00 aa c0 30 ....B$.}.=0....0
0030 - c0 2c c0 28 c0 24 c0 14-c0 0a 00 a5 00 a3 00 a1 .,.(.$..........
0040 - 00 9f 00 6b 00 6a 00 69-00 68 00 39 00 38 00 37 ...k.j.i.h.9.8.7
0050 - 00 36 00 88 00 87 00 86-00 85 c0 32 c0 2e c0 2a .6.........2...*
0060 - c0 26 c0 0f c0 05 00 9d-00 3d 00 35 00 84 c0 2f .&.......=.5.../
You can’t perform that action at this time.