Skip to content

Instantly share code, notes, and snippets.

@sudheerit11
sudheerit11 / build_deb.txt
Last active April 10, 2020 02:46
Build deb package
## 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
```
@sudheerit11
sudheerit11 / protobuf_installation
Created January 16, 2019 05:20
Installing Protobuf On MAc
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
##################### 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,
{
"meta": {
"code": 200,
"type": "ok"
},
"data": {
"rates": [
{
"service_type": "Rush",
"price": "-",
{
"consignor_pincode": "560034",
"consignee_pincode": "388450",
"package_length":"10",
"package_breadth":"10",
"package_height":"10",
"package_weight":"1200"
}
{
"meta": {
"code": 200,
"type": "ok"
},
"data": [
{
"pincode": 388450,
"city": "Petlad",
"state": "Gujarat",
{
"meta": {
"code": 200,
"type": "ok"
},
"data": [
"560007",
"560071",
"560075",
"560008",
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