Skip to content

Instantly share code, notes, and snippets.

volkan /
Last active Sep 25, 2018
self signed certificate wilcard
#!/usr/bin/env bash
openssl genrsa -des3 -passout pass:x -out rootCA.key 2048
openssl rsa -passin pass:x -in rootCA.key -out server.key
mv rootCA.key rootCA_withpass.key
cp server.key rootCA.key
openssl req -new -key rootCA.key -out server.csr -config <( cat server_csr.cnf )
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem -config <( cat server_csr.cnf )
View divolte and apacke kafka streams

Clickstream Projesi için kurulum adımları

Kafka'nın ayağa kaldırılması

git clone
cd fast-data-dev

docker run — rm -it \
	-p 2181:2181 -p 3030:3030 -p 8081:8081 \
	-p 8082:8082 -p 8083:8083 -p 9092:9092 \
View python virtualenv
pip install virtualenv
pip install virtualenvwrapper
bash or zsh;
source /usr/local/bin/
mkvirtualenv customenv
exit: deactivate
View solr.cfg
check process solr with pidfile "/var/solr/"
start program = "/sbin/service solr start"
stop program = "/sbin/service solr stop"
restart program = "/sbin/service solr restart"
if failed port 8983 type TCP with timeout 3 seconds then start
if 5 restarts within 15 cycles then timeout
View fixXML.php
$xml = '

Keybase proof

I hereby claim:

  • I am volkan on github.
  • I am v0lkan ( on keybase.
  • I have a public key ASDs6Jo-ZRvEvLwXwxGfDvqtQSS9H695x8MByvcRsIFmSAo

To claim this, I am signing this object:

View multipleRequest.php
use GuzzleHttp\Event\CompleteEvent;
use GuzzleHttp\Event\ErrorEvent;
use GuzzleHttp\Client;
use GuzzleHttp\Pool;
$urls = ['', '']
$client = new Client([
volkan /
Last active Aug 29, 2015 — forked from xleliberty/
Graylog2 UDP logger setup for symfony2 via monolog

Graylog 2 gelf installation

  • Add composer source: "graylog2/gelf-php": "~1.2"

Services Setup


graylog.port: 12201
View memcachedGet.php
$mc = new Memcached();