Skip to content

Instantly share code, notes, and snippets.

View obrunofontana's full-sized avatar

Bruno Fontana obrunofontana

View GitHub Profile

The easiest way to set up absolute paths in your TypeScript Node.js project

Step-by-step guide. Works with Nest.js, Express.js or any other Node.js project. I'm going to show you how to do this quickly and easily, so let's get started.


Configure absolute paths

  1. Initialize the new package in the terminal if you haven't already done so:
@obrunofontana
obrunofontana / nginx.conf
Created September 23, 2022 17:14 — forked from v0lkan/nginx.conf
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
@obrunofontana
obrunofontana / mysql-docker.sh
Created May 28, 2022 12:14 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
[user]
name = obrunofontana
email = [email protected]
[credential]
helper = cache
[color]
ui = auto
[color "branch"]
current = yellow bold
local = green bold
{
"workbench.iconTheme": "material-icon-theme",
"tabnine.experimentalAutoImports": true,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
@obrunofontana
obrunofontana / MySQL_5-7_macOS.md
Created March 25, 2021 19:15 — forked from robhrt7/MySQL_5-7_macOS.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@obrunofontana
obrunofontana / cloudSettings public
Created January 20, 2020 14:54 — forked from luizcarraro/cloudSettings public
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-10-30T13:26:58.960Z","extensionVersion":"v3.2.0"}