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 | |
# Install all the things | |
function install { | |
xcode-select --install | |
if ! type "brew" > /dev/null; then | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/$(whoami)/.zprofile | |
eval "$(/opt/homebrew/bin/brew shellenv)" |
#!/usr/bin/env bash | |
dnf install -y openscap-scanner bzip2 wget unzip && \ | |
wget https://github.com/ComplianceAsCode/content/releases/download/v0.1.61/scap-security-guide-0.1.61-oval-5.10.zip && \ | |
unzip scap-security-guide-0.1.61-oval-5.10.zip && \ | |
oscap xccdf eval \ | |
--verbose ERROR \ | |
--fetch-remote-resources \ | |
--profile "xccdf_org.ssgproject.content_profile_stig" \ | |
--results compliance_output_report.xml \ | |
--report report.html "scap-security-guide-0.1.61-oval-5.10/ssg-rhel8-ds.xml" |
.PHONY: run | |
run: | |
docker-compose --profile postgres-redis --env-file ./docker/environments/postgres-redis.env up --no-deps |
{ | |
"assignees": [ | |
"@gitlabusername" | |
], | |
"baseBranches": [ | |
"development" | |
], | |
"automerge": false | |
} |
#!/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)" |
# 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 |
image: node:6.15.0 | |
pipelines: | |
default: | |
- step: | |
caches: | |
- node | |
script: | |
- apt-get update | |
- apt-get install -y zip curl |
#!/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:]]/}" |
# 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 |