# Installing MySQL
brew install -v mysql
# Setting up MySQL
# Copy the default my-default.cnf file to the MySQL Homebrew Cellar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MAKEFILE | |
# | |
# Autor: Vitor Britto | |
# Versão: 0.1.0 | |
# | |
# | |
# Descrição: | |
# Arquivo para gerar um estrutura inicial para | |
# novos projetos e realizar tarefas de automação | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------------------------------------------------- | |
# Start an HTTP server from a directory, optionally specifying the port | |
# ---------------------------------------------------------------------- | |
pyserver() { | |
local port="${1:-8000}" | |
sleep 1 && open "http://localhost:${port}/" & | |
# Set the default Content-Type to `text/plain` instead of `application/octet-stream` | |
# And serve everything as UTF-8 (although not technically correct, this doesn’t break anything for binary files) | |
python -c $'import SimpleHTTPServer;\nmap = SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map;\nmap[""] = "text/plain";\nfor key, value in map.items():\n\tmap[key] = value + ";charset=UTF-8";\nSimpleHTTPServer.test();' "$port" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"explorer.confirmDelete": false, | |
"window.zoomLevel": -2, | |
"guides.enabled": false, | |
"explorer.confirmDragAndDrop": false, | |
"[json]": { | |
"editor.defaultFormatter": "HookyQR.beautify" | |
}, | |
"[html]": { | |
"editor.defaultFormatter": "HookyQR.beautify" |
In your command-line run the following commands:
brew doctor
brew update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Executar no shell/bash com: bash install.sh | |
# ------------------------------------------------------------------------------ | |
# | Helpers | | |
# ------------------------------------------------------------------------------ | |
# Renderiza um log de informação | |
e_informa() { | |
printf "\n$(tput setaf 7)%s$(tput sgr0)\n" "$@" |
I hereby claim:
- I am vitorbritto on github.
- I am vitorbritto (https://keybase.io/vitorbritto) on keybase.
- I have a public key ASAlgVIS18Rhy8It_4saeW-NLIB-VYoiFZeTPYSjz6M9qQo
To claim this, I am signing this object:
Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics