| # Deployment with zero downtime | |
| # By default keeps 2 last deployments in KEEP_DEPLOYMENTS_DIR and current deployment | |
| # Project domain | |
| PROJECT_NAME=test.com | |
| # Project directory | |
| PROJECT_DIR=/home/forge/test.com | |
| # Deployments directory | |
| KEEP_DEPLOYMENTS_DIR=/home/forge/deploy |
Скачиваем сфинкс (берем версию с MySQL и со стеммингом на 15 языков Win32 binaries w/MySQL+PgSQL+libstemmer+id64 support соответствующую битности твоей ОС), распаковываем например в d:\temp\s\
На этом установка sphinx завершена. В дебиане просто делаем sudo apt-get install sphinxsearch.
Создаем таблицы:
CREATE TABLE news
(id INT(10) AUTO_INCREMENT PRIMARY KEY, topic INT(10) NOT NULL, header VARCHAR(200) NOT NULL,
This gist details the following:
- Converting a Subversion (SVN) repository into a Git repository
- Purging the resultant Git repository of large files
- Retrieve a list of SVN commit usernames
Уровень 1: Генерация карты классов Как?
Есть несколько способов это сделать:
Добавить "optimize-autoloader": true в ваш composer.json; Выполнить install или update с флагом -o или --optimize-autoloader; Выполнить dump-autoload с флагом -o или --optimize; Что произойдет?
#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
| (function () { | |
| var scriptName = "embed.js"; //name of this script, used to get reference to own tag | |
| var jQuery; //noconflict reference to jquery | |
| var jqueryPath = "http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"; | |
| var jqueryVersion = "1.8.3"; | |
| var scriptTag; //reference to the html script tag | |
| /******** Get reference to self (scriptTag) *********/ | |
| var allScripts = document.getElementsByTagName('script'); |
| // this was my attempt to write my own php obfuscator | |
| // this was inspired by Carbylamine PHP Script Encoder | |
| // its currently in alpha, because sometimes its work, and sometimes it doesnt | |
| // this was written 3 years ago (ahh memories again) | |
| // so code looks suck | |
| // thanks to Mokhdzani Faeq for created good regexs | |
| // have fun! | |
| <?php |
| { | |
| "vars": { | |
| "@gray-base": "#000", | |
| "@gray-darker": "#6d6d6d", | |
| "@gray-dark": "#6d6d6d", | |
| "@gray": "lighten(@gray-base, 33.5%)", | |
| "@gray-light": "#dddddd", | |
| "@gray-lighter": "#dddddd", | |
| "@brand-primary": "#3792b3", | |
| "@brand-success": "#5cb85c", |