# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php
# Update index
apt-get update
# Install php7.0-fpm with needed extensions
<!-- | |
To dicovery where is delegates convert -list delegate | |
Must pass this commands to GS: -dUseCIEColor -sDEVICE=pngalpha | |
--> | |
<delegate decode="ps:cmyk" stealth="True" command=""gs" -q -dQUIET -dUseCIEColor -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s""/> | |
import XMonad | |
import XMonad.Config.Azerty | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig | |
import Graphics.X11.ExtraTypes.XF86 | |
import XMonad.Layout.Spacing | |
import XMonad.Layout.NoBorders(smartBorders) | |
import XMonad.Layout.PerWorkspace |
<?php | |
return [ | |
// http://www.cidades.ibge.gov.br/download/mapa_e_municipios.php?uf=ac (Thu May 14 16:30:15 BRT 2015) | |
'AC' => [ | |
1200013 => 'Acrelândia', | |
1200054 => 'Assis Brasil', | |
1200104 => 'Brasiléia', | |
1200138 => 'Bujari', | |
1200179 => 'Capixaba', |
Hi! I'm one of the developers of Respect\Validation and other less known Respect components. Feel free to ask any questions here or on reddit.
There are many micro-frameworks that rely on magic methods. We don't. In this article I'm gonna explore the Respect\Validation API without fluent interfaces or magic methods. I'll use a traditional dependency injection approach.
The following validator was inspired by one of our README examples:
I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.
I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...
- Yahoo Performance Rules
- Um dos primeiros sites a divulgar esse tipo de info e provavelmente o mais famoso.
- Google Web Performance Best Practices
- Similar ao Yahoo Perf Rules.
- Sitepoint web site optimization steps
- Similar ao yahoo mas entra em mais detalhes sobre implementação.
- Performance Calendar
#!/usr/bin/env bash | |
# Usage: {script} OPTIONS | |
# Find content into files. | |
# | |
# -h, --help Displays this help | |
# -a, --action Action to perform: "search", "files" or a sed pattern to | |
# apply to files (default "search") | |
# -d, --directory Directory to search (default ".") | |
# -e, --extension Extensions to search on (default "*") | |
# -x, --exclude Pattern to exclude |