- /Users/myusername/drush
(I like to keep my apps together, so I put my drush directory in /Users/myusername/drush)
- get drush from here: GitHub repo
dependencies: | |
module: | |
- file | |
id: migrate_csv_articles_images | |
label: 'Migrate Images for the articles from the csv file' | |
migration_group: null | |
source: | |
constants: | |
source_base_path: '/Library/WebServer/Documents/drupal/modules/custom/migrate_csv/assets/pictures' | |
uri_file: 'public://images/pictures/' |
ID | Name | Password | First Name | Last Name | Roles | ||
---|---|---|---|---|---|---|---|
1 | Joe | [email protected] | joe123 | Joe | B | administrator | |
2 | rakesh | [email protected] | 123rakesh | Rakesh | James | authenticated,administrator | |
3 | jack | [email protected] | jack | Jack | David | editor | |
4 | DD | [email protected] | dd@123 | D | D | authenticated,administrator,editor |
id: migrate_csv_articles | |
label: 'Migrate articles from the csv file' | |
source: | |
plugin: csv | |
# Full path to the file. | |
path: 'modules/custom/migrate_csv/assets/csv/articles.csv' | |
delimiter: ',' | |
enclosure: '"' | |
header_row_count: 1 | |
keys: |
id: User_with_multiple_roles | |
class: null | |
field_plugin_method: null | |
cck_plugin_method: null | |
migration_tags: null | |
migration_group: null | |
label: 'User migration from CSV test' | |
source: | |
plugin: csv | |
path: /Users/rakeshjames/Sites/migrationdemo/csv/demouser_migrate_multipleRoles.csv |
ID | name | firstname | lastname | Status | roles | Password | ||
---|---|---|---|---|---|---|---|---|
1 | rakesh | [email protected] | Rakesh | James | 1 | administrator,migrationuser | rakesh@123 | |
2 | james | [email protected] | James | Rakesh | 1 | authenticated | james@123 | |
3 | dummy | [email protected] | Dummy | User | 1 | migrationuser,administrator | dummy@123 |
(I like to keep my apps together, so I put my drush directory in /Users/myusername/drush)
{"lastUpload":"2019-01-18T09:19:56.862Z","extensionVersion":"v3.2.4"} |
sudo apt-get install <pkg name>
install packagesudo apt-get remove <pkg name>
remove packageapt list | grep <txt to search>
search currently installed packagesxkill
kill an unresponsive window w. mousetouch
to create file, mkdir
to create dirrm
to delete file, rmdir
to delete dirA lot of my time is spent in Terminal and a majority of it is spent typing Git commands. I created a set of keyboard shortcuts with Bash aliases and functions to speed up my workflow and save me hundreds of keystrokes every day.
Git allows you to set aliases but they’re limited and only save you a few keystrokes (i.e. instead of git checkout
you can type git co
, but you still have to type git
). Since Bash is Terminal’s default command-line interpreter, you can also set Bash aliases to reduce your keystrokes even further.
Here’s my list of Git Bash aliases and functions. To use them as your own, just add them to the file you store your aliases/functions. (i.e. ~/.bash_profile
or ~/.bashrc
)