Skip to content

Instantly share code, notes, and snippets.

View iagodahlem's full-sized avatar

Iago Dahlem iagodahlem

View GitHub Profile
@iagodahlem
iagodahlem / composer-laravel.md
Last active December 15, 2015 18:41
Command to create new Laravel project with Composer.

New Laravel Project with Composer

$ composer create-project laravel/laravel --prefer-dist CHANGEME.app

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables

@iagodahlem
iagodahlem / setting-autoindex-on-nginx
Last active August 29, 2015 14:25
Configurando autoindex no Nginx, para seu diretório principal.
server {
listen 80;
server_name vhosts;
root /var/www/vhosts;
index index.html index.htm index.php;
charset utf-8;
location / {
@iagodahlem
iagodahlem / setting-up-new-project-nginx
Last active August 29, 2015 14:25
Iniciando um novo projeto com uma URL interna no Nginx.
1.Configurando Virtual Host (URL Interna)
Aplicar Entrada
cd /etc/
sudo subl hosts
Aplicar nova entrada
127.0.0.1 CHANGEME.app
2.Adicionar Caminho ao Nginx
cd etc/nginx
cd sites-available/
@iagodahlem
iagodahlem / ubuntu-setup
Last active September 10, 2015 13:54
Instalação e configuração de softwares para desenvolvimento Web.
1.Coisas Básicas
sudo apt-get install vim git curl python-software-properties
2.ZSH | OH-MY-ZSH
sudo apt-get install zsh
zsh --version
chsh -s /usr/bin/zsh
Reiniciar Sessão
echo $SHELL
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"