Debug ionic apps installed on device using google chrome

Run following command on terminal – ionic cordova run  –device –debug Next it will ask platform, example android Then Open chrome and Web Inspector in chrome, and follow below menu path. From right side menu “Customize and contorl DevTools” -> More tools ->  Remote Devices It will show list of devices, click on your device,… Continue reading Debug ionic apps installed on device using google chrome

AWS SSL for EC2 instance

As AWS SSL certificates are free to use, just you need to use with them LB i.e. load balancers which have some cost. Let’s go through steps to integrate – Step 1 – Setup EC2 and make sure you are running any web server on it to test in the browser, so we can test… Continue reading AWS SSL for EC2 instance

NFC technology, contactless payments future

Hope you are watching the advertisement on TV or youtube, in which people paying bills just by hovering their credit card on POS machine. Banks like ICICI in India launched this type of cards where NFC( Near field communication ) technology is used. Lets understand NFC, two devices here one is credit card and other is POS terminal/ Card… Continue reading NFC technology, contactless payments future

Add new SSH users to AWS EC2

Check existing users : cut -d: -f1 /etc/passwd sudo adduser user_name add newly created to root group sudo usermod -a -G sudo user_name change current user to new user cd to home dir of newly created user run mkdir .ssh secure it by chmod 700 .ssh to create authorized_keys file run touch .ssh/authorized_keys Copy your public key in clipboard cat… Continue reading Add new SSH users to AWS EC2

Python virtualenv?

We always use different version of libraries in our projects as per requirement, it means we need project environments supporting local installation of packages and avoid usage of globally installed packages. virtualenv i.e. Virtual Environment, is solutions to above problem as it maintain a separate copy of Python and libs utilized in your python project.… Continue reading Python virtualenv?

Gravity Form Date Field Filter

When you use “Gravity form date field” and want a user to select future dates or today’s date only, simply add one Html field and copy paste below code snippet to HTML field. This will be applied to all date fields in gravity form. <script > gform.addFilter( ‘gform_datepicker_options_pre_init’, function( optionsObj, formId, fieldId ) { // do stuff optionsObj.minDate = new… Continue reading Gravity Form Date Field Filter

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… Continue reading Move AWS EC2 instance to a different availability region

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 https://getcomposer.org/installer | php // S option to show any errors if… Continue reading Installing Composer on OS X