I hereby claim:
- I am jiglesiasabio on github.
- I am jiglesia (https://keybase.io/jiglesia) on keybase.
- I have a public key whose fingerprint is 4D29 613D 3353 39D8 B15A 1785 08EF 6398 098C 1361
To claim this, I am signing this object:
| # From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html | |
| git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" |
| {% set currentPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %} |
I hereby claim:
To claim this, I am signing this object:
| [alias] | |
| fix-staged = "!git diff-index --cached --name-status HEAD | grep -ve '^D' | cut -f2 | xargs -n1 php-cs-fixer fix" |
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.| static function generalNewsletterManagement() | |
| { | |
| user::needToBeLogged(); | |
| user::needToBeLevel(get_class()); | |
| @require_once 'classes/CConfig.php'; | |
| $link = CConfig::Conectar('media_new'); |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
| </head> | |
| <body> | |
| <div id="animals" data-animals='["cat", "dog", "bird"]'></div> | |
| <div id="vehicles" data-vehicles='{"motorcycle":"Harley", "car":"Herbie", "steamshovel":"Mike"}'></div> |
| cd ~ | |
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jre-headless -y | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
| # NEW WAY / EASY WAY | |
| wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb | |
| sudo dpkg -i elasticsearch-1.0.1.deb |
| cadena => áéíóú ñ aeiou qwerty | |
| strtoupper => áéíóú ñ AEIOU QWERTY | |
| mb_convert_case => ÁÉÍÓÚ Ñ AEIOU QWERTY |
| cd ~ | |
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jre-headless -y | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
| # NEW WAY / EASY WAY | |
| wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.9.deb | |
| sudo dpkg -i elasticsearch-0.90.9.deb |