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 | |
/* | |
replace show_in_price_search_engine with your attr code | |
replace General with antoher Tab | |
*/ | |
$dir = dirname(__FILE__); | |
chdir($dir); |
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
#!/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` |
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
# 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 [email protected]:/home/bauchemie24/htdocs/ /home/leon/htdocs/bauchemie24/ | |
# Uncompress |
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
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 |
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
Country 2 Digit Code 3 Digit Code | |
Afghanistan AF AFG | |
Albania AL ALB | |
Algeria DZ DZA | |
American Samoa AS ASM | |
Andorra AD AND | |
Angola AO AGO | |
Anguilla AI AIA | |
Antarctica AQ ATA | |
Antigua and Barbuda AG ATG |
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
*/5 * * * * php /home/bender/htdocs/cron.php -malways 1 > /dev/null | |
*/5 * * * * php /home/bender/htdocs/cron.php -mdefault 1 > /dev/null | |
* * * * * ! test -e /home/bender/htdocs_dev/www/maintenance.flag && /bin/bash /home/bender/htdocs_dev/www/scheduler_cron.sh --mode always | |
* * * * * ! test -e /home/bender/htdocs_dev/www/maintenance.flag && /bin/bash /home/bender/htdocs_dev/www/scheduler_cron.sh --mode default |
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
[globalVar = GP:tx_news_pi1|news > 0] | |
temp.newsTitle = RECORDS | |
temp.newsTitle { | |
source = {GP:tx_news_pi1|news} | |
source.insertData = 1 | |
tables = tx_news_domain_model_news | |
select.languageField = sys_language_uid | |
conf { | |
tx_news_domain_model_news > | |
tx_news_domain_model_news = TEXT |
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
1. Im Root-Verzeichnis (/home/root) folgendes ausführen: | |
git clone https://github.com/letsencrypt/letsencrypt.git | |
cd letsencrypt | |
./letsencrypt-auto -h | |
service nginx stop | |
./letsencrypt-auto certonly --standalone -d www.beispiel.de -d beispiel.de | |
service nginx start | |
2. Keys werden hier abgelegt: | |
/etc/letsencrypt/live/www.beispiel.de |
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 | |
$dir = dirname(__FILE__); | |
chdir($dir); | |
require $dir.'/app/Mage.php'; | |
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
$configSections = Mage::getSingleton('adminhtml/config')->getSections(); | |
// look for node entries in all system.xml that use source_model=adminhtml/system_config_source_email_template | |
// they are will be templates, what we try find |
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
/* | |
Bericht für den heutigen Tag exportieren. | |
Porjekt öffnen, in den Tab "Tickets" wechseln, Datum in Code Ändern und in der Konsole abfeuern... | |
*/ | |
var today = 0; | |
var all = ''; | |
jQuery('.issuecalendar').each(function(e) { | |
if (typeof jQuery(this).attr('data-date') == 'undefined') return; | |
var date = new Date(parseInt(jQuery(this).attr('data-date')) * 1000); | |
var day = date.toISOString().split('T')[0].split('-')[2]; |
OlderNewer