Skip to content

Instantly share code, notes, and snippets.

@awaisweb
awaisweb / install_free_ssl_certificate_on_digital_ocean_debian_apache.html
Last active January 29, 2019 14:08
How To Install a Free SSL Certificate on DigitalOcean With Apache2 Debian?
Hi Guys!
Below is the complete guide about how to install a free ssl certificate on digital ocean with apache2 on Debian OS.
Follow the guide in the given link to install ssl certificate easily.
Link: http://www.toptipsfeed.com/how-to-install-a-free-ssl-certificate-on-digitalocean-with-apache2-debian/
@awaisweb
awaisweb / elastic-search-using-php-curl.txt
Last active June 17, 2017 10:44
ElasticSearch - Create Index, Mappings and Indexing using Php-Curl
<?php
//First of all, create an Index
$baseUrl = 'http://localhost:9200/property';
$curlInit = curl_init();
curl_setopt($curlInit, CURLOPT_URL, $baseUrl);
curl_setopt($curlInit, CURLOPT_PORT, '9200');
curl_setopt($curlInit, CURLOPT_TIMEOUT, 200);
curl_setopt($curlInit, CURLOPT_RETURNTRANSFER, 1);