This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# located at /etc/netplan/ | |
# $ sudo netplan apply | |
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
enp5s0f0: | |
dhcp4: false | |
bridges: | |
br0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Update select list (html select) | |
*/ | |
updateValueList(event, cell, rowIndex, row) { | |
var data = { | |
//"nid": [{"value": row.nid}], | |
"type":[{"target_id":"request_material"}], | |
"field_req_material_state": [{"value": event.target.value}] | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Directive, HostListener } from '@angular/core'; | |
@Directive({ | |
selector: '[appNoDblClickMat]' | |
}) | |
export class NoDblClickDirectiveMat { | |
constructor() { } | |
@HostListener('click', ['$event']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// thanks Dan - http://www.mediacurrent.com/blog/eight-insights-and-useful-snippets-d8-rest-module | |
/** @file | |
* Contains \Drupal\views_ext\Plugin\views\style\SerializerCount. | |
*/ | |
namespace Drupal\views_ext\Plugin\views\style; | |
use Drupal\Core\Cache\Cache; | |
use Drupal\Core\Cache\CacheableDependencyInterface; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add on active server block | |
location ~* /(files|files-private|tmp)/.*\.php$ { | |
deny all; | |
} |
NewerOlder