Skip to content

Instantly share code, notes, and snippets.

@blackbit47
blackbit47 / CrudController.php
Created November 29, 2017 11:50
Laravel backpack base CrudController with automatic permissions check
<?php
/**
* Created by PhpStorm.
* User: Sergey.Fayngold
* Date: 16.11.16
* Time: 18:27
*/
namespace App\Http\Controllers;
@blackbit47
blackbit47 / 1-add-macros.php
Created February 17, 2018 06:45 — forked from adamwathan/1-add-macros.php
Multiformat Endpoints in Laravel
<?php
namespace App\Providers;
use Illuminate\Http\Request;
use Illuminate\Routing\Route;
use Illuminate\Support\ServiceProvider;
use App\Http\Middleware\CaptureRequestExtension;
class AppServiceProvider extends ServiceProvider
@blackbit47
blackbit47 / docker-compose.yaml
Created September 25, 2018 04:56 — forked from Spittal/docker-compose.yaml
Docker compose file from SBVR
version: '3'
services:
fpm:
image: sbvr/laravel-fpm:2.1.2
volumes:
- app:/var/www
networks:
- appnet
worker:
@blackbit47
blackbit47 / docker-compose.override.yaml
Created September 25, 2018 04:56 — forked from Spittal/docker-compose.override.yaml
Docker Compose override from Springboard VR
version: '3'
services:
fpm:
volumes:
- ./:/var/www
environment:
- OPCACHE_ENABLED=0
worker:
volumes:
@blackbit47
blackbit47 / Download and Organize Lynda.com Courses with Authentication.md
Created October 21, 2018 02:20 — forked from bwangila/Download and Organize Lynda.com Courses with Authentication.md
Lynda.com unfortunately does not allow one to easily download course videos even with a premium subscription. Here, I show you how to easily do that with the open source youtube-dl utility.

youtube-dl INSTALLATION

youtube-dl is a handy little command-line utility that, with the right command, automagically downloads videos from Youtube as well as other platforms such as Vimeo, Lynda.com, BBC, CNN etc..(Full list of supported websites)

Kindly proceed to youtube-dl's Github repo for detailed installation instructions for your respective OS

In case of an error, make sure you have Python 2.6, 2.7 or 3.2+ installed as youtube-dl needs it to run.

USAGE