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 | |
/* | |
* This class handles authentication for the Laravel 4.2 framework | |
*/ | |
class MOXMAN_LaravelAuthenticator_Plugin implements MOXMAN_Auth_IAuthenticator { | |
public function authenticate(MOXMAN_Auth_User $user) { | |
require __DIR__.'/../../../../../bootstrap/autoload.php'; |
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
--- | |
- name: Include OS-specific variables. | |
include_vars: "{{ ansible_os_family }}.yml" | |
- name: Ensure packages are installed (Debian Family). | |
sudo: true | |
apt: > | |
name={{ item }} | |
state=installed | |
with_items: __required_packages |
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
apt-get update && apt-get -y upgrade | |
cd ~ | |
if [ ! -f node-v0.10.32.tar.gz ]; then | |
wget http://nodejs.org/dist/v0.10.32/node-v0.10.32.tar.gz | |
tar -xvzf node-v0.10.32.tar.gz | |
cd node-v0.10.32 | |
./configure && make && make install | |
fi |
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
#install esseintal packages for opencv | |
sudo apt-get install -y build-essential cmake pkg-config libgtk2.0-dev libgtk2.0 zlib1g-dev libpng-dev libjpeg-dev libtiff-dev libjasper-dev libavcodec-dev swig | |
#install xserver and x11 util for remote X environment usage (optional) | |
# xserver-xorg-core xserver-xorg x11-xserver-utils | |
#download opencv and decompress it | |
## please use wget to download it on sourceforge | |
cd ~ | |
wget http://softlayer-ams.dl.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.9/opencv-2.4.9.zip |