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
$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 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
# 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 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
# 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 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 diff --name-only --diff-filter=D 0fd1ca6..master |
NewerOlder