start new:
tmux
start new with session name:
tmux new -s myname
| import base64 | |
| import re | |
| from urllib.parse import urlparse | |
| import requests | |
| from M2Crypto import X509 | |
| _signing_cert_cache = {} | |
| _cert_url_re = re.compile( |
| find -L app/design/frontend -regex '.*\(shipping\|billing\|shipping_method\|payment\).phtml' -exec grep -L formkey {} \; \ | |
| | xargs sed -i 's/<\/form>/<?php echo $this->getBlockHtml("formkey") ?><\/form>/g' | |
| find -L skin/frontend -name 'opcheckout.js' -exec grep -L form_key {} \; \ | |
| | xargs sed -i 's/if (elements\[i\].name=='\''payment\[method\]'\'') {/if (elements[i].name=='\''payment[method]'\'' || elements[i].name == '\''form_key'\'') {/g' |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |