php-for-windows

  1. setx PHPRC "C:\YourPathto\PHP7\php.ini"
    You should see SUCCESS: Specified value was saved.
  2. Then restart your computer (really).
  3. Or edit environmental variables through the regular way, then restart:

 

  1. cmd -> env
  2. PATH
  3. C:/YourPathto/PHP7 & C:/YourPathto/PHP7/ext

 

The PHPRC (PHP Runtime Configuration) environment variable is one way to tell PHP where to find the main php.ini file. It can sometimes be used to change the location of the main php.ini file.
Reference: http://php.net/configuration.file

https://webmasters.stackexchange.com/questions/102131/what-does-setenv-phprc-do-and-how-is-it-used

ignore ext

composer.json:

"config": {
  "platform": {
    "ext-pcntl": "7.1",
    "ext-posix": "7.1"
  }
}

 

local ssl certificate

  1. Similar for other environment
    • download and extract for cacert.pem here (a clean file format/data)

https://curl.haxx.se/docs/caextract.html

  1. Put it here in the following directory.

C:\xampp\php\extras\ssl\cacert.pem

  1. In your php.ini put this line in this section (“c:\xampp\php\php.ini”):
;;;;;;;;;;;;;;;;;;;;
; php.ini Options  ;
;;;;;;;;;;;;;;;;;;;;

curl.cainfo = "C:\wamp\bin\php\extras\ssl\cacert.pem"
  1. Restart your webserver/apache
  2. Problem solved!

android studio – Minimize the impact of antivirus software on build speed

exclude certain directories from real-time scanning

  1. Gradle cache: %USERPROFILE%\.gradleAndroid Studio
  2. projects: %USERPROFILE%\AndroidStudioProjectsAndroid
  3. SDK: %USERPROFILE%\AppData\Local\Android\SDK OR C:\Android\android-sdk
  4. Android Studio system files:%USERPROFILE%\.AndroidStudio<version>\system

https://developer.android.com/studio/intro/studio-config?utm_source=android-studio#antivirus-impact

enable developer tools

  1. Settings -> About Phone -> (Software information)
  2. Tap 7 or 8 times on Build number or Version number
  3. Go back to Settings and enter
  4. Developer Tools -> Turn on
  5. Developer Tools -> USB turn on