Run this command in powershell as administrator
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Run this command in powershell as administrator
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Add as cmd startup with bash.exe --login
sudo apt-get update && sudo apt-get upgrade -yHere are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
| ### NOTE ### | |
| The below gist is converted to a blog post and available at below link. Refer that instead. | |
| http://hemenkapadia.github.io/blog/2016/11/11/Ubuntu-with-Nvidia-CUDA-Bumblebee.html | |
| #### Note about kernel versions #### | |
| Between kernel versions 4.2 and 4.4 there are different options that need to bet set | |
| to get this working. The same is highlighted below when necessary. I have not tested |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ruleset name="Laravel and similar phpmd ruleset" | |
| xmlns="http://pmd.sf.net/ruleset/1.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | |
| xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | |
| <description> | |
| Inspired by https://github.com/phpmd/phpmd/issues/137 | |
| using http://phpmd.org/documentation/creating-a-ruleset.html | |
| </description> |
#Laravel 5 Simple ACL manager
Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.
If the user has a 'Root' role, then they can perform any actions.
Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php
| <?php | |
| use Illuminate\Support\Contracts\ArrayableInterface; | |
| use Illuminate\Support\Contracts\JsonableInterface; | |
| class Excel implements ArrayableInterface, JsonableInterface{ | |
| protected $objPHPExcel; | |
| public function __construct($file){ | |
| if($file instanceof \SplFileInfo){ | |
| $filename = $file->getRealPath(); |
Inspiration: Python Decorators
The following describes the mandatory requirements that must be adhered to for autoloader interoperability.
\ <Vendor Name> \ (<Namespace>)* \ <Class Name>DIRECTORY_SEPARATOR when loading from the file system.DIRECTORY_SEPARATOR. The "_" character has no special meaning in the namespace.| <?php | |
| namespace CHH; | |
| trait MetaObject | |
| { | |
| protected static $__metaClass; | |
| static function setMetaClass(MetaClass $metaClass) | |
| { |