This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install virtualenv | |
pip install virtualenvwrapper | |
bash or zsh; | |
source /usr/local/bin/virtualenvwrapper.sh | |
mkvirtualenv customenv | |
exit: deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$xml = ' | |
<products> | |
<product> | |
<id>1</id> | |
</product> | |
<product> | |
<id>2</id> | |
</product> | |
<product> |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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([ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mc = new Memcached(); | |
$mc->setOption( | |
Memcached::OPT_DISTRIBUTION, | |
Memcached::DISTRIBUTION_CONSISTENT | |
); | |
$mc->addServers(array( |
NewerOlder