Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| sudo bash | |
| cd /usr/local/lib | |
| wget http://launchpad.net/gearmand/trunk/0.18/+download/gearmand-0.18.tar.gz | |
| tar -xvzf gearmand-0.18.tar.gz | |
| cd gearmand-0.18/ | |
| apt-get install libboost-program-options-dev uuid-dev libevent-dev build-essential g++ | |
| ./configure && sudo make && sudo make install | |
| ldconfig |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
#Mac OS X
| $('#myform').validate({ errorElement: 'span', errorClass:'help-inline', | |
| errorPlacement: function(label, element) { | |
| var append = $(element).parents(".input-append"); | |
| if(append.length > 0) { | |
| label.insertAfter(append); | |
| } else { | |
| label.insertAfter(element) | |
| } | |
| }, highlight: function (element, errorClass) { | |
| $(element).parents(".control-group").addClass('error'); |
There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.
I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:
| <?php | |
| defined('SYSPATH') or die('No direct script access.'); | |
| class Model_Child extends Model_Parent { | |
| } |
| <?php | |
| /* | |
| OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
| Author: _ck_ (with contributions by GK, stasilok) | |
| Version: 0.1.7 | |
| Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
| * revision history | |
| 0.1.7 2015-09-01 regex fix for PHP7 phpinfo | |
| 0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter |
Other people's projects:
My projects (tutorials are on my blog at http://maxoffsky.com):
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>App Redirection</title> | |
| </head> | |
| <body> | |
| <!-- iframe used for attempting to load a custom protocol --> | |
| <iframe style="display:none" height="0" width="0" id="loader"></iframe> |