RUN wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java_8.0.12-1debian9_all.deb
RUN dpkg -i mysql-connector-java_8.0.12-1debian9_all.deb
Default database driver location:
# condition typying | |
export type ValueType<OptionType extends OptionTypeBase, IsMulti extends boolean> = IsMulti extends true | |
? OptionsType<OptionType> | |
: OptionType | null; |
# Configure non-root user. | |
ARG PUID=1000 | |
ENV PUID ${PUID} | |
ARG PGID=1000 | |
ENV PGID ${PGID} | |
RUN groupmod -o -g ${PGID} www-data && \ | |
usermod -o -u ${PUID} -g www-data www-data | |
USER 1000:1000 |
// painless language | |
// create a new object | |
ctx._source.ml = = new HashMap(); | |
// create a new array | |
ctx._source.products = new ArrayList(); | |
// check if a key exists on an object | |
if (ctx._source.ml.get('label') == null) { |
// install package: rackspace/php-opencloud | |
$client = new OpenCloud\OpenStack('https://auth.cloud.ovh.net/v2.0', [ | |
'username' => self::OVH_OPENSTACK_USERNAME, | |
'password' => self::OVH_OPENSTACK_PASSWORD, | |
'tenantId' => self::OVH_OPENSTACK_PROJECT_ID, | |
]); | |
// 2. Obtain an Object Store service object from the client. | |
$objectStoreService = $client->objectStoreService('swift', 'DE1'); |
Neovim configuration path: | |
~/AppData/Local/nvim/init.vim | |
Neovim plugin manager: | |
https://github.com/junegunn/vim-plug | |
/** | |
* @SWG\Property( | |
* type="array", | |
* @SWG\Items(ref="#/definitions/ProductSiren") | |
* ) | |
* @JMS\Type() | |
* @var ProductSiren[] | |
*/ | |
protected $entities; |
bin/behat --suite=suiteName |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
"let Vundle manage Vundle, required |
function normalizeChars($s) { | |
$replace = array( | |
'ъ'=>'-', 'Ь'=>'-', 'Ъ'=>'-', 'ь'=>'-', | |
'Ă'=>'A', 'Ą'=>'A', 'À'=>'A', 'Ã'=>'A', 'Á'=>'A', 'Æ'=>'A', 'Â'=>'A', 'Å'=>'A', 'Ä'=>'Ae', | |
'Þ'=>'B', | |
'Ć'=>'C', 'ץ'=>'C', 'Ç'=>'C', | |
'È'=>'E', 'Ę'=>'E', 'É'=>'E', 'Ë'=>'E', 'Ê'=>'E', | |
'Ğ'=>'G', | |
'İ'=>'I', 'Ï'=>'I', 'Î'=>'I', 'Í'=>'I', 'Ì'=>'I', | |
'Ł'=>'L', |