A preview of the full source code.
This file contains hidden or 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
| $ sudo apt-get install faad lame | |
| $ faad -o my.wav my.m4a | |
| $ lame -h -b 256 my.wav my.mp3 |
This file contains hidden or 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
| ALTER TABLE mdl_course_modules ALTER COLUMN idnumber TYPE varchar(65535); |
This file contains hidden or 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
| id autogenerated - ignore | |
| auth must equal "manual" (for the time being at least) | |
| confirmed must equal 1 | |
| policyagreed must equal 0 | |
| deleted must equal 0 | |
| suspended must equal 0 | |
| mnethostid must equal 1 | |
| username Moodle will most likely have rules for what can and cannot go in here, but it's probs lowercase alphanum only, plus underscores. | |
| password Moodle will have a function to hash this properly, don't write your own! | |
| idnumber CiaB OS ID |
#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
This file contains hidden or 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 | |
| namespace App\Shell; | |
| use Cake\Console\Shell; | |
| /** | |
| * DummyData shell command. | |
| */ | |
| class DummyDataShell extends Shell | |
| { |
This file contains hidden or 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
| |Review of your Personal Development | |
| Review of attendance and punctuality. | |
| Review your personal development including Skills +. | |
| Review your work experience and development of employability skills. | |
| Review any support needs. | |
| |Review of your Core Qualification(s) | |
| Your target grade is... | |
| You are currently working at... | |
| What actions are you taking to achieve your target grade or further improve your skills and knowledge? | |
| |Review of your English |
This file contains hidden or 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
| // Database schema | |
| CREATE TABLE users ( | |
| id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, | |
| email VARCHAR(100) NOT NULL, | |
| password VARCHAR(100) NOT NULL, | |
| firstname VARCHAR(50) NOT NULL, | |
| lastname VARCHAR(50) NOT NULL, | |
| avatar VARCHAR(200) NOT NULL, | |
| created DATETIME DEFAULT NULL, | |
| modified DATETIME DEFAULT NULL, |
This file contains hidden or 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
| public function view($id = null) { | |
| $plan = $this->Plans->get($id, [ | |
| 'contain' => ['Subjects', 'Modules', 'Plantypes', 'Questions', 'Questions.Subjects', 'Questions.Modules', 'Questions.Questiontypes', 'Questions.Questionlevels', 'Questions.Students'] | |
| ]); | |
| .... | |
| $plan = $this->Plans->get($id, [ | |
| 'contain' => ['Subjects', 'Modules', 'Plantypes', 'Questions', 'Students', 'Students.Questions', 'Students.Questions.Questiontypes', 'Students.Questions.Questionlevels'] | |
| ]); |
This file contains hidden or 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
| #!/bin/bash | |
| clear | |
| echo -e "\n\e[1;36mTODO Finder: \e[0;36mSummary\e[0m" | |
| grep -iIlr --color --exclude="todo.sh" 'todo' * | |
| echo -e "\n\e[1;36mTODO Finder: \e[0;36mDetails\e[0m" | |
| grep -iInr --color --exclude="todo.sh" 'todo' * |