Skip to content

Instantly share code, notes, and snippets.

View eseyden's full-sized avatar

Eric Seyden eseyden

View GitHub Profile
@eseyden
eseyden / AdUser.php
Created October 24, 2018 18:49
Laravel AD Auth
<?php
namespace App\Auth;
use adLDAP\collections\adLDAPUserCollection;
use Illuminate\Contracts\Auth\Authenticatable;
class AdUser implements Authenticatable
{
@eseyden
eseyden / Dockerfile
Created October 31, 2017 20:37
Laravel SQLSERV Dockerfile
FROM php:7-fpm
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-utils \
apt-transport-https \
debconf-utils \
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
&& curl https://packages.microsoft.com/config/debian/8/prod.list > /etc/apt/sources.list.d/mssql-release.list \
&& apt-get update \
#!/bin/bash
DIR=$HOME/.local/share/Steam/
echo "Removing libstd"
find $DIR -iname "libstd*" -exec rm -rf {} \;
echo "Removing libgcc"
find $DIR -iname "libgcc*" -exec rm -rf {} \;
echo "All Done"
@eseyden
eseyden / RemoteViewFinder.php
Last active August 29, 2015 14:16
Fetch Remote View Laravel
<?php namespace Acme\View;
use Illuminate\View\FileViewFinder;
use Cache;
use Carbon\Carbon;
use File;
class RemoteViewFinder extends FileViewFinder {
public function find($name)
{
@eseyden
eseyden / Factory.php
Created November 24, 2014 23:47
Fix Laravel Upload
<?php namespace ACME\Validation;
use Illuminate\Validation\Factory as LaravelFactory;
class Factory extends LaravelFactory{
/**
* Resolve a new Validator instance.
*
* @param array $data
@eseyden
eseyden / 1stReadme.md
Last active August 29, 2015 14:00
Permissions and Roles

#Permissions and Roles