This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Class to check up e-mail | |
* | |
* @author Konstantin Granin <[email protected]> | |
* @copyright Copyright (c) 2010, Konstantin Granin | |
*/ | |
class VerifyEmail { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Type=Application | |
Name=Optimus | |
Exec=sh -c "xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto" | |
NoDisplay=true | |
X-GNOME-Autostart-Phase=DisplayServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Section "ServerLayout" | |
Identifier "layout" | |
Screen 0 "nvidia" | |
Inactive "intel" | |
EndSection | |
Section "Device" | |
Identifier "nvidia" | |
Driver "nvidia" | |
BusID "PCI:1:0:0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Promise.all([ | |
promise1, | |
promise2, | |
promise3 | |
]).then(() => { | |
return this.$router.push({'name': 'minha rota'}) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use BotMan\BotMan\Cache\LaravelCache; | |
use BotMan\BotMan\Storages\Drivers\FileStorage; | |
use BotMan\BotMan\BotManFactory; | |
use BotMan\Drivers\Facebook\FacebookDriver; | |
use BotMan\BotMan\Drivers\DriverManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
'minio' => [ | |
'driver' => 's3', | |
'endpoint' => env('MINIO_ENDPOINT', 'https://127.0.0.1:9000'), | |
'use_path_style_endpoint' => true, | |
'key' => env('AWS_KEY'), | |
'secret' => env('AWS_SECRET'), | |
'region' => env('AWS_REGION'), | |
'bucket' => env('AWS_BUCKET'), | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Controller | |
// Metodo do controle que faz a chacagem | |
protected function checkRecaptcha($token, $ip) | |
{ | |
$response = (new Client)->post('https://www.google.com/recaptcha/api/siteverify', [ | |
'form_params' => [ | |
'secret' => config('services.recaptcha.secret'), | |
'response' => $token, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
</div> | |
</template> | |
<script> | |
/** | |
* base: https://github.com/finpo/vue2-recaptcha-invisible | |
*global window document | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doOnSaved (entity) { | |
entity = prepareEntity(entity) | |
const entities = this.entities.data | |
const current = entities.find(row => row.id === entity.id) | |
if (current === undefined) { | |
entities.push(entity) | |
} | |
else { | |
entities[entities.indexOf(current)] = entity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
server_name SEU-DOMINIO.COM www.SEU-DOMINIO.COM; | |
if ($ssl_protocol = "") { | |
rewrite ^ https://$server_name$request_uri? permanent; | |
} | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |