Sample: Category and Product
// src/Acme/StoreBundle/Entity/Category.php
// ...
/** | |
* There is a write-up of how to get this code to run. https://elifk.us/en/retrieving-your-strava-data-with-google-app-scripts/ | |
*/ | |
var CLIENT_ID = '<ClientId for the Strava App>'; | |
var CLIENT_SECRET = '<Client Secret for the Strava App>'; | |
var SPREADSHEET_NAME = "StravaData"; | |
var SPREADSHEET_ID = "<Spreadsheet id for the Google Spreadsheet>"; | |
var SHEET_NAME = "Sheet1"; | |
var DEBUG = false; |
Based on your issues in installing ncdu my recommendation would be to use du and sort on together. | |
For instance: | |
du /home | sort -rn (will search all files/directories under /home and sort them by largest to smallest. | |
du -h /home | sort -rh (same but will show it in MB/KB/etc) - Note this requires coreutils 7.5 or newer (sort --version to check) | |
You can replace /home with any directory of your choice. |
## Install Java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
## Install elasticsearch
As William Durand was recently explaining in his SOS, he "didn't see any other interesting blog post about REST with Symfony recently unfortunately". After spending some long hours to implement an API strongly secured with oAuth, I thought it was time for me to purpose my simple explanation of how to do it.
You might have already seen some good explanation of how to easily create a REST API with Symfony2. There are famous really good bundles a.k.a. :
/** | |
* This casper unit test script checks for 404 internal links for a given root url. | |
* | |
* Adapted from: https://gist.github.com/n1k0/4509789 | |
* Usage: | |
* | |
* $ casperjs test 404checker.js --includes=URI.js | |
*/ | |
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.# Description: | |
# Carlton Celebration | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# None | |
# | |
# Commands: |