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/
| #!/bin/bash | |
| select branch in $(git branch --sort=-committerdate | head -n6 | grep -v "*") | |
| do | |
| git checkout $branch | |
| exit | |
| done |
| <?php | |
| namespace AppBundle\Entity; | |
| /** | |
| * @package AppBundle\Entity | |
| * @ORM\Entity() | |
| * @ORM\Table() | |
| * @ORM\Cache(usage="NONSTRICT_READ_WRITE") | |
| */ |
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/
| <?php | |
| namespace YourBundle\Provider; | |
| use Sonata\MediaBundle\Provider\FileProvider; | |
| class ImageProvider extends FileProvider | |
| { | |
| } |
| <?php | |
| declare(strict_types=1); | |
| namespace App; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Twig\Environment; | |
| use League\OAuth2\Client\Provider\Google as GoogleProvider; |
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: markokunic | |
| * Date: 4/21/17 | |
| * Time: 3:41 PM | |
| */ | |
| namespace AppBundle\Exporter; |
| #!/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.
| <?php | |
| namespace YourBundle\Command; | |
| use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
| use Symfony\Component\Console\Input\InputInterface; | |
| use Symfony\Component\Console\Output\OutputInterface; | |
| use Application\Sonata\MediaBundle\Entity\Media; | |
| use Application\Sonata\MediaBundle\Entity\Gallery; | |
| use Application\Sonata\MediaBundle\Entity\GalleryHasMedia; |
| <?php | |
| namespace YourBundle\EventListener; | |
| use Symfony\Component\HttpFoundation\RedirectResponse; | |
| use Symfony\Component\Routing\RouterInterface; | |
| use Symfony\Component\HttpKernel\Event\GetResponseEvent; | |
| use Symfony\Component\HttpKernel\KernelEvents; | |
| use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
| use Symfony\Component\Routing\Matcher\UrlMatcher; | |
| use Symfony\Component\Routing\RequestContext; |