Expected response code 250 but got code “535”, with message "535-5.7.8 Username and Password not accepted

Created at: 2020-06-20 01:44:08 Updated at: 2020-06-20 01:44:26

I researched on the internet and some answers includes enabling the "access for lesser app" and "unlocking gmail captcha" which sadly didn't work for me until I found the 2-step verification.

What I did the following was:

enable the 2-step verification to google HERE

Create App Password to be use by your system HERE

I selected Others (custom name) and clicked generate

Went to my env file in laravel and edited this

MAIL_USERNAME=talentscoutphil@gmail.com

MAIL_PASSWORD=thepasswordgenerated

Restarted my apache server and boom! It works again. This was my solution. I created this to atleast make o...

how to manage multiple php version?

Created at: 2020-04-27 14:28:57 Updated at: 2020-05-26 13:46:25

in Linux

Managing Multiple PHP versions via the ondrej/php PPA

First of remove registered PPA key so it will note make dublication.

sudo add-apt-repository  --remove  ppa:ondrej/php

Secound install/register PPA key so it will note make dublication.

sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php

Easy for every linux

sudo apt -y install lsb-release apt-transport-https ca-certificates 
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list

Third notify the system ...

Git useful commands

Created at: 2019-09-10 14:12:34 Updated at: 2020-05-23 15:33:20

in Git, Linux

  • Store all your cred into system helper
    git config --global credential.helper store
    # Set the cache to timeout after 1 hour (setting is in seconds)
    git config --global credential.helper 'cache --timeout=3600'
  • Reset current branch to previous stat
    git reset --hard HEAD
  • Ignore file mode change in current working tree
    # For individual project
    git config core.fileMode false 
    # For system wide all git project
    git config --global core.fileMode false

Git log for branch

git log --pretty="format:[%an] => %h %ar %s"

Get branch history

git log <<YOUR BRANCH NAME>> --...