- User creates zone (authorizing xfer from pdns server) and adds record
- Ns1 site sends notify to pdns server
- Listener service detects the notify
- Listener creates the zone in pdns's db if not exists
- Pdns detects it has a slave zone unsync'ed with the master's one (in ns1) and request a xfer update.
- Pdns syncs the slave zone and applies future updates from then on.
This file contains hidden or 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
| # set PATH so it includes user's private bin directories | |
| PATH="$HOME/bin:$HOME/.local/bin:$PATH" | |
| if [[ "$SSH_TTY" != "" ]] | |
| then | |
| if [[ "$TERM" != "screen" ]]; then | |
| screen -dr default | |
| if (($?)); then | |
| screen -ln -S default | |
| fi | |
| fi |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -eu | |
| set -o pipefail | |
| TMPDIR="$(mktemp -d)" | |
| pushd $TMPDIR 2>&1 >/dev/null | |
| [ -d "app" ] || mkdir app kustomizeconfig |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -eu | |
| set -o pipefail | |
| # TMPDIR="$(mktemp -d)" | |
| # pushd $TMPDIR 2>&1 >/dev/null | |
| [ -d "base" ] || mkdir -p base/app dev/kustomizeconfig |
This file contains hidden or 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
| all: help | |
| save: ## save work | |
| git add . ; git commit -am'doc updates' ; git pull ; git push | |
| watch: ## run save in tmux | |
| tmux new-session -s "docs" \; send-keys 'watch make save' C-m \; split-window -v \; | |
| .PHONY: help |
Add to ~/.bashrc on client:
tmosh() {
mosh --no-init $1 -- tmux new-session -ADs main
}
This file contains hidden or 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
| #!/bin/bash | |
| # usage: drupal-quick-dump user host database | |
| usage() { | |
| echo -e "usage:" | |
| echo -e "\tdrupal-db-backup [dir]" | |
| echo -e "params:" | |
| echo -e "\tdir\tdirectory for the settings.php file" | |
| } |
This file contains hidden or 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
| WEEK := "$(shell date +%Y)/$(shell date +%m)" | |
| all: help | |
| check: ## check connection | |
| @ssh -T [email protected] | |
| save: ## commit and push | |
| git add . ; git commit -am'update docs' ; git pull ; git push | |
| tmux: ## run tmux session |
OlderNewer