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:
I hereby claim:
To claim this, I am signing this object:
# 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" "$@" |
In your command-line run the following commands:
brew doctor
brew update
{ | |
"explorer.confirmDelete": false, | |
"window.zoomLevel": -2, | |
"guides.enabled": false, | |
"explorer.confirmDragAndDrop": false, | |
"[json]": { | |
"editor.defaultFormatter": "HookyQR.beautify" | |
}, | |
"[html]": { | |
"editor.defaultFormatter": "HookyQR.beautify" |
# ---------------------------------------------------------------------- | |
# 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" |
# 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 | |
# |
# Start by stopping the built-in Apache, if it's running, and prevent it from starting on boot.
# This is one of very few times you'll need to use sudo:
sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
# We need to tap homebrew-dupes because "homebrew-apache/httpd22" relies on "homebrew-dupes/zlib"
Complete Guide / Isseus / Common Problems: https://github.com/Homebrew/homebrew-php
# Install PHP with PHP-FPM and excluding snmp
brew install -v homebrew/php/php56 --with-fpm --without-snmp