setfacl -R -b
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
/** | |
* Returns true if specified object has no properties, | |
* false otherwise. | |
* | |
* @param {object} object | |
* @returns {boolean} | |
*/ | |
function isObjectEmpty(object) | |
{ | |
if ('object' !== typeof object) { |
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
CREATE USER 'blog'@'localhost' IDENTIFIED BY 'password'; | |
# SHOW CHARACTER SET; | |
CREATE DATABASE blog CHARACTER SET utf8; | |
GRANT ALL PRIVILEGES ON blog.* TO 'blog'@'localhost'; | |
FLUSH PRIVILEGES; |
http://serverfault.com/q/610322/227777
tasks:
- stat: path=/etc/somefile.conf
register: st
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
{ | |
"success": true, | |
"data": [ | |
{ | |
"id": 1, | |
"title": "Foo" | |
}, | |
{ | |
"id": 2, | |
"title": "Bar" |
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 | |
namespace App\Security; | |
use Symfony\Component\HttpFoundation\RedirectResponse; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpFoundation\Session\SessionInterface; | |
use Symfony\Component\HttpKernel\Event\GetResponseEvent; | |
use Symfony\Component\Routing\RouterInterface; | |
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; |
The provided example will allow you to do sequential requests to the server in Angular.js.
It will iterate all the items and call server for each item, however, if one request will fail, all sequential requests will be aborted.
If you need to call all requests no matter what, just replace promise.then()
with promise.finally()
.
Cheers!
- Supports all embed parameters, API methods and events
- Requires Froogaloop
OlderNewer