Skip to content

Instantly share code, notes, and snippets.

View mschultheiss83's full-sized avatar

Martin Schultheiß mschultheiss83

View GitHub Profile
https://help.github.com/articles/ignoring-files
https://github.com/github/gitignore
@mschultheiss83
mschultheiss83 / .htaccess
Last active August 29, 2015 14:04
.htaccess-Einstellungen, die die Geschwindigkeit steigern
############################################
## References
## https://www.df.eu/forum/threads/66808-Kontrolle-von-htaccess-Datei-Google-Page-Speed
## https://developer.yahoo.com/performance/rules.html
############################################
## http://www.ikonoshirt.de/stuff/12-11-21%20OWASP%20und%20Magento.pdf
## Cookies secure-flag: 1
############################################
rem author: [email protected] / @Macrotea / macrotea.cn
@echo off
:: get user input content
set /p repoType=is it git@oschina repository? (y or n) :
set /p repoName=input your repository name :
:: set /p projectTypeNumber=input your project type number (1:java 2:web 3:nodejs) :
# Installing Chrome
curl -L -O "https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg"
hdiutil mount -nobrowse googlechrome.dmg
cp -R "/Volumes/Google Chrome/Google Chrome.app" /Applications
hdiutil unmount "/Volumes/Google Chrome"
rm googlechrome.dmg
# Installing Firefox
curl -L -o Firefox.dmg "http://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US"
hdiutil mount -nobrowse Firefox.dmg
<?php
/**
* @author mschultheiss83
* https://github.com/mschultheiss83
*/
/**
* @param array $arrData
* @param bool $bIncludeHeader
* @return string
{
name: 'greenwellness/wellnessbon'
description: 'Definitie voor Green Wellness Wellnessbon.'
license: 'proprietary'
'minimum-stability': 'dev'
config:
<?php if ( Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getEnableQtyIncrements() ){ ?>
<select class="input-text qty" name="qty" id="qty">
<?php $i = (Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getMinSaleQty()?Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getMinSaleQty():1); ?>
<?php do { ?>
<option value="<?php echo $i?>">
<?php echo $i?>
<?php $i+= Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQtyIncrements() ?>
</option>
<?php } while ($i <= (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getMaxSaleQty()) ?>
</select>
<?php
/**
* Created by tripuls.
* User: m.schultheiss
* Date: 08.05.14
* Time: 16:56
*/
$id = 1; // get Customer Id
<?php
/*
Author: Tegan Snyder <[email protected]>
Example of running a Dataflow profile via command line
you can change the profile_id to the one you want to
run and issue:
time php manual-dataflow-profile.php
note you may need to increase the memory_limit in php cli's php_cli.ini
RHEL linux copy /etc/php.ini to /etc/php_cli.ini and make changes there then restart Apache.