- installimage
- Created two soft RAID 1 arrays, one 512MB /dev/md0, one 207G /dev/md1
- mount /dev/md0 /boot
- cp -a /boot .
- umount /boot
- mdadm -S /dev/md0
- mdadm --zero-superblock /dev/sdb1; mdadm --zero-superblock /dev/sda1
- gdisk /dev/sda
- add new partition, full size
- w (changing sda to GPT)
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 | |
namespace Drupal\sd8; | |
use Drupal\Core\Entity\ContentEntityInterface; | |
use Drupal\Core\Field\EntityReferenceFieldItemListInterface; | |
/** | |
* Convert an entity to an array and back. | |
*/ |
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
diff --git a/core/modules/node/src/Plugin/views/wizard/NodeRevision.php b/core/modules/node/src/Plugin/views/wizard/NodeRevision.php | |
index d7088eb7b..45d4d7f1f 100644 | |
--- a/core/modules/node/src/Plugin/views/wizard/NodeRevision.php | |
+++ b/core/modules/node/src/Plugin/views/wizard/NodeRevision.php | |
@@ -2,6 +2,7 @@ | |
namespace Drupal\node\Plugin\views\wizard; | |
+use Drupal\Core\Form\FormStateInterface; | |
use Drupal\views\Plugin\views\wizard\WizardPluginBase; |
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
# Every migration that references a file by Drupal 7 fid should specify this | |
# migration as an optional dependency. | |
id: odl_file | |
label: Files | |
migration_tags: | |
- Drupal 7 | |
source: | |
plugin: d7_file | |
scheme: public | |
constants: |
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
ruby -ryaml -rjson -e 'puts JSON.pretty_generate(YAML.load(ARGF))' $2 | \ | |
jq -Mr --arg name "$1" '.services | keys[] as $k | .[$k] | select(.tags[]?.name == $name) | $k' | |
# ag -l -G '.services.yml$' access_check| while read filename ;do services-grep access_check "$filename" ;done |
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 | |
class FilterUrlNormalizer extends FilterBase { | |
/** | |
* {@inheritdoc} | |
*/ | |
public function process($text, $langcode) { | |
$dom = Html::load($text); | |
$metadata = new CacheableMetadata(); |
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
function git() { | |
# Path to the `git` binary | |
GIT="/usr/bin/git" | |
# Sanity check | |
if [ ! -f ${GIT} ] | |
then | |
echo "Error: git binary not found" >&2 | |
return 255 | |
fi |
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
list($access_token, $refresh_token, $expires) = $this->getTokens(); | |
$handler_stack = HandlerStack::create(); | |
$client = new Client([ | |
'auth' => 'oauth2', | |
'handler' => $handler_stack, | |
'base_uri' => 'https://api.smartsheet.com', | |
]); | |
if ($expires < time()) { | |
$form_params = [ | |
'grant_type' => 'refresh_token', |
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
bindkey '^R' history-incremental-pattern-search-backward | |
HISTSIZE=100000 | |
SAVEHIST=100000 | |
setopt hist_ignore_all_dups | |
setopt inc_append_history extendedglob share_history | |
. /etc/profile.d/autojump.zsh |
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
function git() { | |
# Path to the `git` binary | |
GIT="/usr/bin/git" | |
# Sanity check | |
if [ ! -f ${GIT} ] | |
then | |
echo "Error: git binary not found" >&2 | |
return 255 | |
fi |