Skip to content

Instantly share code, notes, and snippets.

View dni's full-sized avatar

dni ⚡ dni

View GitHub Profile
@mladenilic
mladenilic / magento-customer-attribute.php
Last active August 24, 2017 14:13 — forked from anonymous/gist:fffc310cffb3a1041c23
Magento - Add customer attribute
<?php
/* @var Mage_Customer_Model_Resource_Setup $this */
$this->addAttribute('customer', 'customer_number', array(
'type' => 'int',
'input' => 'text',
'label' => 'Customer Number',
'visible' => true,
'required' => false,
'is_system' => false,
@jrenggli
jrenggli / AdditionalConfiguration.php
Created December 16, 2015 21:26
pageNotFound_handling for restricted pages in TYPO3
$GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFound_handling'] = 'USER_FUNCTION:EXT:usermytemplate/Classes/Utility/PageNotFoundHandling.php:user_pageNotFound->pageNotFound';
// Custom configuration for multi-language 404 page, see EXT:usermytemplate/Classes/Utility/PageNotFoundHandling.php
// ID of the page to redirect to if page was not found
$GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFound_handling_redirectPageID'] = 123;
// ID of the page to redirect to if current page is access protected
$GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFound_handling_loginPageID'] = 789;

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: