Skip to content

Instantly share code, notes, and snippets.

View dorfo-dev's full-sized avatar
🎯
Focusing

Rodolfo Capellini dorfo-dev

🎯
Focusing
View GitHub Profile
@dorfo-dev
dorfo-dev / ngnix.config
Created July 15, 2022 16:02 — forked from lukecav/ngnix.config
Browser caching rules for NGNIX and expire headers.
# Browser caching of static assets.
location ~* \.(jpg|jpeg|png|gif|ico|css|js|pdf)$ {
expires 7d;
add_header Cache-Control "public, no-transform";
}
# Media: images, icons, video, audio send expires headers
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm)$ {
expires 1M;
access_log off;
@dorfo-dev
dorfo-dev / k8s-ingress.md
Created January 20, 2022 21:59
Multiples Nginx controller no K8s

Primeiro Crie dois namespaces

  kubectl create namespace nginx-api
   kubectl create namespace nginx-front

Depois adicione o Nginx Controller ao Helm e atualize o repo

@dorfo-dev
dorfo-dev / .eslintrc.js
Created April 8, 2021 12:02
Nestjs config eslint and prettier
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
@dorfo-dev
dorfo-dev / ohmyzsh.md
Created January 24, 2021 15:26 — forked from yovko/ohmyzsh.md
ZSH (using Oh My ZSH) on Manjaro Linux

ZSH (using Oh My ZSH) on Manjaro Linux

0. If ZSH is not already installed on your Manjaro system you can do it with the command:

sudo pacman -Syu zsh

You do not need to install manjaro-zsh-config and all the other related packages like zsh-syntax-highlighting, zsh-history-substring-search, zsh-autosuggestions, etc., as we will use Oh My Zsh.