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
# echo 'stopping all containers...\n ' | |
docker kill $(docker ps -q) | |
# echo 'removing all containers...\n ' | |
docker rm $(docker ps -a -q) | |
# echo 'removing all docker images...\n ' | |
docker rmi $(docker images -a -q) | |
# echo 'removing all docker volumes...\n ' |
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
# | |
# the following one liner creates a shell variable from every parameter in a | |
# the query string in the variable QUERY, of the form p1=v1&p2=v2,... and sets it to | |
# the corresponding value so that parameters can be accessed by its name $p1, $p2, ... | |
# | |
for p in ${QUERY//&/ };do kvp=( ${p/=/ } ); k=${kvp[0]};v=${kvp[1]};eval $k=$v;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
<?php | |
use Doctrine\ORM\Mapping as ORM; | |
use Doctrine\Common\Collections\ArrayCollection; | |
/** | |
* @ORM\Entity() | |
* @ORM\Table(name="user") | |
*/ | |
class User |