Skip to content

Instantly share code, notes, and snippets.

View dalin-'s full-sized avatar
💡

Dave Hansen-Lange dalin-

💡
View GitHub Profile
@dalin-
dalin- / search-non-inclusive-language.sh
Created September 20, 2021 15:11
Simple search through a codebase for non-inclusive language
#!/bin/bash
# search-non-inclusive-language.sh
# Recursively search the current directory for non-inclusive language.
#
# Typical usage:
# cd <site>/web/modules/custom
# /path/to/advotools/scripts/advo/search-non-inclusive-language.sh
# cd <site>/web/themes/custom
# /path/to/advotools/scripts/advo/search-non-inclusive-language.sh
#
@dalin-
dalin- / gist:d61f19705dfa088d0fe9ba5ca11da03a
Created April 21, 2021 15:01
Cron Job to shutdown Docker+Lando nightly
# Crontab entry to shut down Lando/Docker.
0 4 * * * /path/to/file/below/docker-shutdown.sh > /dev/null 2>&1
# Here’s the script:
#!/bin/bash
# docker-shutdown
# Shutdown Lando, then Docker.
docker_running=`ps -fU $USER | grep -i "com.docker.hyperkit" | grep -v "grep"`