Monthly Archives: September 2020

Web Site Icon for mobile shortcut

The image size is key. At least 192×192

Reference:

  1. https://stackoverflow.com/questions/11761864/how-to-define-the-website-screen-shortcut-icon
  2. Example:
    1. https://stage.bunnymenu.com/
    2. https://www.obooko.com/blog-post/add-web-shortcut-icon-to-iphone-or-android-phone

Sort by array values

Reference:

  1. https://stackoverflow.com/questions/8055138/mysql-sort-order-by-array-value

Laravel Cookie (old)

Save cookie with redirect or response

Get cookie

Reference:

  1. https://laravel.com/docs/5.8/requests#cookies
  2. https://laravel.com/docs/5.8/responses#attaching-cookies-to-responses

Git pull show all files are modified and with a lot conflicts

  1. Change line ending config
  2. Change file mode:
  3. Clear cache

Reference:

  1. elharony commented on 7 Dec 2018
    https://github.com/microsoft/WSL/issues/184
  2. https://github.com/microsoft/WSL/issues/2900

Add existing folder in repo and track remote branch

Github solution

Reference:

  1. https://docs.github.com/en/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line
  2. https://docs.github.com/en/github/using-git/adding-a-remote