What would you need:
- Postgres 9.3, 9.4, 9.5, 9.6 or 10 with cstore_fdw extention (https://github.com/citusdata/cstore_fdw)
- Docker 1.12.6 or higher
- Docker Compose
- Linux machine
Hardware requirements
<?php | |
/* ADD GTM TO HEAD AND BELOW OPENING BODY */ | |
add_action('wp_head', 'google_tag_manager_head', 20); | |
function google_tag_manager_head() { ?> | |
<!-- Google Tag Manager --> | |
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); |
<?php | |
namespace App\Traits; | |
use Illuminate\Support\Str; | |
use App\Exceptions\InvalidEnumException; | |
trait Enums | |
{ | |
/** |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class MY_Input extends CI_Input { | |
/** | |
* Variables | |
* | |
*/ | |
protected $delete; |
((name, context = window, func) => { context[name] = func() }) | |
('CpuMeter', this, () => { | |
const isEmptyObject = object => Object.keys(object).length === 0 | |
const getProcessorUsage = (usage, oldUsage) => | |
Math.floor((usage.kernel + usage.user - oldUsage.kernel - oldUsage.user) / (usage.total - oldUsage.total) * 100) | |
class CpuMeter { | |
constructor() { | |
if (!chrome || !chrome.system || !chrome.system.cpu) { | |
throw new Error(`No access to chrome.system.cpu! |
<template> | |
<div> | |
<div class="tabs"> | |
<ul> | |
<li v-for="tab in tabs" :key="tab.id" :class="{ 'is-active': isActivated(tab) }"><a @click="selectTab(tab)">{{ tab.name }}</a></li> | |
</ul> | |
</div> | |
</div> | |
</template> |
<?php | |
/** | |
* This example uses 'main-category' as a custom taxonomy and values | |
* from Carbon Fields for sorting https://carbonfields.net | |
*/ | |
// Add custom column title | |
add_filter( 'manage_edit-main-category_columns', function( $columns ) { | |
$column_position = 2; | |
$before = array_slice( $columns, 0, $column_position, true ); |
What would you need:
Hardware requirements
; Wordfence WAF | |
auto_prepend_file = ‘/srv/www/example.com/current/config/wordfence-waf.php’ | |
; END Wordfence WAF |
// On PhpStorm, when ussing with laravel mix, for Alias path resolving in components you have to: | |
// - create a webpack.config.js file separately like: | |
const path = require('path') | |
const webpack = require('webpack') | |
module.exports = { | |
... | |
resolve: { | |
extensions: ['.js', '.json', '.vue'], |
public static function boot() {
parent::boot();
// Trim all string attributes before they are saved
static::saving(function($model){
$attributes = collect($model->getAttributes())->map(function ($attribute) {
if (is_string($attribute)) {
return trim($attribute);
}