Skip to content

Instantly share code, notes, and snippets.

<?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([

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:

@volkan
volkan / fixXML.php
Last active June 1, 2016 20:40
fix xml
<?php
$xml = '
<products>
<product>
<id>1</id>
</product>
<product>
<id>2</id>
</product>
<product>
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
pip install virtualenv
pip install virtualenvwrapper
bash or zsh;
source /usr/local/bin/virtualenvwrapper.sh
mkvirtualenv customenv
exit: deactivate
@volkan
volkan / divolte and apacke kafka streams with.md
Last active December 1, 2018 06:40
Clickstream Projesi

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 \
@volkan
volkan / createRootCA.sh
Last active September 25, 2018 09:44
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 )