This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in router file: | |
$slimApplication->get( | |
'/demo/control', | |
'controllers.ad:demoAction' | |
) | |
->setArgument('mode', 'control') | |
->setArgument('demoIndex', null) | |
->setName('controllers.ad:demoAction'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://linuxconfig.org/sendmail-unqualified-hostname-unknown-sleeping-for-retry-unqualified-hostname | |
Operating System: Linux Solution: sendmail is searching for a FQDN ( fully qualified domain name ). In our case the host name is "debian" and that is not a FQDN. To resolve this problem change /etc/hosts: FROM: | |
127.0.0.1 localhost | |
127.0.1.1 debian | |
TO: | |
127.0.0.1 localhost.localdomain localhost debian | |
127.0.1.1 debian |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.commandlinefu.com/commands/view/10996/pngcrush-all-.png-files-in-the-directory | |
find . -iname '*png' -exec pngcrush -ow -brute {} {}.crush \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo du -x / | sort -n | tail -40 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i -e 's/^ *//; s/ *$//; /^$/d' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time wget -nv -p -H --delete-after http://petdance.com | |
time wget -e robots=off --delete-after https://www.cxamp.com/js/main.js | |
// re: https://blog.smartbear.com/performance/website-performance-measurement-tools-from-brute-force-to-relative-elegance/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -d xdebug.profiler_enabled=On | |
php -d xdebug.auto_trace=On | |
http://thomashamba.ch/xdebug-trace-file-parser.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$I->canSeeElement('^FORM^ .has-error ^ELEMENT^'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$options = $I->grabMultiple(^SELECT_ELEMENT^ option', 'value'); | |
$I->selectOption('select', $options[array_rand($options)]); |