This laptop overheats a lot, which makes it turn off a lot. As soon as I connect it to the charger, and it's in balanced power mode, the CPU temp goes over 100.
gcf 1111 create-user-managment
This will create a new branch feature/PRJ-1111/create-user-managment
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
#!/bin/bash | |
top_level_path="$(git rev-parse --show-toplevel)"; | |
while read file_name; do | |
if grep -q "// warn-before-commit" "$top_level_path/$file_name"; then | |
git reset $file_name; | |
echo "File $file_name, was not commited because 'warn-before-commit' string was found." | |
fi | |
done < <(git diff --cached --name-only --diff-filter=ACM) |
gct 1111 create-user-managment
This will create a new branch ticket/PROJECT-1111-create-user-managment
.
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
Rule #1: if you can’t think of a use-case for extending, make the class final. At the same time, make everything private instead of protected. | |
Rule #2: if your class is final, all public methods must be part of an interface that people can mock | |
Rule #3: prefer small, targeted interfaces instead of a compound interface | |
Rule #4: listen to your users, hear their concerns, work with them to avoid opening a final class | |
Rule #5: if a user has a legitimate use-case for extending a final class (as opposed to wrapping it), open it up and make necessary methods protected. Keep fields private. |
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
<?php | |
namespace PHPUnitE2EExtension\Annotation; | |
/** | |
* @Annotation | |
* @Target("Class") | |
*/ | |
final class E2E | |
{ |
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
<?php | |
declare(strict_types=1); | |
namespace App; | |
use Symfony\Component\HttpFoundation\Response; | |
use Twig\Environment; | |
use League\OAuth2\Client\Provider\Google as GoogleProvider; |
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
#!/bin/bash | |
select branch in $(git branch --sort=-committerdate | head -n6 | grep -v "*") | |
do | |
git checkout $branch | |
exit | |
done |
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/hooks/prepare-commit-msg | |
COMMIT_PREFIX=$(git symbolic-ref --short HEAD | grep -Po 'PROJECT-([0-9]+)'); | |
HAS_TICKET_NUMBER=$(grep -Po 'PROJECT-([0-9]+)' $1); | |
if [ -n "$HAS_TICKET_NUMBER" ]; then | |
return; | |
fi | |
if [ -n "$COMMIT_PREFIX" ]; then |
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
public function equals($CLASS$ $other): bool | |
{ | |
return $END$; | |
} |
NewerOlder