AWS Misc Stuff #Root #By Sayed Ahmed

To install more software in Amazon Linux Instance

After you create an instance based on Amazon Linux, you can use the Linux commands as provided in the URL to install more tools for your development.

Actually, the commands are for Fedora Linux
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html

The steps work like charm. One note though, when installing pecl to help installing PhpMyAdmin, try the sudo yum install -y phpMyAdmin couple of times (happened with me, a mirror was difficult to find)

The Raw Commands that I executed – just showing from .bash_history file

df
exit
sudo yum update -y
sudo yum install -y httpd24 php56 mysql55-server php56-mysqlnd
sudo service httpd start
sudo chkconfig httpd on
chkconfig –list httpd
ls -l /var/www
sudo groupadd www
sudo usermod -a -G www ec2-user
exit
groups
sudo chown -R root:www /var/www
sudo chmod 2775 /var/www
find /var/www -type d -exec sudo chmod 2775 {} ;
find /var/www -type f -exec sudo chmod 0664 {} ;
echo “” > /var/www/html/phpinfo.php
ls /var/www/html/phpinfo.php
ping c2-54-172-171-56.compute-1.amazonaws.com
service httpd start
sudo service httpd start
sudo service httpd restart
sudo yum list installed httpd24 php56 mysql55-server php56-mysqlnd
rm /var/www/html/phpinfo.php
sudo service mysqld start
sudo mysql_secure_installation
sudo service mysqld stop
sudo chkconfig mysqld on
sudo yum-config-manager –enable epel
sudo yum install -y phpMyAdmin
sudo yum update -y
sudo yum install -y phpMyAdmin
sudo sed -i -e ‘s/127.0.0.1/69.193.161.69/g’ /etc/httpd/conf.d/phpMyAdmin.conf
sudo service httpd restart
sudo service mysqld restart
sudo service mysqld status
nano .bash_history

From: http://sitestree.com/?p=4478
Categories:Root, By Sayed Ahmed
Tags:
Post Data:2016-11-05 23:44:34

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Use AWS-CLI to Move Files between instances #Root #By Sayed Ahmed

You need to install AWS-CLI
http://docs.aws.amazon.com/cli/latest/userguide/installing.html
Sure, I did in multiple platforms.

This will work in Ubuntu Linux
sudo pip install awscli
aws configure

From: http://sitestree.com/?p=4466
Categories:Root, By Sayed Ahmed
Tags:
Post Data:2016-11-06 10:31:53

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

On Data Transfer: AWS to Local to AWS. Between EC2 Instances #Root #By Sayed Ahmed

Sure, used some of the approaches

Share Data among Multiple EC2 instances
https://objectivefs.com/howto/how-to-share-files-between-ec2-instances
scp and rsync commands also works for transferring files across EC2 instances

AWS Import/Export Snowball
https://aws.amazon.com/importexport/

Related: Managing AWS, Sure, Used this.
http://www.skeddly.com/
https://app.skeddly.com/Credentials/Create?type=amazon-iam-role

Related to Setting up an NFS server for Sharing Files across EC2 instances
sudo apt-get update && sudo apt-get install nfs-kernel-server
sudo nano /etc/exports
sudo service nfs-kernel-server reload
* Re-exporting directories for NFS kernel daemon…
mkdir /Volumes/purinda
mount -t nfs -o nfsvers=2 :/home/purinda /Volumes/purinda/
Details: https://theredblacktree.wordpress.com/2013/05/23/how-to-setup-a-amazon-aws-ec2-nfs-share/

Setup GlusterFish on AWS
https://gluster.readthedocs.io/en/latest/Install-Guide/Setup_aws/
https://gluster.readthedocs.io/en/latest/Install-Guide/Install/

From: http://sitestree.com/?p=4457
Categories:Root, By Sayed Ahmed
Tags:
Post Data:2016-11-04 15:32:25

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

EC2 : AWS : Misc #Root #By Sayed Ahmed

Install Git: EC2 with Amazon Linux
sudo yum install git

Change Folder Owner
sudo chown -R apache:apache folder

If Ubuntu in EC2 Instance, Install Git
sudo apt-get install git

From: http://sitestree.com/?p=4452
Categories:Root, By Sayed Ahmed
Tags:
Post Data:2016-11-03 23:18:22

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Mount EBS Volumes using Ubuntu Command: AWS stuff #Root #By Sayed Ahmed

Tried as follows and worked

>> sudo fdisk -l
Disk /dev/xvdb: ….

Then format
>> sudo mkfs -t ext4 /dev/xvdf

Create mount dir
>>mkdir /mnt

you can mount now
>>sudo mount /dev/xvdb /mnt

Check if it has been mounted correctly with:
>>mount -l
/dev/xvdb on /mnt type ext4 (rw)

mount automatically – this will be there – nothing to do
>>sudo vim /etc/fstab

this will be there – nothing to do if not add this:
/dev/xvdf /mnt1 auto defaults,nobootwait 0 0

BTW by some reason AWS Console shows /dev/xvdf as /dev/sdf From: http://sitestree.com/?p=4450
Categories:Root, By Sayed Ahmed
Tags:
Post Data:2016-11-03 16:49:23

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

How to design a system : System design concepts #Root #By Sayed Ahmed

From: http://sitestree.com/?p=4211
Categories:Root, By Sayed Ahmed
Tags:
Post Data:2016-09-26 17:09:13

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

ReactJS Stuff #Root #By Sayed Ahmed

Why ReactJS? 6 Reasons We Love It

https://www.syncano.io/blog/reactjs-reasons-why-part-1/

 

Combining ReactJS and AngularJS

https://blog.logentries.com/2016/02/combining-angularjs-and-reactjs-for-better-applications/

 

Stop Using Everything for ReactJS
https://medium.com/@zackargyle/stop-using-react-for-everything-c8297ac1a644#.ygrx5iry2

React.js Best Practices for 2016
https://blog.risingstack.com/react-js-best-practices-for-2016/

ReactJS for Stupid People
http://blog.andrewray.me/reactjs-for-stupid-people/

Why React over AngularJS
https://www.quora.com/Why-would-I-use-React-over-AngularJS

Why React
https://facebook.github.io/react/docs/why-react.html

Crockford on JavaScript
https://www.youtube.com/watch?v=JxAXlJEmNMg&list=PL7664379246A246CB

Learn Raw Raect
http://jamesknelson.com/learn-raw-react-no-jsx-flux-es6-webpack/

WebComponent
http://webcomponents.org/

Soe believe that React is a Terrible Idea
https://www.pandastrike.com/posts/20150311-react-bad-idea

ReactJS: Good and bad use Cases
https://www.reddit.com/r/reactjs/comments/3qlwvi/in_what_cases_is_reactjs_a_goodbad_choice/

Things ReactJS developers need to know
https://camjackson.net/post/9-things-every-reactjs-beginner-should-know

  From: http://sitestree.com/?p=4204
Categories:Root, By Sayed Ahmed
Tags:
Post Data:2016-09-26 17:19:56

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Laravel Design Patterns – Sure, I did Check them #Root #By Sayed Ahmed

Laravel Design Patterns – Sure, I did Check them…Will create videos in near future…

https://laracasts.com/discuss/channels/laravel/what-design-patterns-used-for-laravel-framework
https://www.dunebook.com/brief-overview-of-design-patterns-used-in-laravel/
http://www.mahmoudzalt.com/blog/software-design-patterns/
http://stackoverflow.com/questions/30569727/using-design-patterns-in-laravel-5
http://stackoverflow.com/questions/27349154/using-the-factory-pattern-in-php-and-laravel
https://en.wikipedia.org/wiki/SOLID_(object-oriented_design)
http://www.oodesign.com/dependency-inversion-principle.html
http://7php.com/php-interview-taylor-otwell/
http://stackoverflow.com/questions/757743/what-is-the-difference-between-builder-design-pattern-and-factory-design-pattern
https://www.quora.com/What-are-the-best-design-patterns-to-use-in-Laravel-4
http://www.dofactory.com/topic/1590/factory-pattern-vs-abstract-factory-pattern.aspx
http://www.dofactory.com/topic/1590/factory-pattern-vs-abstract-factory-pattern.aspx
http://code.tutsplus.com/tutorials/design-patterns-the-strategy-pattern–cms-22796
https://msdn.microsoft.com/en-us/library/ff649690.aspx

From: http://sitestree.com/?p=3953
Categories:Root, By Sayed Ahmed
Tags:
Post Data:2016-09-01 22:26:37

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

PHP and OOP #Root #By Sayed Ahmed

http://salearningschool.com/displayArticle.php?table=Articles&articleID=987 From: http://sitestree.com/?p=3937
Categories:Root, By Sayed Ahmed
Tags:
Post Data:2016-09-15 14:17:16

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Misc. PHP Stuff #Root #By Sayed Ahmed

http://stackoverflow.com/questions/9948008/what-is-sapi-and-when-would-you-use-it

Cookie – securing Cookie
http://blog.teamtreehouse.com/how-to-create-totally-secure-cookies
http://salearningschool.com/displayArticle.php?table=Articles&articleID=1357&title=PHP%20Security%20-%20Guidelines

https://www.quora.com/What-is-the-difference-between-htmlentities-and-htmlspecialchars-in-PHP
http://stackoverflow.com/questions/46483/htmlentities-vs-htmlspecialchars

Prevent CSRF in PHP
http://stackoverflow.com/questions/1780687/preventing-csrf-in-php
PHP Security Package:
https://kohanaframework.org/3.3/guide-api/Security

From: http://sitestree.com/?p=3927
Categories:Root, By Sayed Ahmed
Tags:
Post Data:2016-09-15 14:17:28

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada