# Setting Title in Hyper
function title() { echo -e "\033]0;${1:?please specify a title}\007" ; }
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; |
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
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) |
- 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 🎉
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
# Add at the end of your ~/.bashrc file this content: | |
# Run Windows Programs (.exe) from WSL as Fallback without extension | |
eval "$(echo "orig_command_not_found_handle()"; declare -f command_not_found_handle | tail -n +2)" | |
command_not_found_handle() | |
{ | |
cmd=$1 | |
shift | |
args=( "$@" ) |
OlderNewer