AuthorImran Pollob

Remove all your local git branches but keep master

Sometimes after a sprint, all the remaining branches are just taking up space.
Here’s a small snippet to remove all your local branches in one go.
git branch | grep -v "master" | xargs git branch -D
If you want to keep the current branch use
grep -v ^*

Running JavaScript

As you are reading this blog on online its pretty much sure that you have the full environment to run your JavaScript code right NOW!! How?? Your browser is the environment that is the only thing you need to run JavaScript code. Just press F12, then click Console. Here write a simple code...

JavaScript Step by Step Tutorial

In the time of rising and shining Advanced JavaScript Frameworks some people are desperate about them without knowing the core JavaScript itself 😮 Its not only important but also the first requirement to get forward to you r next JS Framework learning journey. I start this series of tutorials just...

Webhook vs API

Both Webhooks and APIs facilitate syncing and relaying data between two applications. However, both have different means of doing so, and thus serve slightly different purposes. To put it simply, an API does stuff when you ask it to, while a Webhook does stuff on it’s own when certain criteria is...

Adding new font to Linux

We can easily install a TrueType font on Linux by simply opening it in default font viewer. Some sometimes default font viewer hasn’t work as expected that’s why here comes the second method to install a font. System-wide Installation gksu nautilus Create new directory...

Install LAMP Server + phpMyAdmin on Linux

LAMP is an open source Web development platform that uses Linux as the operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language. Its very easy to install LAMP server and phpMyAdmin on Linux machine. To check...

File and Directory permission setup for Laravel

Never set 777 permission on web server If you give any of your folders 777 permissions, you are allowing ANYONE to read, write and execute any file in that directory!! That means you have given ANYONE (any hacker or malicious person in the entire world) permission to upload ANY file, virus or any...

Changing Laravel default email field of LoginController

Laravel makes implementing authentication very simple. Almost everything is configured out of the box. Just run below commands in  a fresh Laravel application php artisan make:auth php artisan migrate These two commands will take care of entire authentication system! Login, registration, remember...

Useful Laravel Resources

A curated list of awesome bookmarks, packages, tutorials, videos and other cool resources from the Laravel ecosystem. From: chiraggude/awesome-laravel Table of Contents Essentials Code Snippets Packages Popular Packages Development Setup Application Hosting Application Deployment Articles...

Laravel permission denied or 500 internal error

Directories within the storage and the bootstrap/cachedirectories should be writable by your web server or Laravel will not run and throw permission error. Sometimes this also creates 500 internal error. Try this php artisan cache:clear sudo chmod -R 777 storage sudo chmod -R 777 bootstrap/cache...

Categories

Imran Pollob

Learn => Practice => Implement => Repeat

Get in touch