Skip to content

Instantly share code, notes, and snippets.

login url
<?php echo Mage::getUrl('customer/account/login'); ?>
logout url
<?php echo Mage::getUrl('customer/account/logout'); ?>
My Account url
<?php echo Mage::getUrl('customer/account'); ?>
Register url
@DevertNet
DevertNet / Linux_Backups.sh
Last active February 25, 2021 13:20
Linux / Backups
# Compress and Exclude!
tar -pczf MyBackup.tar.gz /home/user/public_html/ --exclude "/home/user/public_html/tmp"
tar -pczf backup_xxx.tar.gz ./public_html --exclude "./public_html/media" --exclude "./public_html/var/cache" --exclude "./public_html/var/log"
# RYSNC
Muss auf dem Zielsystem ausgeführt werden z.B. Lokal.
rsync --progress --exclude=var/cache --exclude=var/log --exclude=var/session --exclude=/media --exclude=/tmp -aze ssh bauchemie24@bauchemie24.web.mageprofis.de:/home/bauchemie24/htdocs/ /home/leon/htdocs/bauchemie24/
# Uncompress
#!/bin/bash
exec < /dev/tty
if [ ! -f ./system.txt ]; then
echo "File not found!"
read -p "Status of the system (local,dev or live)? [n]" -r
echo $REPLY > ./system.txt
fi
dumpname=`cat system.txt`
@DevertNet
DevertNet / test.attr.php
Created October 15, 2015 12:41
Magento Adding existing attribute to all attribute sets
<?php
/*
replace show_in_price_search_engine with your attr code
replace General with antoher Tab
*/
$dir = dirname(__FILE__);
chdir($dir);