Thanks to antville.org
Manage S3 like rsync

create bucket

aws s3 mb s3://johntest123/

rsync all files from a given folder to S3 bucket:

aws s3 sync /home/ec2-user/ s3://johntest123/

Remove bucket

aws s3 rb --force s3://johntest123/

... Link (0 comments) ... Comment


Install aws client on centos

If pip is not installed, then the following command will not work

pip install awscli

We need to install pip from EPEL like this..

yum install epel-release
yum install python-pip


remove quotes from mysql dump file
cat merged.txt | tr -d \'\" > mergedx.txt

... Link (0 comments) ... Comment


Amazon Web Services

Here are some of the important Amazon products to use.

cloudTrail + cloudWatch + ES
cloudformation
DMS
SageMaker
Route53
EC2 + spot
Redshift + ElasticCache + Spectrum
S3 + Glacier / Athena
Lambda + API Gateway + dynamoDB + SMS gateway
documentDB

... Link (0 comments) ... Comment


docker and aws

Before starting docker daemon, add the aws credentials.

vi /etc/init/docker.override

env AWS_ACCESS_KEY_ID=
env AWS_SECRET_ACCESS_KEY=

... Link (0 comments) ... Comment


Aurora Amazon rates

The cost of Aurora hosting per hour.

db.r3.large $0.290 (0.24 mysql)
db.r3.xlarge $0.580 (0.475 mysql)
db.r3.2xlarge $1.160 (0.945 mysql)
db.r3.4xlarge $2.320 (1.89 mysql)
db.r3.8xlarge $4.640 (3.78 mysql)

Mysql hosting starts with db.t2.micro at only $0.017 per hour.

... Link (0 comments) ... Comment


connect to AWS

It is possible to use password to connect to AWS

1) change config file
sudo vi /etc/ssh/sshd_config

PermitRootLogin yes
PasswordAuthentication yes

2) restart
sudo service ssh restart

3) add a password
sudo passwd root

4) ssh without key
ssh root@xxx.com

... Link (0 comments) ... Comment


Online for 6050 days
Last modified: 3/17/19 3:22 PM
Status
Youre not logged in ... Login
Menu
... Home
... Tags

Search
Calendar
March 2019
SunMonTueWedThuFriSat
12
3456789
10111213141516
17181920212223
24252627282930
31
January
Recent updates
python itertools module from itertools
import groupby s = 'abcccccbba' for w, v in groupby(s):...
by shantanuo (3/17/19 3:22 PM)
audio visual modules for Machine
Learning Here is the list of some of the modules...
by shantanuo (3/16/19 1:08 PM)
google module module for google
search !pip install google from googlesearch import search for url...
by shantanuo (1/8/19 10:38 AM)
Python date and time from
datetime import datetime date_string = "21 June, 2018" date_object =...
by shantanuo (12/26/18 12:14 PM)
Infer types in pandas This
will return the mixed datatypes but this can be slow....
by shantanuo (12/16/18 3:50 PM)
Extract words from Marathi wikipedia
1) Download the polyglot pickled marathi model wget http://bit.ly/12FI1xV mv...
by shantanuo (11/4/18 10:06 AM)
Google Input tools Google suddenly
stopped download of Input Tools package without giving any reason....
by shantanuo (9/10/18 7:44 AM)
Python objects and methods Here
are important python objects and their methods int __mul__, __add__,...
by shantanuo (8/18/18 3:11 PM)
JSON to DF Here is
how to read a JSON file into pandas dataframe. import...
by shantanuo (8/8/18 1:12 PM)
managing servers using python Fabric
is a high level Python library designed to execute shell...
by shantanuo (8/4/18 10:01 AM)
backup mysql users It is
easy to backup mysql users - wget percona.com/get/pt-show-grants; perl pt-show-grants
by shantanuo (5/20/18 3:42 PM)
About python 1 everything is
an object (class instances) 2 methods depends upon class of...
by shantanuo (5/20/18 2:52 PM)
mysql and shell command date
-d"-1 day ago" +'%b%d' equals to mysql -Bse"select date_format(date(date_add(now() ,...
by shantanuo (5/16/18 7:47 AM)
Preserving comments in Stored Procedure
You can write multi line comments in a stored procedure...
by shantanuo (5/12/18 12:56 PM)
Custom slack command Here are
5 steps to add any API to your slack channel....
by shantanuo (4/25/18 6:59 AM)
stack bookmarklet This bookmarklet will
help to quickly access stack pages linking to current page...
by shantanuo (1/10/18 10:47 AM)
Manage S3 like rsync ####
create bucket aws s3 mb s3://johntest123/ #### rsync all files...
by shantanuo (12/22/17 12:04 PM)
apache docker container issues If
apache docker container does not start then make these changes......
by shantanuo (11/10/17 3:00 PM)
Install aws client on centos
If pip is not installed, then the following command will...
by shantanuo (10/26/17 9:51 AM)
Managing Amazon keys Use this
command to convert private key to public key. ssh-keygen -y...
by shantanuo (10/9/17 7:04 AM)
percona utility We can re-create
mysql users using the percona utility. wget percona.com/get/pt-show-grants chmod 777...
by shantanuo (9/6/17 8:22 AM)
mail merge separate file per
record Microsoft Word has an excellent feature called Mail-Merge. If...
by shantanuo (7/6/17 12:09 PM)
find dead processes The 8th
column of ps aux command will list the status of...
by shantanuo (5/28/17 7:39 AM)
Amazon Web Services Here are
some of the important Amazon products to use. cloudTrail...
by shantanuo (5/10/17 11:35 AM)
Self signed security certificate http://www.thegeekstuff.com/2009/07/linux-apache-mod-ssl-generate-key-csr-crt-file/
openssl genrsa -out 34.195.94.88.key 1024 openssl req -new -key 34.195.94.88.key...
by shantanuo (1/16/17 8:02 AM)

RSS feed

Made with Antville
Helma Object Publisher