This is a tried and tested method for upgrading Fedora to a newer version within WSL.
Replace 43 and 44 with your current version and the target version respectively.
| <?php | |
| // ------------------------------------------------------------------------------------- | |
| // Add your JSON in the $input to generate Swagger-PHP annotation | |
| // Inspired by: https://github.com/Roger13/SwagDefGen | |
| // HOWTO: | |
| // php -S localhost:8888 -t . | |
| // http://localhost:8888/swagit.php | |
| // ------------------------------------------------------------------------------------- |
How to setup a development environment where Git from WSL integrates with native Windows applications, using the Windows home folder as the WSL home and using Git from WSL for all tools.
Note if using Git for Windows, or any tool on the Windows side that does not use Git from WSL then there will likely be problems with file permissions if using those files from inside WSL.
These are the tools I use:
wslgit)If you are like me you find yourself cloning a repo, making some proposed changes and then deciding to later contributing back using the GitHub Flow convention. Below is a set of instructions I've developed for myself on how to deal with this scenario and an explanation of why it matters based on jagregory's gist.
To follow GitHub flow you should really have created a fork initially as a public representation of the forked repository and the clone that instead. My understanding is that the typical setup would have your local repository pointing to your fork as origin and the original forked repository as upstream so that you can use these keywords in other git commands.
Clone some repo (you've probably already done this step)
git clone [email protected]Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm