This file contains 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 diff --name-only --diff-filter=D 0fd1ca6..master |
This file contains 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
# 1. When the Run new task dialog box opens, type 'powershell', tick the box for Create this task with administrative privileges and click OK. | |
sfc /scannow | |
# 1.1 'Windows Resource Protection found corrupt files but was unable to fix some (or all) of them' indicates a problem. | |
DISM /Online /Cleanup-Image /RestoreHealth | |
# 2nd possible fix if previous did not help. Run follow command in powershell | |
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} | |
# DO NOT FORGET TO RESTART PC |
This file contains 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
# add git branch name and mark if it has unstaged changes | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
evil_git_dirty() { | |
git_status="$(git status 2> /dev/null)" | |
untracked_pattern="Untracked files:" | |
not_staged_pattern="Changes not staged for commit" | |
branch_ahead="Your branch is ahead of" |
This file contains 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
$writer = new \Zend\Log\Writer\Stream(BP . '/var/log/test.log'); | |
$logger = new \Zend\Log\Logger(); | |
$logger->addWriter($writer); | |
$logger->info('Your text message'); |
This file contains 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
grep --include=\*.php -rnw 'app/code/' -e "echo " |
This file contains 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 reset --soft HEAD^ # use --soft if you want to keep your changes | |
git reset --hard HEAD^ # use --hard if you don't care about keeping the changes you made |
This file contains 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
$layout = $this->getLayout(); | |
$layout->getNode()->asXML(); |
This file contains 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
{ | |
"extends": [ | |
"./.eslintrc-reset", | |
"./.eslintrc-magento" | |
] | |
} |
This file contains 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
# connect to SSH | |
ssh -o IdentitiesOnly=yes username@hostname -p NN | |
# transfer file via terminal | |
scp -i ~/.ssh/key_file -P NN -o IdentitiesOnly=yes /home/user/file username@hostname:/home/target/dir |
OlderNewer