Using Pass for linux

Pass is an awesome utility to store your passwords. For example you can store ssh passwords to use on terminal. Installing pass Pass works on gpg keys so you need to first generate pass key Follow instructions You can skip the passphrase (it is less secure) Initialize pass, use the email you used for gpg […]

Setting up vue-cli in docker

To setup vue-cli in docker we need nodejs and vue-cli 3. We are going to use docker-compose.yml to setup docker, paste following to your docker-compose.yml file docker-compose.yml Paste following into Dockerfile Dockerfile Now we have docker files setup, lets build the docker images After docker is built login into docker container using container id and […]

How to use ISODate in PHP/Laravel

In MongoDB Date objects are stored as a signed 64-bit integer representing the number of milliseconds since the Unix epoch (Jan 1, 1970). Not all database operations and drivers support the full 64-bit range. You may safely work with dates with years within the inclusive range 0 through 9999. ISODate is not supported by PHP/MongoDB […]

Fix magento Warning: Error while sending QUERY packet

You may encounter some error like below when installing magento with sample data [ERROR] exception ‘Exception’ with message ‘Warning: Error while sending QUERY packet. PID=227012 Fix: That error is because of low max_allowed_packet  configuration in your php.ini file, open your local (project level) php.ini file and add following For more info on magento level php.ini configuration […]

Two icons in dock?

Some time dock starts showing two icons of an app in dock, that is because dock failed to match the application window manager name (class) with the opened app. For example MongoDB Compass showing dual/two icons on the docky. To see what class name app is actually using we need to use xprop which is […]

Using systemd-boot(gummi-boot) for eufi windows dual boot

Systemd-Boot (gummiboot) Make sure “/boot” is mounted on your efi boot partition i.e /dev/sda1. After installing boot loader, configure systemd-boot loader defaults, skip it if you have chosen GRUB Change file as below, skip if you have installed GRUB Copy default arch entry to boot loader entries, skip if you have installed GRUB Add root […]