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.
This is an adaptation of https://kobusvs.co.za/blog/power-profile-switching/
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.
This is an adaptation of https://kobusvs.co.za/blog/power-profile-switching/
gcf 1111 create-user-managment
This will create a new branch feature/PRJ-1111/create-user-managment
| #!/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.
| 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. |
| <?php | |
| namespace PHPUnitE2EExtension\Annotation; | |
| /** | |
| * @Annotation | |
| * @Target("Class") | |
| */ | |
| final class E2E | |
| { |
| <?php | |
| declare(strict_types=1); | |
| namespace App; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Twig\Environment; | |
| use League\OAuth2\Client\Provider\Google as GoogleProvider; |
| #!/bin/bash | |
| select branch in $(git branch --sort=-committerdate | head -n6 | grep -v "*") | |
| do | |
| git checkout $branch | |
| exit | |
| done |
| #./.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 |
| public function equals($CLASS$ $other): bool | |
| { | |
| return $END$; | |
| } |