I hereby claim:
- I am anavarre on github.
- I am anavarre (https://keybase.io/anavarre) on keybase.
- I have a public key ASBk7ngM55Ox-bKJ_FLJeMUz_rGmTlxUyVwlAgW6wzIXtQo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # Invoke the script from anywhere (e.g .bashrc alias) | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| check_dependencies() { | |
| for cmd in ddev git composer curl jq; do | |
| if ! command -v "$cmd" &> /dev/null; then | |
| echo "❌ '$cmd' is not installed. Install it and try again." | |
| exit 1 |
| #!/usr/bin/env bash | |
| ACLI_LOG_FILE="/tmp/acli_fedauth.log" | |
| info() { | |
| echo "---------------------------------------------------------------------------------" | |
| echo "Read this known issue first: https://docs.acquia.com/acquia-cli/known-issues/#id1" | |
| echo "---------------------------------------------------------------------------------" | |
| echo "" | |
| } |
| #!/usr/bin/env bash | |
| export ROOT_DIR="/path/to/pics" | |
| function userInput() { | |
| echo -e "Warning: I can only resize and watermark images in ${ROOT_DIR}.\n" | |
| read -p "What is the directory name in which to resize and watermark images? " DIR | |
| export INPUT_DIR="${ROOT_DIR}/${DIR}" | |
| cd ${ROOT_DIR} |
| #!/usr/bin/env bash | |
| ################################################################### | |
| # INSTALL: # | |
| # # | |
| # 1. Place the file under your $HOME directory. # | |
| # 2. Create the following Bash aliases to invoke the # | |
| # script from anywhere. # | |
| # # | |
| # alias quick-start='$HOME/.quick-drupal.sh quick-start' # |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # Invoke the script from anywhere (e.g .bashrc alias) | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| source ${DIR}/common | |
| source ${DIR}/functions.sh | |
| PATCH=$1 |
| #!/usr/bin/env bash | |
| SOURCE_REPO="/local/path/to/source/repo" | |
| REMOTE_NAME="github" | |
| REMOTE_PATH="https://github.com/username/repo.git" | |
| REMOTE_BRANCH="master" | |
| # Prepare source repo. | |
| cd ${SOURCE_REPO} | |
| find . -not \( -name .git -prune \) -exec git rm -r {} \; |
| #!/bin/bash | |
| REPO_PATH="/path/to/github/repos" | |
| GITHUB="repo1 repo2 repo3" | |
| echo "Updating GitHub repos..." | |
| for REPO in ${GITHUB} ; do | |
| cd ${REPO_PATH}/${REPO}/ | |
| echo -e "\tPulling ${REPO} repo..." |
| <?php | |
| /**********************************************************************************/ | |
| /* Generate a list of filenames to parse in filenames.txt (1 per line) */ | |
| /* => running "$ ls -1 > filenames.txt" will output just what you need */ | |
| /* */ | |
| /* Run the parser.php script from the same directory or change the TXT file path */ | |
| /* => Ideally, you just need to run it from the command line: "$ php parser.php" */ | |
| /* */ | |
| /* Copy/paste the queries that are returned in the MySQL prompt */ | |
| /* => MySQL will then return files that are managed by Drupal */ |