Skip to content

Instantly share code, notes, and snippets.

View gigabites19's full-sized avatar

Giga gigabites19

  • Georgia, Tbilisi
  • 13:17 (UTC +04:00)
View GitHub Profile
<?php
declare(strict_types=1);
namespace App\Security\Authenticator;
use App\Exception\UserAuthenticationException;
use App\Repository\CustomerRepository;
use Psr\Log\LoggerInterface;
use Sylius\Component\User\Model\UserInterface as SyliusUserInterface;
@carstenwindler
carstenwindler / xdebug.sh
Last active May 21, 2024 13:44
Bash script to quickly enable / disable xdebug in a PHP docker container
#!/usr/bin/env bash
# see https://carstenwindler.de/php/enable-xdebug-on-demand-in-your-local-docker-environment/
if [ "$#" -ne 1 ]; then
SCRIPT_PATH=`basename "$0"`
echo "Usage: $SCRIPT_PATH enable|disable"
exit 1;
fi
# Expects service to be called app in docker-compose.yml
@ishan1608
ishan1608 / heater.py
Last active May 2, 2024 16:28
A python script to heat your computer so that your fingers can work upon your laptop in winter.
"""Heater
A program that spawns as much number of processes as there are CPUs on the computer.
This keeps the core temprature high.
I made this so that my fingers feel more comfortable while working on my laptop during winter.
Caution : An eye should be kept on the CPU temprature so that when it is getting too hot,
the prgoram needs to be killed; else it can damage the CPU.
Author : Ishan
Email : ishanatmuzaffarpur@gmail.com
"""