Skip to content

Instantly share code, notes, and snippets.

View diegosparente's full-sized avatar
🎯
Focusing

Diego Parente diegosparente

🎯
Focusing
View GitHub Profile
@diegosparente
diegosparente / .editorconfig
Created March 15, 2025 22:10
editorconfig-python
# EditorConfig para seguir a PEP 8 (estilo de código Python)
root = true
# Config gerais para todos os arquivos
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@diegosparente
diegosparente / config.md
Created January 13, 2025 12:15
Configuração do servidor markdown

Relatório de Configuração do Servidor Atual

Segue o detalhamento das instalações e configurações presentes no servidor atual para que possam ser replicadas na nova máquina com a versão mais recente do Ubuntu.


1. Versões do PHP

  • PHP 7.4
  • PHP 8.2
@diegosparente
diegosparente / Engineering.md
Created January 8, 2025 10:17
A list of the 17 essential rules of Software Engineering, highlighting best practices and principles for building maintainable and effective software. Perfect for sharing with development teams and keeping as a personal reference.

17 Regras de Engenharia de Software

  1. Pare de se apaixonar pelo seu próprio código.
  2. Você vai se arrepender da complexidade quando estiver de plantão.
  3. Tudo é uma troca. Não existe o "melhor".
  4. Cada linha de código que você escreve é uma responsabilidade.
  5. Documente suas decisões e designs.
  6. Todos odeiam código que não escreveram.
  7. Não use dependências desnecessárias.
  8. Padrões de codificação evitam discussões.
@diegosparente
diegosparente / .editorconfig
Last active July 5, 2024 14:20
editorconfig - Python projects
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.py]
max_line_length = 79
  • 0 – Muito rápido para entregar e sem complexidade. Em minutos

    • Deveria ser capaz de entregar muitos 0’s em um dia
    • Eu sei exatamente o que precisa ser feito, e vai me levar muito pouco tempo
    • Exemplo: Mudar cor em CSS, corrigir consulta simples
  • 1 – Rápido para entregar e mínima complexidade. Uma hora

    • Deveria ser capaz de entregar alguns 1’s em um dia
    • Eu sei exatamente o que precisa ser feito, e vai me levar pouco tempo
    • Exemplo: Adicionar campo a um formulário
@diegosparente
diegosparente / install-openjdk.txt
Created January 8, 2024 00:54 — forked from douglarek/install-openjdk.txt
How to install openJDK 11 on macOS
$ curl -C - https://download.java.net/java/ga/jdk11/openjdk-11_osx-x64_bin.tar.gz -O openjdk-11_osx-x64_bin.tar.gz
$ tar xf openjdk-11_osx-x64_bin.tar.gz
$ sudo mv jdk-11.jdk /Library/Java/JavaVirtualMachines/
$ java -version
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
@diegosparente
diegosparente / php-style-guide.md
Created July 29, 2022 19:13 — forked from ryansechrest/php-style-guide.md
PHP style guide with coding standards and best practices.

PHP Style Guide

All rules and guidelines in this document apply to PHP files unless otherwise noted. References to PHP/HTML files can be interpreted as files that primarily contain HTML, but use PHP for templating purposes.

The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Most sections are broken up into two parts:

  1. Overview of all rules with a quick example
  2. Each rule called out with examples of do's and don'ts
@diegosparente
diegosparente / OCI-Oracle-to-PHP.md
Last active May 11, 2022 11:33
Configuration process for php to work with Oracle database.

How to configure ORACLE (oci + instantclient) for PHP Applications

by Tom Benevides

This text is intended to guide the installation and configuration of Oracle's InstantClient, responsible for mediating connections with Oracle databases. Below are the necessary steps::

This tutorial adopted version 8.1 of PHP. If your version is different, make the necessary adaptations.

The terminal adopted is the default one, so the configuration of environment variables is done in ~/.bashrc. If using ZSH, add the variables in ~/.zshrc

Step 1

@diegosparente
diegosparente / install_oci8_ubuntu20_php7.4.md
Created April 29, 2022 16:59 — forked from eSkiSo/install_oci8_ubuntu20_php7.4.md
Install OCI8 (Oracle) in Ubuntu 20 with PHP 7.4
@diegosparente
diegosparente / .rubocop.yml
Created January 9, 2022 19:04
RuboCop config
require:
- rubocop-performance
- rubocop-rails
- rubocop-minitest
AllCops:
TargetRubyVersion: 3.1.0
NewCops: enable
Exclude:
- 'db/**/*'