brew upgrade --cask --greedy --verbose
brew update
brew upgrade
brew install terminal-notifier
brew tap domt4/autoupdate
brew autoupdate start --upgrade --enable-notification
#!/usr/bin/env bash | |
DOMAIN=$1 | |
echo | openssl s_client -servername $1 -connect $1:443 2>/dev/null | openssl x509 -noout -dates | |
echo | openssl s_client -servername $1 -connect $1:443 | grep $1 |
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo "Email requires parameter 1 to be a string."; | |
exit 1; | |
fi | |
if [ -z "$2" ]; then | |
echo "Filename requires parameter 2 to be a string."; | |
exit 1; |
# drush vset variable_name value | |
drush -l [domain.org] en s3fs --y | |
drush -l [domain.org] vset s3fs_bucket [bucket_name] | |
drush -l [domain.org] vset s3fs_region [region] | |
drush -l [domain.org] vset s3fs_use_cname FALSE | |
drush -l [domain.org] vset s3fs_use_customhost FALSE | |
drush -l [domain.org] vset s3fs_use_versioning TRUE | |
drush -l [domain.org] vset s3fs_cache_control_header public, max-age=300 | |
drush -l [domain.org] vset s3fs_encryption aws:kms |
#!/usr/bin/env bash | |
function makeBucket() { | |
echo "Making S3 bucket for ${DOMAIN}..." | |
aws s3 mb s3://${DOMAIN} | |
} | |
# Trim any erroneous whitespace from variable | |
DOMAIN="${DOMAIN//[[:space:]]/}" |
image: node:6.15.0 | |
pipelines: | |
default: | |
- step: | |
caches: | |
- node | |
script: | |
- apt-get update | |
- apt-get install -y zip curl |
# You can obtain the cron_key: | |
`drush vget cron_key --exact` | |
# or | |
`kubectl exec <pod-id> -c <container> -- bash -c 'drush vget cron_key --exact' | |
# Then use that in the cron deployment |
#!/usr/bin/env bash | |
# Enter Bash "strict mode" | |
set -o errexit # Exit immediately on any non-zero error exit status | |
set -o nounset # Trigger error when expanding unset variables | |
set -o pipefail # Prevent errors in a pipeline from being masked | |
IFS=\$'\n\t' # Internal Field Separator controls Bash word splitting | |
# Declare backup path & master zone files | |
BACKUP_PATH="$(date +%F)" |
{ | |
"assignees": [ | |
"@gitlabusername" | |
], | |
"baseBranches": [ | |
"development" | |
], | |
"automerge": false | |
} |
.PHONY: run | |
run: | |
docker-compose --profile postgres-redis --env-file ./docker/environments/postgres-redis.env up --no-deps |