Some useful commands to get xdebug running with docker on wsl2
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so
xdebug.idekey = VSCODE
`wp_enqueue_style('html5blank', get_template_directory_uri() . '/style.css?v=' . filemtime( get_stylesheet_directory() . '/style.css' ));` |
ENV NVM_DIR="/usr/local/nvm" | |
ENV NVM_VERSION=v0.38.0 | |
ENV NODE_VERSION 10.16.3 | |
RUN mkdir -p $NVM_DIR | |
# Install nvm with node and npm | |
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh | bash \ | |
&& . $NVM_DIR/nvm.sh \ | |
&& nvm install $NODE_VERSION && npm i -g yarn \ |
#!/bin/bash -e | |
clear | |
echo "============================================" | |
echo "Instalador de Wordpress" | |
echo "============================================" | |
echo "Host do Banco de dados: " | |
read -e dbhost | |
echo "Nome do Banco de dados: " | |
read -e dbname | |
echo "Usúario do Banco de dados: " |
@mixin linear-gradient-ltr($fromColor, $fromStop, $toColor, $toStop) {
background: $toColor;
background: -moz-linear-gradient(to right, $fromColor $fromStop, $toColor $toStop);
background: -webkit-gradient(linear, left, right, color-stop($fromStop,$fromColor), color-stop($toStop,$toColor));
background: -webkit-linear-gradient(left, $fromColor $fromStop, $toColor $toStop); //iOS
background: linear-gradient(to right, $fromColor $fromStop, $toColor $toStop); //iOS
background: -o-linear-gradient(left, $fromColor $fromStop, $toColor $toStop);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr=#{$fromColor}, endColorstr=#{$toColor});
import React, { Component } from 'react'; | |
import { | |
View, | |
} from 'react-native'; | |
import MyStacksOverTabs from '../config/routes'; | |
export default class NavigationScreen extends Component { | |
render() { | |
return ( |
Install specific Drupal version with composer
composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction --no-install
cd some-dir
composer require --no-update drupal/core:^8.5
composer require --no-update --dev webflo/drupal-core-require-dev:^8.5
composer install [--no-dev]
Get current URI
Add sass loader
npm install node-sass sass-loader --save-dev
NUXT simultaneous asynchronous data request
async asyncData({ params }) {
let [users, posts] = await Promise.all([
axios.get('http://jsonplaceholder.typicode.com/users'),