Skip to content

Instantly share code, notes, and snippets.

View pboethig's full-sized avatar

Peter Böthig pboethig

  • München
View GitHub Profile
{
"name":"testproject2/testproject2",
"type":"magento-module",
"license":"OSL-3.0",
"homepage":"http://blah.bla",
"description":"Makes it impossible for a customer to log in until the accou$
"authors":[
{
"name":"Vinai Kopp",
"email":"[email protected]"
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
composer install
#nano ~/bashrc
#add following code add the end of the file
fancyscript() {
php /path/to/your/php/script.php "$@"
}
export -f fancyscript
environment = dev
[dev]
filesystem.documentroot = /var/www/magento
sampledata.install = 1
debug = true
database.host = localhost
git clone https://github.com/pboethig/vagrant_puppet_magento
cd vagrant vagrant_puppet_magento
vagrant up
@pboethig
pboethig / mysql4-upgrade-0.0.31-0.0.32.php
Created March 3, 2016 10:34
register a widget in Widgetmanagement via sql installscript
<?php
$widgetParameters = array(
'width_attrib' => '250',
'height_attrib' => '200',
'group_key' => '1'
);
$instance = Mage::getModel('widget/widget_instance')->setData(array(
'type' => 'workflow/task_widget_news',
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
<applicationid translate="label">
<label>Unique Id of the application</label>
<frontend_type>yourCustomFormElement</frontend_type>
<sort_order>5</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>default value is the default encryptionkey from /app/etc/local.xml</comment>
</applicationid>
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName magento2.localhost