um guia prático do dia a dia para ajudar você a contribuir em projetos open source
| PROBLEMA | COMANDO |
/** | |
* Returns new object without specified properties. | |
* @param {Array.<string>} keys | |
* @param {Object.<string, *>} object | |
* @returns {Object.<string, *>} | |
*/ | |
const without = ( | |
[ key, ...keys ] = [], | |
{ [key]: _, ...object } = {} | |
) => keys.length ? object : without(keys, object); |
# Mailhog | |
MAIL_MAILER=smtp | |
MAIL_HOST=0.0.0.0 | |
MAIL_PORT=1025 | |
MAIL_USERNAME=null | |
MAIL_PASSWORD=null | |
MAIL_ENCRYPTION=null |
<?php | |
namespace AppBundle\Controller; | |
class DefaultController extends Controller | |
{ | |
/** | |
* @Route("/gettoken") | |
*/ | |
public function getToken() |
<?php | |
namespace IntercaseDefault\MyClass; | |
class Curl{ | |
private $timeout = 15; | |
private $connectionTimeout = 10; | |
public function __construct () { |
Assuming you have followed all the steps to install / setup WSL2 -> https://docs.microsoft.com/en-us/windows/wsl/install-win10 | |
**Tested on Ubuntu 20.04** | |
Step 1 - Find out default gateway and DNS servers | |
- Navigate to `Control Panel\Network and Internet\Network Connections` | |
- Right click on relevant connection type WiFi or Ethernet and select `Status` | |
- Status screen will be displayed, click on `Details` button | |
- Network Connection details screen will be displayed | |
- Note down `IPv4 default gateway` and `IPv4 DNS Servers` if available |