Use to set 755 for all the folders recursively
sudo find . -type d -exec chmod 0755 {} \;
Use to set 644 for all the files recursively
sudo find . -type f -exec chmod 0644 {} \;
{ | |
"Version":"2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:PutObject", | |
"s3:GetObjectAcl", | |
"s3:GetObject", |
Use to set 755 for all the folders recursively
sudo find . -type d -exec chmod 0755 {} \;
Use to set 644 for all the files recursively
sudo find . -type f -exec chmod 0644 {} \;
4 |
{ | |
"name": "thamaraiselvam-custom", | |
"device": 1, | |
"model": 5, | |
"type": "layout", | |
"data": { | |
"layer0": [ | |
41, | |
30, | |
31, |
$setup_consul = <<-SCRIPT | |
#! /bin/sh | |
echo "Installing required packages..." | |
sudo apt-get update | |
# Other Packages required | |
sudo apt-get install wget unzip curl vim -y | |
wget https://releases.hashicorp.com/consul/1.6.2/consul_1.6.2_linux_amd64.zip -O consul.zip | |
unzip consul.zip |
{ | |
"test": "test" | |
} |
### Keybase proof | |
I hereby claim: | |
* I am thamaraiselvam on github. | |
* I am thamaraiselvam (https://keybase.io/thamaraiselvam) on keybase. | |
* I have a public key ASAqno4Ak_STGnFcDGD-mYzpfWIpT9Yw3Mlfw6V6CAi6ywo | |
To claim this, I am signing this object: |
Task 1: Problem Statement: | |
Run a nodejs server and create GET, POST, DELETE, PUT endpoints. | |
AC: | |
1. Should run on 3000 port | |
2. Should accept GET Request /hello with name param and it should return output `hello <name>`. Example: /hello?name=pasu | |
3. Should accept POST Request /new with name param (body) and it should return output `hello <name> - you have got new request` | |
3. Should accept PUT Request /update with name param (body) and it should return output `hello <name> - you have got have got new update request` |
Create Cluster | |
./bin/stolonctl --cluster-name stolon-cluster --store-backend=etcdv3 init | |
Start sentinal | |
./bin/stolon-sentinel --cluster-name stolon-cluster --store-backend=etcdv3 | |
Create first keeper | |
./bin/stolon-keeper --cluster-name stolon-cluster --store-backend=etcdv3 --uid postgres0 --data-dir data/postgres0 --pg-su-password=supassword --pg-repl-username=repluser --pg-repl-password=replpassword --pg-listen-address=127.0.0.1 --pg-port 9000 | |
Create second keeper |
GO111MODULE="" | |
GOARCH="amd64" | |
GOBIN="" | |
GOCACHE="/Users/thamaraiselvam/Library/Caches/go-build" | |
GOENV="/Users/thamaraiselvam/Library/Application Support/go/env" | |
GOEXE="" | |
GOFLAGS="" | |
GOHOSTARCH="amd64" | |
GOHOSTOS="darwin" | |
GONOPROXY="" |