This file contains hidden or 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 bin/magento deploy:mode:set developer | |
php bin/magento setup:di:compile | |
setup:static-content:deploy | |
php bin/magento setup:static-content:deploy pt_BR -f | |
Servidor: | |
sed -E 's/DEFINER=`[^`]+`@`[^`]+`/DEFINER=CURRENT_USER/g' nameOfYourDump.sql > nameOfYourDumpClean.sql |
This file contains hidden or 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
### CUSTOM ALIAS GIT | |
alias res='reset' | |
alias gis='git status' | |
### CUSTOM ALIAS DOCKER | |
alias docker-super-clean='docker stop $(docker ps -a -q);docker system prune --all --force --volumes' | |
alias docker-stop-containers='docker stop $(docker ps -a -q)' | |
alias docker-magento-start='cd /home/mateus_k13/web/k13/docker/magento-mult && docker compose up -d' | |
alias docker-magento-stop='cd /home/mateus_k13/web/k13/docker/magento-mult && docker compose stop' |
This file contains hidden or 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
git update-index --assume-unchanged <filename> | |
ou | |
git rm -r --cached <filename> |
This file contains hidden or 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
$ git init | |
$ git remote add origin git@bitbucket.org:user/repositorio.git | |
$ git checkout -b master | |
$ git branch | |
$ git branch --set-upstream-to origin/master | |
$ git branch -f --track master origin/master | |
$ git fetch --all | |
$ git reset --hard origin/master |
This file contains hidden or 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
<!--app/design/adminhtml/default/default/template/forgotpassword.phtm --> | |
<button class="forgot-password" type="submit"><span><span><span><?php echo Mage::helper('adminhtml')->__('Retrieve Password'); ?></span></span></span></button> |
This file contains hidden or 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
<head> | |
<style> | |
/* The Modal (background) */ | |
.modal { | |
display: none; /* Hidden by default */ | |
position: fixed; /* Stay in place */ | |
z-index: 100; /* Sit on top */ | |
padding-top: 100px; /* Location of the box */ | |
left: 0; | |
top: 0; |
This file contains hidden or 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
// Url Amigavel - metodo str_slug () | |
protected static function boot() | |
{ | |
parent::boot(); | |
static::creating(function($noticia){ | |
$noticia->url_titulo = str_slug($noticia->titulo,"-"); | |
}); | |
} |
This file contains hidden or 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
<script> | |
$(document).ready(function(){ | |
$('#add_attribute').click(function(){ | |
var i=1; | |
i++; | |
$('#dynamic_field').append( | |
'<tr id="row'+i+'">' + | |
'<td><input type="text" name="attributes_chave[]" placeholder="Atributo"/></td>' + |