- Download getcomposer.org/composer.phar to your account's home directory —
/home/username. - Edit
.bashrcfile in same directory by addingalias composer='/usr/local/php56/bin/php-cli ~/composer.phar'line. Updatephp56part to current relevant version, if necessary. - Restart SSH session or run
source ~/.bashrcto reload config. - Use
composercommand!
This file contains hidden or 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 | |
| /* | |
| * dl-file.php | |
| * | |
| * Protect uploaded files with login. | |
| * | |
| * @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in | |
| * | |
| * @author hakre <http://hakre.wordpress.com/> | |
| * @license GPL-3.0+ |
This file contains hidden or 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
| var gulp = require('gulp'), | |
| sass = require('gulp-sass'), | |
| browserify = require('gulp-browserify'), | |
| concat = require('gulp-concat'), | |
| embedlr = require('gulp-embedlr'), | |
| refresh = require('gulp-livereload'), | |
| lrserver = require('tiny-lr')(), | |
| express = require('express'), | |
| livereload = require('connect-livereload') | |
| livereloadport = 35729, |
This file contains hidden or 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 Controllers; | |
| use OAuth\Common\Service\AbstractService; | |
| use OAuth\Common\Storage\Session as OAuthSession; | |
| class AuthController extends ControllerBase { | |
| // everytime we enter the controller, then we check for login, if yes, then we dont have to access here (except logout) |
This file contains hidden or 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 | |
| /** | |
| * Application driver class to initialize Phalcon and | |
| * other resources. | |
| */ | |
| class Application extends \Phalcon\Mvc\Application | |
| { | |
| private static $mode = 'development'; // TODO change default to production | |
| private static $modules = array( | |
| 'portal' => array( |