Skip to content

Instantly share code, notes, and snippets.

Volkan Altan volkan

Block or report user

Report or block volkan

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
@volkan
volkan / createRootCA.sh
Last active Sep 25, 2018
self signed certificate wilcard
View createRootCA.sh
#!/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 with.md

Clickstream Projesi için kurulum adımları

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

git clone git@github.com:Landoop/fast-data-dev.git
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/virtualenvwrapper.sh
mkvirtualenv customenv
exit: deactivate
View solr.cfg
check process solr with pidfile "/var/solr/solr-8983.pid"
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
<?php
$xml = '
<products>
<product>
<id>1</id>
</product>
<product>
<id>2</id>
</product>
<product>
View keybase.md

Keybase proof

I hereby claim:

  • I am volkan on github.
  • I am v0lkan (https://keybase.io/v0lkan) on keybase.
  • I have a public key ASDs6Jo-ZRvEvLwXwxGfDvqtQSS9H695x8MByvcRsIFmSAo

To claim this, I am signing this object:

View multipleRequest.php
<?php
use GuzzleHttp\Event\CompleteEvent;
use GuzzleHttp\Event\ErrorEvent;
use GuzzleHttp\Client;
use GuzzleHttp\Pool;
$urls = ['http://www.google.com', 'http://www.facebook.com']
$client = new Client([
@volkan
volkan / install.md
Last active Aug 29, 2015 — forked from xleliberty/install.md
Graylog2 UDP logger setup for symfony2 via monolog
View install.md

Graylog 2 gelf installation

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

Services Setup

parameters.yml

graylog.hostname: you.host.name
graylog.port: 12201
View memcachedGet.php
<?php
$mc = new Memcached();
$mc->setOption(
Memcached::OPT_DISTRIBUTION,
Memcached::DISTRIBUTION_CONSISTENT
);
$mc->addServers(array(
You can’t perform that action at this time.