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
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: | |
[email protected] | |
mailhub=smtp.gmail.com:587 | |
AuthUser=mygmailusername |
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
{ | |
"meta": { | |
"code": 200, | |
"type": "ok" | |
}, | |
"data": [ | |
"560007", | |
"560071", | |
"560075", | |
"560008", |
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
{ | |
"meta": { | |
"code": 200, | |
"type": "ok" | |
}, | |
"data": [ | |
{ | |
"pincode": 388450, | |
"city": "Petlad", | |
"state": "Gujarat", |
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
{ | |
"consignor_pincode": "560034", | |
"consignee_pincode": "388450", | |
"package_length":"10", | |
"package_breadth":"10", | |
"package_height":"10", | |
"package_weight":"1200" | |
} |
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
{ | |
"meta": { | |
"code": 200, | |
"type": "ok" | |
}, | |
"data": { | |
"rates": [ | |
{ | |
"service_type": "Rush", | |
"price": "-", |
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
##################### 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, |
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
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 |
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
## Build deb package | |
These steps include basic minimum requirement to build a deb package. | |
Before we start building a package lets make few assumption which will make these steps more easily understandable. | |
Assumptions: | |
```bash | |
APP_NAME: foo | |
BUILD_VERSION: 0.1 | |
ARCH: amd64 | |
``` |