This file contains 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
Note: ESC just in case you are in INSERT Mode | |
Necessities | |
----------- | |
Save | |
:w | |
Quit | |
:q |
This file contains 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
mysql -u vivek -p -h localhost blog < data.sql |
This file contains 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
rsync -avzr localfile user@localhost:/path/to/remote/ |
This file contains 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
rsync -a -v /local/www/shared/files/international.uiowa.edu/files lamp08.its.uiowa.edu::FILES/international.uiowa.edu |
This file contains 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 | |
$stdout = fopen('php://stdout', 'w'); | |
fwrite($stdout, "Script Template\n"); | |
// Site specific variables | |
$username = "Dale"; | |
$drupal_base_url = parse_url('http://www.example.com'); | |
require_once 'includes/bootstrap.inc'; |
This file contains 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 | |
$node = node_load($entity->nid); | |
$node->path['pathauto'] = TRUE; | |
node_save($node); |
This file contains 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 vset file_public_path files/example.com/files |
This file contains 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 user-create adminuser --mail="[email protected]" --password="UserPw"; drush user-add-role "administrator" adminuser |
This file contains 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 | |
/** | |
* Search and replace using Views Bulk Operations | |
*/ | |
$node = node_load($entity->nid); //load node form entity supplied by VBO | |
$haystack = $node->body['und'][0]['value']; //set node body to be haystack | |
$search = "Office of International Students and Scholars"; //Set the string to search for | |
$replace = "International Student & Scholar Services"; //String to replace target |