- 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
id: discussion_aliases | |
label: Discussion aliases | |
source: | |
plugin: d7_node | |
node_type: discussion | |
constants: | |
english: en | |
node: /node | |
empty: "" | |
process: |
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 | |
$entity_type_id = $_SERVER['argv'][3]; | |
$process = implode(":\n ", array_keys(\Drupal::service('entity_field.manager')->getFieldMap()[$entity_type_id])); | |
print <<<EOT | |
id: | |
label: | |
source: | |
plugin: | |
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
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
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
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
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
<?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
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
# 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: |