[ $[ $RANDOM % 6 ] = 0 ] && echo "You're dead." || echo "Click"
This file contains hidden or 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
#!/bin/bash | |
if [[ -n ${bamboo_pull_num} ]]; then | |
echo 'stoping bamboo' | |
curl "http://${bamboo_BAMBOO_USER}:${bamboo_BAMBOO_password}@your.bamboo.domain/build/admin/stopPlan.action?${bamboo.planResultKey}-${bamboo.buildNumber}" | |
fi |
This file contains hidden or 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 | |
namespace My\Awesome\Namespace; | |
use Symfony\Component\HttpFoundation\RedirectResponse; | |
use Symfony\Component\HttpKernel\Event\GetResponseEvent; | |
class HomeRedirect | |
{ | |
/** |
Let's assume that you're starting with a Dockerfile
- and the bravery to start.
Mac/Windows requires that Docker runs from a VM (:cry:), so the best approach is using Docker Toolbox.
- Install Docker Toolbox (download it, then click next till the end of the world);
docker-machine create --driver virtualbox AWESOME_VM
to create a new environment. You can name it the way you like 😉.