Make sure Docker is installed!
Get your Minio endpoint url, accesskey, and secretkey ready!
docker plugin install rexray/s3fs \| #Backup your databases | |
| docker exec -t your-db-container pg_dumpall -c -U postgres > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql |
| #remove from origin | |
| git ls-remote --tags --refs origin "v0.0.5*" | cut -f2 | xargs git push origin --delete | |
| #remove local | |
| git tag -d $(git tag -l "v0.0.5*") |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
| #set ($UppaerCaseModuleName = $ModuleName.toUpperCase()) | |
| #set ($capitalizedModuleName = $ModuleName.substring(0,1).toUpperCase() + $ModuleName.substring(1)) | |
| import { appName } from '../../../application/config' | |
| import { Record, List } from 'immutable' | |
| import { createSelector } from 'reselect' | |
| import { put, takeEvery, all, call } from 'redux-saga/effects' | |
| /** | |
| * Constants |
Dockerfile that is based on your production image and
simply install xdebug into it. Exemple:FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
| git filter-branch --force --index-filter \ | |
| 'git rm --cached --ignore-unmatch <myfile>' \ | |
| --prune-empty --tag-name-filter cat -- --all | |
| git push origin --force --all | |
| git push origin --force --tags |
| <?php | |
| //http://stackoverflow.com/questions/25708344/yii2-autocomplete-save-the-id-instead-of-value | |
| use yii\web\JsExpression; | |
| use yii\jui\AutoComplete; | |
| $data = Company::find() | |
| ->select(['name as value', 'name as label','c_id as id']) | |
| ->asArray() | |
| ->all(); |
| <?php | |
| /** | |
| * Yii bootstrap file. | |
| * Used for enhanced IDE code autocompletion. | |
| */ | |
| class Yii extends \yii\BaseYii | |
| { | |
| /** | |
| * @var BaseApplication|WebApplication|ConsoleApplication the application instance | |
| */ |