Skip to content

Instantly share code, notes, and snippets.

View iagodahlem's full-sized avatar

Iago Dahlem Lorensini iagodahlem

View GitHub Profile
@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)"
@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 / 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 / {

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 / 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
@iagodahlem
iagodahlem / .editorconfig
Created January 30, 2016 17:51
My default code Styles in editorconfig.
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# http://editorconfig.org
# top-most EditorConfig file
root = true
# All types
[*]
charset = utf-8
@iagodahlem
iagodahlem / .gitignore
Created March 13, 2016 18:51 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #

Ubuntu Setup Guide

TODO: Description

1. Updating Everything

sudo apt-get update

sudo apt-get upgrade
@iagodahlem
iagodahlem / declaration-order-css.js
Last active September 28, 2016 14:16
My CSS order declaration rules for stylelint.
{
'declaration-block-properties-order': [
{
properties: [
'position',
'z-index',
'top',
'right',
'bottom',
'left',
@iagodahlem
iagodahlem / setup-elementary.sh
Last active November 19, 2016 22:54
Some setups for Elementary OS.
# Elementary Setup and Tweaks - for Elementary OS Loki
# extra installations
sudo apt-get install software-properties-common -y
# clean up
sudo apt-get purge evolution-data-server -y
# elementary-tweaks
sudo add-apt-repository ppa:philip.scott/elementary-tweaks -y