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
| /** | |
| * @TODO Comment this! | |
| * | |
| #if (${TYPE_HINT} == "int") | |
| * @return integer | |
| #else | |
| * @return ${TYPE_HINT} | |
| #end | |
| */ | |
| #if (${TYPE_HINT} == "boolean") |
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
| /** | |
| * @TODO Comment this! | |
| * | |
| #if (${TYPE_HINT} == "int") | |
| * @param integer $${PARAM_NAME} | |
| #else | |
| * @param ${TYPE_HINT} $${PARAM_NAME} | |
| #end | |
| * | |
| #if (${STATIC} == "static") |
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
| Rotate MySQL RDS Logs | |
| PROMPT> CALL mysql.rds_rotate_slow_log; | |
| PROMPT> CALL mysql.rds_rotate_general_log; |
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
| Find a column in a database | |
| SELECT TABLE_NAME, COLUMN_NAME | |
| FROM INFORMATION_SCHEMA.COLUMNS | |
| WHERE column_name LIKE 'partnerId' |
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
| xdebug.default_enable = 1 | |
| xdebug.remote_autostart = 0 | |
| xdebug.remote_connect_back = 1 | |
| xdebug.remote_enable = 1 | |
| xdebug.remote_handler = "dbgp" | |
| xdebug.remote_port = 9000 | |
| xdebug.idekey = "PHPSTORM" |
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
| Vagrant Issues | |
| Issue | |
| 'vagrant up' command fails when trying to launch a Vagrant environment. The error that is output is: | |
| There was an error while executing `VBoxManage`, a CLI used by Vagrant | |
| for controlling VirtualBox. The command and stderr is shown below. | |
| Command: ["hostonlyif", "create"] | |
| Stderr: 0%... |
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
| Reset Root Mysql on Ubuntu | |
| sudo dpkg-reconfigure mysql-server-5.1 |
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
| // Find the third td of each tr and see if the IP starts with X, if so lets check the box for removal | |
| $("table.ACCtable2 tr td:nth-child(3)").each(function() { | |
| $ipNode = $(this); | |
| if ($ipNode.text().indexOf(' XXX.XXX.XXX.') >= 0) { | |
| $ipNode.prev().prev().children('input').prop('checked', true); | |
| } | |
| }); |
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
| # Aliases | |
| alias vup="vagrant up" | |
| alias vh="vagrant halt" | |
| alias vs="vagrant suspend" | |
| alias vr="vagrant resume" | |
| alias vrl="vagrant reload" | |
| alias vssh="vagrant ssh" | |
| alias vst="vagrant status" | |
| alias vp="vagrant provision" | |
| alias vdstr="vagrant destroy" |
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
| Error: | |
| Failed to mount folders in Linux guest. This is usually because | |
| the "vboxsf" file system is not available. Please verify that | |
| the guest additions are properly installed in the guest and | |
| can work properly. The command attempted was: | |
| mount -t vboxsf -o uid=`id -u root`,gid=`getent group vagrant | cut -d: -f3` tmp_vagrant-puppet-3_manifests /tmp/vagrant-puppet-3/manifests | |
| mount -t vboxsf -o uid=`id -u root`,gid=`id -g vagrant` tmp_vagrant-puppet-3_manifests /tmp/vagrant-puppet-3/manifests |