Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am akorolyov on github.
* I am begemot (https://keybase.io/begemot) on keybase.
* I have a public key ASBVKXzrxbK8KI0HhfZIAiDshMwJqw2K1rt84E4c1jVtego
To claim this, I am signing this object:
@akorolyov
akorolyov / TestDataGrid.txt
Last active November 11, 2016 11:37
MavenEcommerce - test task
Task: DataGrid
Goal: implement datagrid functionality
Preconditions:
0. PHP only
1. Any framework can be used with database adapter/library
2. Any template engine can be used
3. Any javascript library/framework can be used

Keybase proof

I hereby claim:

  • I am akorolyov on github.
  • I am akorolyov (https://keybase.io/akorolyov) on keybase.
  • I have a public key ASBCgHy7Yao_iHZVw6Zk53C1Kq86AVmEoxxRaYxxoVb09wo

To claim this, I am signing this object:

@akorolyov
akorolyov / gist:6387201
Last active December 22, 2015 00:09
Based on this gist : https://gist.github.com/Marko-M/6382176 Add alias to your .bash_profile and use it as magento_dump [ssh_login@host] [db_username] [database_name]
ssh_magento_dump() {
ssh -C $1 "mysqldump --ignore-table=$3.log_customer --ignore-table=$3.log_quote --ignore=$3.log_summary --ignore=$3.log_summary_type --ignore=$3.log_url --ignore=$3.log_url_info --ignore=$3.log_visitor --ignore=$3.log_visitor_info --ignore=$3.log_visitor_online --ignore=$3.log_summary --ignore=$3.enterprise_logging_event --ignore=$3.enterprise_logging_event_changes -u $2 -p –-routines --opt --compress $3 | gzip -9 -c" > $3-$(date +%Y-%m-%d).sql.gz
}
alias magento_dump=ssh_magento_dump