Skip to content

Instantly share code, notes, and snippets.

<?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';
@mvdpoel
mvdpoel / main.yml
Created October 18, 2014 10:41
ansible_megatools_role
---
- 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
@mvdpoel
mvdpoel / setup_ds_hackaton_packages.sh
Last active August 29, 2015 14:07
setup_ds_hackaton
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
#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