Tag: skpaul82

Create and access multiple ports for Apache on Amazon EC2(aka AWSEC2) or DigitalOcean

DevOpsLAMPLinuxServerUbuntuAmazonApacheAWSAWSEC2Cloud ServerDigitalOceanEC2multiple appsmultiple domainmultiple portssk_paulskpaulskpaul82virtual host

We can do this by using the virtual host. There is two part to complete to open and configure the ports. I used port 8080 but you can use any port that is not using for any service.   Part 1: Add/Update Virtual Host Navigate to the sites-available directory for the configuration file cd /etc/apache2/sites-available/ ….  Read More

Open/Start Sublime Text in (windows) command line shortcode with a specific project

DevelopmentEditorcommand lineshortcodeskpaul.meskpaul82Sublime TextSublime Text3windows

Open your Sublime Text2/3 by shortcode “subl .” on command prompt with a specific project.   We often need to open projects in between another project for some updates/support. As I am using Sublime Text 3 for coding, so I open/drag the folder to the editor project panel. But, It is risky and time consuming ….  Read More

Set XSRF(/CSRF) Token Globally or TokenMismatchException in Laravel 5.* (for AJAX)

LaravelLaravel 5CSRF Tokenskpaulskpaul82TokenMismatchException

Very easy (পানির লাহান) 🙂 STEP – 1: First we have to ad a meta tag (name=”_token”) in header <meta name=”_token” content=”{{ csrf_token() }}” /> STEP – 2: Then add below jQuery snippet before the </body> tag. Basically here we setting up the csrf token globally for ajax request. And after this we don’t need to ….  Read More