Skip to content

Instantly share code, notes, and snippets.

View pedrofelipe's full-sized avatar
🏠
Working from home

Pedro Menezes pedrofelipe

🏠
Working from home
View GitHub Profile
@pedrofelipe
pedrofelipe / gist:7867762
Created December 9, 2013 05:37
How to improve font rendering on OS X only with CSS
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@pedrofelipe
pedrofelipe / gist:7901937
Created December 10, 2013 22:57
Add this line to your wp-config.php to disable all WordPress automatic updates. Source: http://codex.wordpress.org/Configuring_Automatic_Background_Updates#Disabling_Automatic_Updates
# Disables all WordPress automatic updates
define( 'AUTOMATIC_UPDATER_DISABLED', true );
@pedrofelipe
pedrofelipe / gist:7901996
Created December 10, 2013 23:01
PageSpeed active filters.
convert_jpeg_to_progressive,rewrite_images,inline_preview_images,resize_mobile_images,rewrite_style_attributes,insert_dns_prefetch,collapse_whitespace,remove_comments,outline_css,prioritize_critical_css,convert_jpeg_to_webp,insert_image_dimensions
# Bloqueia acesso ao xmlrpc.php
<Files ./xmlrpc.php>
Order Allow,Deny
Deny from all
</Files>
@pedrofelipe
pedrofelipe / gist:9261630
Created February 27, 2014 23:07
Media query para suportar telas Retina
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
/* Tudo o que for Retina aqui */
}
/* Programação */
#programacao {
background-color: #fffaf3; }
.proximo { overflow: hidden; }
.proximo .jogo {
height: 320px;
background-color: #fef2e0; }
@pedrofelipe
pedrofelipe / gist:849985d6e13744ae7a1d
Created July 10, 2014 22:11
Update each dependency in package.json to the latest version
$ npm install -g npm-check-updates
$ npm-check-updates -u
@pedrofelipe
pedrofelipe / gist:4093db012e8d99e76fcf
Last active August 29, 2015 14:03
Getting started a new front-end project
// update npm packages
sudo npm update -g npm
// install web app generator (bootstrap + sass)
sudo npm install -g generator-webapp
// create project folder
mkdir project && cd $_
// run web app generator
@pedrofelipe
pedrofelipe / setting-up-my-environment-os-x
Last active August 29, 2015 14:04
Setting up my environment (OS X)
// set tomorrow night theme (terminal)
https://raw.githubusercontent.com/chriskempson/tomorrow-theme/master/OS%20X%20Terminal/Tomorrow%20Night.terminal
// install oh-my-zsh
curl -L http://install.ohmyz.sh | sh
// install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew update
brew doctor
@pedrofelipe
pedrofelipe / brazilian-states
Created June 11, 2015 22:00
Estados do Brasil em <select>
<select>
<option selected disabled>Estado</option>
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
<option value="AP">Amapá</option>
<option value="AM">Amazonas</option>
<option value="BA">Bahia</option>
<option value="CE">Ceará</option>
<option value="DF">Distrito Federal</option>
<option value="ES">Espirito Santo</option>