This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
<?php | |
/** | |
* Set global/skip_process_modules_updates to '1' in app/etc/local.xml and | |
* then use this script to apply updates and refresh the config cache without | |
* causing a stampede on the config cache. | |
* | |
* @author Colin Mollenhour | |
*/ | |
umask(0); | |
ini_set('memory_limit','512M'); |
/* Responsive styles created by Valentin Niklasson */ | |
@media screen and (min-width : 954px) { | |
div.checkoutcontainer div.input-city { width: 45%!important; } | |
div.checkoutcontainer div.input-country select { width: 83%!important; } | |
div.checkoutcontainer div.input-city { width: 100%!important; } | |
div.checkoutcontainer div.input-region { width: 55.8%!important; } | |
div.checkoutcontainer div.input-address-short .input-text, | |
div.checkoutcontainer div.input-firstname .input-text, | |
div.checkoutcontainer div.input-lastname .input-text, | |
div.checkoutcontainer div.input-email .input-text, |
<?php | |
/** | |
* Fancy ID generator that creates 20-character string identifiers with the following properties: | |
* | |
* 1. They're based on timestamp so that they sort *after* any existing ids. | |
* 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs. | |
* 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly). | |
* 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the | |
* latter ones will sort after the former ones. We do this by using the previous random bits |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
alias c='docker-compose' | |
alias cb='docker-compose build' | |
alias cup='docker-compose up' | |
alias cr='docker-compose run --service-ports --rm' | |
alias crl='docker-compose run --service-ports --rm local' | |
alias crd='docker-compose run --service-ports --rm develop' | |
alias crt='docker-compose run --rm test' | |
alias crp='docker-compose run --rm provision' | |
alias crci='docker-compose run --rm ci' | |
alias crwt='docker-compose run --rm watchtest' |
# Before using these aliases and function you must make a backup of your xdebug.ini | |
# (in this case /etc/php/conf.d/xdebug.ini.back) | |
# You will also need to be able to edit xdebug.ini | |
alias xdebug-disable='echo "" > /etc/php/conf.d/xdebug.ini' | |
alias xdebug-restore='cat /etc/php/conf.d/xdebug.ini.back > /etc/php/conf.d/xdebug.ini' | |
phpu() { | |
xdebug-disable | |
phpunit "$@" |
# Before using these aliases and function you must make a backup of your xdebug.ini | |
# (in this case /etc/php/conf.d/xdebug.ini.back) | |
# You will also need to be able to edit xdebug.ini | |
alias xdebug-disable='echo "" > /etc/php/conf.d/xdebug.ini' | |
alias xdebug-restore='cat /etc/php/conf.d/xdebug.ini.back > /etc/php/conf.d/xdebug.ini' | |
phpu() { | |
xdebug-disable | |
phpunit "$@" |
#!/bin/sh | |
sed -i.default "s/^zend_extension=/;zend_extension=/" /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php70.plist | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php70.plist | |
echo "xdebug disabled" |
#!/bin/sh | |
sed -i.default "s/^zend_extension=/;zend_extension=/" /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php71.plist | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php71.plist | |
echo "xdebug disabled" |