Fix Firebase push notification not working on Safari on iOS
Try this snippet to fix your firebase push notification error on Safari on iOS/Mac OS. This will prevent blank page on your reactjs app.
Setup Websockets with Apache Reverse Proxy with SSL
I’ve scratched my head for hours and finally I was able to set it up and make it running.
Laravel migration Error – Specified key was too long
As seen above in image, this issue you may have faced many a times. That’s why you’re on this page. This is a nasty error that says (1071 Specified key was too long) and your migration fails. You need to delete entry from migration table and also delete a table sometimes. This is because of…
Laravel – Log Guzzle requests to file
Log Guzzle requests the best way using Laravel’s Service Container. It’s very easy method to make your code looks cleaner and it’s re-usable too.
Laravel – Override Eloquent Model’s default table name
Simple way to override Laravel Eloquent’s default table naming convension and use your own custom table. You don’t have to rename your table.
How to set Redis Password in Windows/Ubuntu
To set a password in redis is very easy than any other database. You just need to edit one conf file or fire a command from redis-cli and you’re good to go. Follow the steps below according to your operating system. Windows Okay, I lied to you that there’s one file to edit. But actually…
Best Javascript books and resources to Learn
List of best JavaScript books that has helped me and others to launch their career in JavaScript. List contains books & Resources that are free and paid.
How to send test mail in Laravel via Terminal/Tinker
No need to write code to send mail. Test your mail configuration settings right from terminal. Send test mail now.
Laravel – How to override vendor class file?
Learn how to override vendor classes/libraries files in composer.json
[Solved] Hacker Rank – Birthday Cake Candles
Problem Solution Solution on Github
2 ways to check for Apache enabled modules
These are 2 techniques to check for enabled apache modules on Linux and Windows machines.
How to Enable mod_headers module in Apache
I was working on side project, I need to set headers in .htaccess. But it was causing 500 Internal server error. After googling few minutes, I found that setting headers never throws 500 error. Then I thought it must be mod_headers apache module issue. I looked at my code again and found that headers line…
CodeIgniter : Dynamic Database Query Caching
Purpose: This article is intended to show you how you can disable query caching for particular methods and enable it globally for all methods. In CodeIgniter there is default option for query caching. If you enable query cache in database.php, by passing $db[‘default’][‘cache_on’] = TRUE; It will enable query cache for all controllers. You might be thinking that there…
Theme Options Z: My second Plugin is out !
After months of hard work My second plugin Theme Options Z is ready for use. Let’s talk something about it. Checkout my first plugin WP admin todo list, easily manage your tasks right from WordPress admin. From Where I get Idea During developing themes for clients I needed to use Options.php for custom options to allow clients to…
Save image to Imgur from Nimbus Extension in Google Chrome
During development everytime I take a screenshot via Nimbus Extension and edit it. Then to upload images to imgur.com I have to open imgur.com in new tab then copy image and paste to it, and upload. To get rid of this lengthy process I decided to create something that will make this whole process easier and…
Solved:Some add-ons have been disabled -Firefox issue
After updating Firefox I saw button “some extensions could not be verified” on add-ons page with title “Some add-ons have been disabled”. And found that some of my add-ons disabled. This thing starts from Firefox version 41. If Mozilla has not signed the extension, Firefox will auto-disable it. Introducing Extension Signing: A Safer Add-on Experience…
Cryptowall 4.0 : Save your Ass (Prevention tips)
What this (Cryptowall 4.0) shit is ? This is new Ransomware in family of Cryptowall. This is bullsh*t ransomware that leaves no option to move for victim. What it does ? It does encrypt all your files, with file names (Yeah! that’s scary). It confuses victims. “Cryptowall 4.0 still includes advanced malware dropper mechanisms to…
htaccess: Redirecting different domains with different conditions
When developing large applications you face some issues or get some requirements, that you have to fulfill for your clients. Same as one of our white label client demanded non SSL website. Where our production environment is running on HTTPS and we are redirecting non SSL to SSL forcefully with .htaccess As below. RewriteCond %{HTTPS}…
Transfer large files between two servers
This article will show you how you can transfer files between two servers. It doesn’t matter how large files are, between servers you can transfer file of any size. Whether it’s too big file or too small. You have to login to your server using SSH and then follow below listed commands as per your…