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
| //Undo Commit: | |
| svn merge -r COMMITTED:PREV . | |
| //Revert Merge | |
| svn revert -R . | |
| //Revert to older revision: | |
| svn update -r <earlier_revision_number> |
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
| drush @sites php-eval 'node_access_rebuild();' -y |
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
| //test mode | |
| svn merge --dry-run -r:73:68 http://my.repository.com/my/project/trunk | |
| //merge to previous | |
| svn merge -r:73:68 http://my.repository.com/my/project/trunk | |
| //commit the changes. | |
| svn commit -m "Reverted to revision 68." |
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 | |
| //load phpquery library here. | |
| require('phpQuery/phpQuery.php'); | |
| //sample URL | |
| $url = 'http://www.b*ngg**d.com/Wholesale-Mobile-Phones-c-140.html'; | |
| // load the url using curl | |
| $ch = curl_init(); |
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 | |
| /** | |
| * Hide first name & last name from user account (additional fields), on render it. | |
| * @param type $vars | |
| */ | |
| function mymodule_preprocess_field(&$vars) { | |
| if (in_array($vars['element']['#field_name'], array('field_first_name', 'field_last_name'))) { | |
| $vars['items'] = array(); //remove the value | |
| $vars['label_hidden'] = true; //hide the label |
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
| mysqldump -h[DB-HOST] -u[DB-USER] -p[DB-PASS] --add-drop-table --no-data [DB-NAME] | grep -e '^DROP \| FOREIGN_KEY_CHECKS' | mysql -h[DB-HOST] -u[DB-USER] -p[DB-PASS] [DB-NAME] |
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
| wget freevps.us/downloads/bench.sh -O - -o /dev/null|bash |
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
| copy /b *.txt newfile.txt |
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
| drush fe -y f_registration_views views_view:content_list --version-increment |
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
| #1. recreate the feature_module with additional fields/views/menu. Don't forget to increase the version number | |
| #2. Download the feature_module | |
| #3. Replace the feature_module with the new one. | |
| #4. Update the feature_module | |
| drush fu feature_module | |
| #5. Update module the feature_module | |
| drush updb -y | |
| #6. done. |
OlderNewer