Skip to content

Instantly share code, notes, and snippets.

View pwtyler's full-sized avatar

Phil Tyler pwtyler

View GitHub Profile
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
#!/bin/bash
set -eou pipefail
# shellcheck disable=SC2155
readonly WP_WORKSPACE=$(mktemp -d /tmp/wpworkspace_XXXXXXX)
# Trap any exit and print the temporary workspace path back to the terminal
trap 'echo "
Working Directory: ${WP_WORKSPACE}"' EXIT
#!/bin/bash
set -eou pipefail
IFS=$'\n\t'
readonly THIS_REPO="pantheon-systems/plugin-pipeline-example"
readonly DEPENDENCIES_YML="./dependencies.yml"
#####
# Sample dependencies.yml
# ---
# dependencies:
@pwtyler
pwtyler / test-fork-pr.sh
Last active May 9, 2023 17:37
A bash script to copy commits from a fork to a brach to run CI when fork builds are disabled.
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
###
#
# Requires: git, gh (https://cli.github.com/)
# Usage: bash test-fork-pr.sh "${REPO}" "${PR_ID}"
# example: bash test-fork-pr.sh pantheon-systems/wp-redis 100
#
###
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
PULL_REQUEST_ID=${1:-}
if [[ -z "${PULL_REQUEST_ID}" ]]; then
echo "usage: $0 PULL_REQUEST_ID"
exit 1
fi

Character sheet-free macros

For use with Roll20

d20 Rolls

Generic Skills Check

/roll ?{Roll Type|Standard, 1d20|Advantage, 2d20kh1|Disadvantage, 2d20kl1} + (?{Modifier|0})

Initiative (token should be selected on battle map)

/roll 1d20+ (?{DEX Modifier|0}) &{tracker}

Reliable Talent

/roll {1d20, 1d0+10}kh1 + (?{Modifier|0})

Attack