This error might be very frustrating to you, specially when you can't see any issue with your code, can't check error log, and obviously can't do drush watchdog-show. After some search and investigation, found that I had a call to drupal_goto() in an implementation for hook_init() which is implemented on every bootstrap process. The solution … Continue reading Drush command terminated abnormally due to an unrecoverable error
Month: October 2016
Wrong execution of rsync command can result a mess that you may cost you some precious time to fix later, so you can test the rsync command before already executing it using the (-n) parameter or (--dry-run): rsync -anv path/to/file/with/trailing/slash/ path/to/file/without/trailing/slash Then you can execute it by removing the dry run parameter: rsync -av path/to/file/with/trailing/slash/ … Continue reading How to test RSYNC before already syncing
How to select all tables that has a column / columns: SELECT DISTINCT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME IN ('column1','column2') AND TABLE_SCHEMA='database_name';
Occasionally you are in the situation that you need to know which files were changed from a commit to commit either to check an issue or to deploy these changes. git diff --name-only SHA1 SHA2 git diff --name-only HEAD~10 HEAD~5 Source