um guia prático do dia a dia para ajudar você a contribuir em projetos open source
| PROBLEMA | COMANDO |
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 |
<?php | |
namespace IntercaseDefault\MyClass; | |
class Curl{ | |
private $timeout = 15; | |
private $connectionTimeout = 10; | |
public function __construct () { |
<?php | |
namespace AppBundle\Controller; | |
class DefaultController extends Controller | |
{ | |
/** | |
* @Route("/gettoken") | |
*/ | |
public function getToken() |
# Mailhog | |
MAIL_MAILER=smtp | |
MAIL_HOST=0.0.0.0 | |
MAIL_PORT=1025 | |
MAIL_USERNAME=null | |
MAIL_PASSWORD=null | |
MAIL_ENCRYPTION=null |
/** | |
* 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); |
Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...
What this guide covers:
<?php | |
// resources/lant/pt/validation.php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Validation Language Lines | |
|-------------------------------------------------------------------------- |
@echo off | |
echo Laravel Installer | |
if "%1" == "init" goto init | |
if "%1" == "new" goto new | |
echo Uso: | |
echo laravel init [versao] - instala uma nova aplicacao na pasta atual (precisa estar vazia a pasta!) | |
echo laravel new [nome] [versao] - instala uma nova aplicacao na pasta 'nome'. Se nome nao for indicado ele criara na pasta 'laravel' por padrao. |
<?php | |
use Silex\Application; | |
use Silex\ServiceProviderInterface; | |
use Illuminate\Database\Capsule\Manager as Capsule; | |
use Illuminate\Events\Dispatcher; | |
use Illuminate\Container\Container; | |
use Illuminate\Cache\CacheManager; | |
class CapsuleServiceProvider implements ServiceProviderInterface | |
{ |