How to use:
./wordle.sh
Or try the unlimit mode:
#!/bin/bash | |
#Switch between PHP 7.4 and 8.0 and Drush Version 8 and 11 | |
# To use this script download this file and name it switch-php.sh | |
# and give it the correct permissions | |
# You can then run ./switch-php | |
# with the argument 7.4 or just ./switch-php | |
# For example ./switch-php 7.4 | |
## First need to download PHP Versions |
# GPG on Tower |
#!/bin/bash | |
migrate_loop() | |
{ | |
# Better readability with separation. | |
echo "========================"; | |
# Get the output of the drush status. | |
drush_output=$(drush ms "$1" --format string); | |
# Split output string into an array. |
#!/usr/bin/env bash | |
# Call AWS endpoint for IP Ranges and filter by service (EC2) and region | |
# @author Brian Tully <[email protected]> | |
usage () | |
{ | |
echo "-----------------------------------------------------------------------" | |
echo "usage: $0 'REGION'" | |
echo "where 'REGION' is the AWS region name, e.g. 'us-east-1'" |
user web; | |
# One worker process per CPU core. | |
worker_processes 8; | |
# Also set | |
# /etc/security/limits.conf | |
# web soft nofile 65535 | |
# web hard nofile 65535 | |
# /etc/default/nginx |
#!/bin/bash | |
# by joevt Jan 31, 2021 | |
directbless="/Volumes/Work/Programming/XcodeProjects/bless/bless-204.40.27 joevt/DerivedData/bless/Build/Products/Debug/bless" | |
alias directbless='"$directbless"' | |
if [[ ! -f "$directbless" ]]; then | |
echo "# Download and build bless from https://github.com/joevt/bless , then update the path of directbless defined in DiskUtil.sh" | |
directbless=bless | |
alias directbless=bless | |
fi |
# joevt Dec 30, 2020 | |
# https://forums.macrumors.com/threads/documentation-on-all-parameters-for-nvram.2239034/post-28518123 | |
gfxutilcmd=~/Downloads/gfxutil | |
alias gfxutil="'$gfxutilcmd'" | |
nvramp () { | |
local thename="$1" | |
local thedata="" # must declare local separately for $? to get the error |
/** | |
* Implements hook_ENTITY_TYPE_presave(). | |
*/ | |
function [modulename]_media_media_presave(EntityInterface $entity) { | |
if ($entity->bundle() == 'document') { | |
foreach ($entity->field_media_file as $file_reference) { | |
$file = File::load($file_reference->target_id); | |
switch ($entity->status->value) { | |
// Unpublish, set to private. | |
case 0: |
#### | |
## Blackfire config - `lando rebuild` required | |
#### | |
BLACKFIRE_CLIENT_ID=b5ee8ca3-****-****-****-5d227546a4c0 | |
BLACKFIRE_CLIENT_TOKEN=3a2b88cbfb*******************************22763 | |
BLACKFIRE_SERVER_ID=4b8ac335-****-****-****-b34439207732 | |
BLACKFIRE_SERVER_TOKEN=98f7fdf4b12b7**************************12b837cf080d |