Yes, this beautiful thing:
Home Assistant introduces the Energy Dashboard here.
Yes, this beautiful thing:
Home Assistant introduces the Energy Dashboard here.
{ | |
"config": { | |
"preferred-install": { | |
"sulu/*": "source", | |
"handcraftedinthealps/*": "source", | |
"massive/*": "source" | |
} | |
} | |
} |
<?php | |
namespace AppBundle\Form; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\Extension\Core\Type\PasswordType; | |
use Symfony\Component\Form\Extension\Core\Type\RepeatedType; | |
use Symfony\Component\Form\Extension\Core\Type\SubmitType; | |
use Symfony\Component\Form\FormBuilderInterface; |
<?php | |
namespace AppBundle\DependencyInjection; | |
use Symfony\Component\Config\FileLocator; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; | |
use Symfony\Component\DependencyInjection\Loader; | |
use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
<?php | |
namespace AppBundle\Doctrine; | |
use AppBundle\Entity\Organisation; | |
use Doctrine\DBAL\Connection; | |
use Acme\Common\DatabaseNameResolver; | |
class DataConnectionWrapper extends Connection | |
{ | |
/** |
docker network create --subnet 173.18.0.0/16 ranchernet
docker run -d --restart=always --net ranchernet --ip=173.18.0.2 -p 8080:8080 rancher/server
docker run -e CATTLE_AGENT_IP="173.18.0.3" --net ranchernet --ip 173.18.0.3 -d --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.0.2 http://173.18.0.2:8080/v1/scripts/
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
master: | |
image: rancher/server | |
container_name: master | |
volumes_from: | |
- mysql | |
ports: | |
- "8080:8080" | |
links: | |
- mysql | |
environment: |
<?php | |
class DisconnectedMetadataFactory | |
{ | |
//... | |
/** | |
* Get a base path for a class | |
* | |
* @param string $name class name | |
* @param string $namespace class namespace |
The API we are creating in this gist will follow these rules :
password
Grant Type only (no need for Authorization pages and such).v1.api.example.com
)The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :