idea and initial content from http://jamandcheese-on-phptoast.com/2011/12/18/symfony2-console-cheat-sheet/
Structure
php app/console generate:bundle --namespace=[namespace]/[bundle name]Bundle --format=[bundle configuration format]
idea and initial content from http://jamandcheese-on-phptoast.com/2011/12/18/symfony2-console-cheat-sheet/
Structure
php app/console generate:bundle --namespace=[namespace]/[bundle name]Bundle --format=[bundle configuration format]
/* | |
Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013 | |
*/ | |
.select2-container { | |
margin: 0 0 1rem 0; | |
position: relative; | |
vertical-align: middle; | |
font-family: inherit; | |
-webkit-appearance: none !important; | |
font-size: 0.875rem; |
<?php | |
namespace Acme\Bundle\Command; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\HttpFoundation\RedirectResponse; |
Handlebars.js is a template framework for Javascript environments. It allows the construction of HTML elements using HTML and expressions wrapped in {{ }}
One of the conditional block helpers Handlebars offers is the {{#if}}
.
For example:
<div class="entry">
// Corona Ampel Berlin Widget | |
// | |
// Copyright (C) 2020 by map <mail@map.wtf> | |
// | |
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL | |
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER | |
// IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE |
(Assuming a Debian 8-like system)
Install prometheus-node-exporter
$ sudo apt update && sudo apt install prometheus-node-exporter
Configure prometheus-node-exporter
to expose metrics only to localhost
, not on to all networks. Modify file /etc/default/prometheus-node-exporter
:
# Set the command-line arguments to pass to the server.
I have managed to install this… and make it work. I implemented it for Facebook and Google, but you can extend it. My solution it is mostly as described in #116, with a bit of more code presented. The key aspects that lack in the #116 presentation (IMO) are:
oauth_user_provider
in the security.yml
with your custom created serviceHere are the steps:
routing.yml
I have added all the routes for both bundles.config.yml
mostly as it is presented in the HWIOAuthBundle.security.yml
mostly as it is presented in the HWIOAuthBundle (though my routes are using /login
pattern, not /connect
). Also, the oauth_user_provider
is set for my custom service.""" | |
Requeriments: | |
$ sudo pip install boto dnspython | |
Edit ~/.boto to use your AWS credentials | |
""" | |
import time | |
import sys |
<?php | |
declare(strict_types=1); | |
use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector; | |
use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector; | |
use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector; | |
use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector; | |
use Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector; | |
use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector; |