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