Skip to content

Instantly share code, notes, and snippets.

View jeffersongoncalves's full-sized avatar
🇺🇦
Stand with Ukraine

Jefferson Gonçalves jeffersongoncalves

🇺🇦
Stand with Ukraine
View GitHub Profile
@jeffersongoncalves
jeffersongoncalves / .env
Created April 11, 2025 14:29 — forked from aguinaldotupy/.env
Docker Laravel Octane / PHP 8.4 / Swoole
OCTANE_SERVER="swoole"
OCTANE_HTTPS="true"
WWWGROUP=1004
WWWUSER=1004
@jeffersongoncalves
jeffersongoncalves / jetbrains-prompt.txt
Created March 4, 2025 11:46
JetBrains AI prompt using Conventional Commits
Generate a commit message following the Conventional Commits specification. Use one of the following types:
Type Format: <type>(<scope>): <description>
Available Types:
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- refactor: A code change that neither fixes a bug nor adds a feature
@jeffersongoncalves
jeffersongoncalves / GenerateLang.php
Created February 18, 2025 23:05
Translate language files from one language to another using Google Translate
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\File;
use Stichoza\GoogleTranslate\GoogleTranslate;
class GenerateLang extends Command
{
@jeffersongoncalves
jeffersongoncalves / Login.php
Created February 11, 2025 11:34
Add status verification in Login FilamentPHP
<?php
namespace App\Filament\Pages\Auth;
class Login extends \Filament\Pages\Auth\Login
{
protected function getCredentialsFromFormData(array $data): array
{
return [
'email' => $data['email'],
@jeffersongoncalves
jeffersongoncalves / CheckUserCompleteInfo.php
Created February 10, 2025 13:51
Middleware check user info completed
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
class CheckUserCompleteInfo
{
<?php
namespace App\Support;
use Exception;
abstract class QRCodePixSupport
{
/**
* @throws Exception
@jeffersongoncalves
jeffersongoncalves / dependabot-auto-merge.yml
Created January 23, 2025 18:25
Habilitando o dependabot.yml
name: dependabot-auto-merge
on: pull_request_target
permissions:
pull-requests: write
contents: write
jobs:
dependabot:
runs-on: ubuntu-latest
@jeffersongoncalves
jeffersongoncalves / devsamurai.sh
Last active January 14, 2025 00:14
Lista de zips das Aulas do devsamurai disponibilizado no class.devsamurai.com.br
wget https://cursos.devsamurai.com.br/Aulas%20ao%20Vivo.zip
wget https://cursos.devsamurai.com.br/Backend%20-%20Dominando%20o%20NodeJS.zip
wget https://cursos.devsamurai.com.br/Backend%20-%20Dominando%20o%20Postgres.zip
wget https://cursos.devsamurai.com.br/Carreira%20de%20Programador.zip
wget https://cursos.devsamurai.com.br/Flutter%20-%20Calculadora%20IMC.zip
wget https://cursos.devsamurai.com.br/Flutter%20-%20Card%C3%A1pio%20online.zip
wget https://cursos.devsamurai.com.br/Flutter%20-%20Fluck%20Noris.zip
wget https://cursos.devsamurai.com.br/Flutter%20-%20Lista%20de%20Leituras.zip
wget https://cursos.devsamurai.com.br/Flutter%20Avan%C3%A7ado.zip
wget https://cursos.devsamurai.com.br/Flutter%20B%C3%A1sico.zip
<?php
namespace App\Traits;
trait PostsPerMonthSeries
{
protected function getChartData(): array
{
return [
'data' => [
@jeffersongoncalves
jeffersongoncalves / .my_setup_oh-my-zsh
Created January 7, 2025 18:01 — forked from andrelugomes/.my_setup_oh-my-zsh
Install oh-my-zsh, plugins and theme
- ok-my-zsh
- p10k.zsh : custon
- .zshrc : Plugins