Move AWS EC2 instance to a different availability region

Let’s say you setup one server in one AWS region,  moving that AWS EC2 instance to another region may result in a headache, who don’t know copying AMI instead of creating new instance and setup server, deploy code again. All I mean manually copying not required. Let’s change region of AWS EC2 – Step1: Create an AMI of … Continued

Installing Composer on OS X

Composer is a cross-platform dependency manager for PHP libraries. Let’s install it on OS X and add an alias/shortcut/command so you can use it from anywhere. Downloading Composer will create a Phar (PHP Archive) file called “composer.phar” From your terminal, run the following command: curl -sS | php // S option to show any errors if … Continued

Setup android environment var on mac os

Whenever you start with new OS installation or with a new machine and leading to android app development, we need to setup PATH environment variables. So maybe you have ‘android SDK’ downloaded or ‘android studio’ running. To add environment variables permanently, need to add those in .bash_profile file, which doesn’t exist, we need to make one by typing … Continued

Firebase Cloud Messaging in ionic apps

People who are used to integarte GCM in ionic apps, its time to migrate to FCM( Firebase Cloud Messaging ) App/Device/Client side steps : Use plugin STEP 1 cordova plugin add cordova-plugin-fcm STEP 2 if(window.cordova) { FCMPlugin.onNotification( function(data){ if(data.wasTapped){ // $state.go(‘message’, {id:data.pageId}); // $location.path(‘app/userList’); alert(‘onNotification tapped true’); } else { alert(“xxxxxxxxxxxx”+data); } }, function(msg){ // … Continued