See the requirements: http://devdocs.magento.com/guides/m1x/system-requirements.html
-
For Windows Users: Install: https://www.cygwin.com/
-
Install n98-magerun: https://github.com/netz98/n98-magerun
<?php | |
/** | |
* @return void | |
* @param $var The variable passed | |
* @param string $label | |
* @param integer limit The limit for each | |
* @param string $path | |
*/ | |
public function log($var,$label=null,$limit =2,$path = null) | |
{ |
function zerofill(length,number){ | |
return new Array(length - number.toString().length + 1).join('0') + number; | |
} |
See the requirements: http://devdocs.magento.com/guides/m1x/system-requirements.html
For Windows Users: Install: https://www.cygwin.com/
Install n98-magerun: https://github.com/netz98/n98-magerun
#!/bin/bash | |
### | |
# | |
# Script to switch version of php on fly in development enviroment | |
# Inspired by https://www.tecmint.com/install-different-php-versions-in-ubuntu/ | |
# *REQUIRED sudo privileges | |
### | |
vd="PHP Version => " |
Select all and delete (actually move to buffer) | |
:%d | |
Select all and copy to buffer | |
:%y | |
Use p to paste the buffer. |
#!/bin/bash | |
#config | |
sites_available="/etc/apache2/sites-available/" | |
sites_enabled="/etc/apache2/sites-enabled/" | |
site_default="000-default.conf" | |
domain_default="localhost" | |
path_default="/var/www/html" | |
hosts="/etc/hosts" | |
local_ip="127.0.0.1" |
-- | |
-- Delete all fake data via mysql query | |
-- Sylius 1.0.4 | |
-- | |
-- Disable foreign key chek | |
SET FOREIGN_KEY_CHECKS=0; | |
-- Delete Orders | |
TRUNCATE `sylius_adjustment`; |
## Edit your profile | |
vim ~/.bashrc | |
## Add the follow code after last line | |
## git branch in prompt | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " |
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |