Skip to content

Instantly share code, notes, and snippets.

View CauanCabral's full-sized avatar

Cauan Cabral CauanCabral

View GitHub Profile
@CauanCabral
CauanCabral / AppController.php
Last active July 3, 2020 16:11
CakePHP 4.1 Application Sample with Authentication and Authorization middlewares
<?php
namespace App\Controller;
class AppController extends Controller
{
/**
* Initialization hook method.
*
* Use this method to add common initialization code like loading components.
*
@CauanCabral
CauanCabral / pt_br.affix
Created November 24, 2020 21:03
Dicionários Hunspell PT-BR preparados para busca textual (FTS) com Postgresql. Fonte: https://cgit.freedesktop.org/libreoffice/dictionaries/tree/pt_BR
This file has been truncated, but you can view the full file.
SET UTF-8
TRY áàãâéêíóõôúüçesianrtolcdugmphbyfvkwjqxz
# VERO - Verificador Ortográfico Livre - Versão 3.2
# Copyright (C) 2006 - 2013 por Raimundo Santos Moura
# <[email protected]>
# Brasil - outubro 2013
# Este é um dicionário para correção ortográfica da língua Portuguesa
# para o Hunspell.
# Este programa é livre e pode ser redistribuído e/ou modificado nos
@CauanCabral
CauanCabral / build.sh
Created January 26, 2022 12:49
Compiling PgModeler 0.9.4 with Ubuntu 21.04
#!/bin/bash
# First, download, extract and join the resource path
wget https://github.com/pgmodeler/pgmodeler/archive/refs/tags/v0.9.4.tar.gz -O pgmodeler-0.9.4.tar.gz
tar -zxvf pgmodeler-0.9.4.tar.gz
cd pgmodeler-0.9.4
# Get the plugins project using git
git clone https://github.com/pgmodeler/plugins.git
@CauanCabral
CauanCabral / .editorconfig
Last active April 7, 2022 18:40
Default EditorConfig setup for Node.js projects
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
quote_type = single