- Create file
git-wsl.bat
(contect can be found below) - Go to JetBrains IDE (InteliJ, PyCharm, PHPStorm, ...)
- Go to File -> Settings -> Vesion Control -> GIT
- Set path to the
git-wsl.bat
file (created in a step above) - Click
Test
to check the functionality - Done 🎉
Helm 3 is storing description of it's releases in secrets. You can simply find them via
$ kubectl get secrets
NAME TYPE DATA AGE
sh.helm.release.v1.wordpress.v1 helm.sh/release.v1 1 1h
If you want to get more info about the secret, you can try to describe the secret
$ kubectl describe secret sh.helm.release.v1.wordpress.v1
GPG agent sometimes stuck when you put your PC to sleep mode or when you unplug and plug your YubiKey back. This Solution will restart the GPG agent with every connection of YubiKey.
- Create a "yubi-reset.bat" file on your disk and put there this content:
gpg-connect-agent killagent /bye
gpg-connect-agent /bye
- Open Event Viewer
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 MyApp\Infrastructure\Handler; | |
use JMS\Serializer\Handler\SubscribingHandlerInterface; | |
use JMS\Serializer\GraphNavigator; | |
use JMS\Serializer\JsonSerializationVisitor; | |
use JMS\Serializer\Context; |
docker-machine
Doesn't work properly inside of WSL, this function makes it work.
Add this to ~/.bashrc:
function docker-machine()
{
if [ $1 == "env" ]; then
docker-machine.exe $1 $2 --shell bash | sed 's/C:/\/c/' | sed 's/\\/\//g' | sed 's/"//g'
else
docker-machine.exe "$@"
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
# Stop all containers | |
docker stop $(docker ps -a -q) | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) | |
# Delete all volumes | |
docker volume rm $(docker volume -q) |
NewerOlder