Skip to content

Instantly share code, notes, and snippets.

Sudheer Singh sudheerit11

Block or report user

Report or block sudheerit11

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
@sudheerit11
sudheerit11 / protobuf_installation
Created Jan 16, 2019
Installing Protobuf On MAc
View protobuf_installation
Download protobuf
https://github.com/google/protobuf/releases
Execute ./autogen.sh && ./configure && make
On error may have to do brew install autoconf and brew install automake
make check
sudo make install
protoc --version
View elasticsearch.yml
##################### ElasticSearch Configuration Example #####################
# This file contains an overview of various configuration settings,
# targeted at operations staff. Application developers should
# consult the guide at <http://elasticsearch.org/guide>.
#
# The installation procedure is covered at
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>.
#
# ElasticSearch comes with reasonable defaults for most settings,
View exact_price_res.json
{
"meta": {
"code": 200,
"type": "ok"
},
"data": {
"rates": [
{
"service_type": "Rush",
"price": "-",
View exact_price_req.json
{
"consignor_pincode": "560034",
"consignee_pincode": "388450",
"package_length":"10",
"package_breadth":"10",
"package_height":"10",
"package_weight":"1200"
}
View delivery_pincode.js
{
"meta": {
"code": 200,
"type": "ok"
},
"data": [
{
"pincode": 388450,
"city": "Petlad",
"state": "Gujarat",
View pincode.js
{
"meta": {
"code": 200,
"type": "ok"
},
"data": [
"560007",
"560071",
"560075",
"560008",
View gist:9e62f01fd566c0d482b2
Install sSMTP from the package ssmtp (click the link to install), or by running the command below in your terminal:
sudo apt-get install ssmtp
sSMTP can be configured from one text file. Open /etc/ssmtp/ssmtp.conf in a text editor:
sudo gedit /etc/ssmtp/ssmtp.conf
The configuration file is very short and well commented by default. Here’s the options I use for sending mail through Gmail:
root=myemailaddress@gmail.com
mailhub=smtp.gmail.com:587
AuthUser=mygmailusername
You can’t perform that action at this time.