Skip to content

Instantly share code, notes, and snippets.

View randercarlos's full-sized avatar

Rander Carlos Caetano Freitas randercarlos

View GitHub Profile
@randercarlos
randercarlos / boas-práticas-git.txt
Last active June 5, 2018 12:30
Boas práticas git
# Usar verbos para descrever commit. A mensagem do commit deve ser em inglês
Exemplo: Add form login
Exemplo: Update navbar items
Exemplo: Change site title
Exemplo: Rename README.txt to README.md
# Usar commit pequenos e atômicos
Cada commit deve ter de dois a 5 linhas de código alteradas
@randercarlos
randercarlos / deploy.php
Created October 20, 2021 22:17 — forked from mtwalsh/deploy.php
Deployer recipe for Laravel projects.
<?php
namespace Deployer;
require 'recipe/common.php';
// Project name
set('application', 'enovate.co.uk');
// Project repository
set('repository', '[email protected]:enovatedesign/project.git');
@randercarlos
randercarlos / create_laravel_from_docker.txt
Last active April 29, 2024 20:33
create a new laravel project from docker
WSL 2
docker run --rm -v /$(pwd):/app composer create-project laravel/laravel nome_do_projeto
GIT BASH
docker run --rm -v /$(pwd):/app composer create-project laravel/laravel nome_do_projeto
ou
docker run --rm -v ${PWD}:/app composer create-project laravel/laravel nome_do_projeto
@randercarlos
randercarlos / LaravelWhereLikeMacro.php
Created November 26, 2023 14:11 — forked from MrPunyapal/LaravelWhereLikeMacro.php
Laravel Custom 'whereLike' Macro for Dynamic 'LIKE' Searches including relationships
<?php
use Illuminate\Support\ServiceProvider;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Arr;
class AppServiceProvider extends ServiceProvider
{
// ...
@randercarlos
randercarlos / .01-README.md
Created May 1, 2024 01:16 — forked from armenr/.01-README.md
CORRECTLY setting up VSCode + TypeScript + VueJS 3 + EsLint + Prettier

To be completed...

@randercarlos
randercarlos / nuxt.txt
Last active October 25, 2024 18:01
install on new Nuxt project
pnpm dlx nuxi module add eslint
pnpm dlx nuxi module add tailwindcss
pnpm dlx nuxi module add google-fonts
pnpm add -D vue-tsc typescript vite-plugin-eslint2
package.json
"scripts": {
"lint:check": "eslint .",
"lint:fix": "eslint . --fix"