- Just an md5 of the cache key
- Therefore not possible to identify key name from file name - md5 is one way
- Level 1 - First 2 characters of filename
- Level 2 - Next 2 characters of filename
# /usr/bin/xdebug | |
#!/bin/bash | |
XDEBUG_CONFIG="idekey=xdebug" php -dxdebug.remote_host=`echo $SSH_CLIENT | cut -d "=" -f 2 | awk '{print $1}'` "$@" |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Terminal=false | |
Icon[en_GB]=bash | |
Name[en_GB]=PhpStorm 9 - EAP | |
Exec=/bin/bash /home/carlton/programs/PhpStorm-141.1224/bin/phpstorm.sh | |
Name=PHPStorm | |
Icon=/home/carlton/programs/webide.png |
# ALIASES | |
## APACHE | |
alias apache-restart='sudo service apache2 restart' | |
alias apache-reload='sudo service apache2 reload' | |
## PHP | |
alias cdd-command='/usr/bin/php /var/www/commands/app/app.php' | |
## GIT |
# Ubuntu 14 | |
sudo nano /etc/rc.local | |
mount -t vboxsf share_name_in_virtual_box /var/www/project |
# Install Java 7 JDK and create an alias if needed | |
alias selenium_start='java -jar ./selenium-server-standalone-2.48.2.jar' | |
# Useful notes "codeception/codeception": "~2.0" | |
The AcceptanceTester parameter passed into the tests is a class that is generated dynamically, if web driver is used as a module then the web driver functions will be available in the auto complete | |
# Running tests in general | |
http://codeception.com/docs/02-GettingStarted#Running-Tests | |
# Running tests for specific environments |
# Local reset: | |
git reset --hard fj5789sufj | |
# Remote reset: | |
git push -f origin fj5789sufj:master |
# Checkout a tag | |
git checkout tags/0.0.3 | |
# Checkout a branch | |
git checkout 0.0.3 |
# Show running queries | |
SHOW FULL PROCESSLIST; | |
# Show who is connected | |
SHOW STATUS LIKE '%onn%'; | |
# Search stored procedures for a string | |
SELECT * FROM information_schema.`ROUTINES` r WHERE r.`ROUTINE_DEFINITION` LIKE '%string%'; |