Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
This gist assumes:
##Given Apache 2 and MySQL are already installed.
#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated
#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules
<?php | |
/** | |
* A helper file for Laravel 5, to provide autocomplete information to your IDE | |
* Generated for Laravel 5.5.13 on 2017-09-28. | |
* | |
* @author Barry vd. Heuvel <[email protected]> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ | |
namespace { | |
exit("This file should not be included, only analyzed by your IDE"); |
sudo port install php56 +fastcgi fcgi apache-ant php56-cgi php56-mbstring php56-curl php56-mcrypt php56-imagick php56-xdebug php56-iconv php56-mongo php56-oauth php56-openssl php56-esmtp php56-pop3 php56-tidy php56-uploadprogress php56-pcntl php56-sockets php56-soap php56-ssh2 php56-big_int php56-gd php56-svm php56-html_parse php56-http php56-mysql php56-pdflib php56-pear php56-peb php56-posix php56-pspell php56-rar php56-redis php56-snmp php56-stomp php56-svn php56-wddx php56-xmlrpc php56-yaml php56-zip php56-dbase php56-excel php56-gdchart php56-imap php56-xsl php56-redis | |
sudo port install postgresql94 postgresql94-server postgresql94-doc postgresql_autodoc php56-postgresql phppgadmin postgresql-jdbc phpmyadmin maven3 maven-ant-tasks postgis2 +postgresql94 git qgis re2c json-c | |
sudo port install nginx +flv +geoip +gzip_static +mail +mp4 +ssl +status +substitution +upload +upload_progress +xslt +zip |
#!/bin/bash | |
# | |
# Check package.json and npm install after git checkout. | |
# Put this to .git/hooks/post-checkout | |
# | |
PREVIOUS_HEAD=$1 | |
NEW_HEAD=$2 | |
BRANCH_SWITCH=$3 |
Google Chrome Developers says:
The new WOFF 2.0 Web Font compression format offers a 30% average gain over WOFF 1.0 (up to 50%+ in some cases). WOFF 2.0 is available since Chrome 36 and Opera 23.
Some examples of file size differences: WOFF vs. WOFF2
* -A in SSH enables agent forwarding. | |
* -p 2122 is not needed if you use the default port of 22. | |
* Replace SSH_USER and example.com with your own values. | |
* Example run: $ envoy run deploy_demo | |
* --no-scripts because Laravel composer.json's post-install-cmd includes optimize, which is already done by php artisan dump-autoload | |
@servers(['test' => '-A -p 2122 -l user test.example.com', 'prod' => '-A -p 2122 -l user example.com']) | |
@task('install_test', ['on' => ['test']]) | |
cd project |
Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element
or the /deep/
path selector.
video::webkit-media-controls-timeline {
background-color: lime;
}
video /deep/ input[type=range] {