This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Acquia | |
| CLOUDAPI_ID='id' | |
| CLOUDAPI_KEY='key' | |
| DOCROOT="docroot" | |
| CREDS="${CLOUDAPI_ID}:${CLOUDAPI_KEY}" | |
| ssh-keygen -q -b 4096 -t rsa -N "" -f ./script.key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew install rename | |
| # Rename all filenames from old_name to new_name | |
| rename 's/old_name/new_name/g;' * | |
| # Rename all instances of old_name with new_name inside the files in current directory | |
| perl -pi -w -e 's/old_name/new_name/g;' * | |
| # Just to be safe search for the old_name | |
| ag old_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import datetime | |
| import random | |
| import subprocess | |
| import sys | |
| import time | |
| import threading | |
| import keylogger | |
| WASD = ['w', 'a', 's', 'd'] | |
| def random_time(minimum=30, maximum=60): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #This script creates a diffed latex document comparing your recent uncommitted changes to your git last commit. | |
| # | |
| # ./gitLatexDiff.sh "folder path containing the git repository" | |
| # | |
| #You need to make sure that the current version at least compiles. | |
| # | |
| #The file and folder structure: | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| die () { | |
| echo -e "\033[0;31m$*\033[m" >&2 | |
| exit 1 | |
| } | |
| DIR=${1:-.} | |
| if [ ! -d "$DIR" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="container" style="width: 750px; margin: 0 auto;"> | |
| <div class="row-full"> | |
| --- Full width container --- | |
| </div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Runs an acquia task, and waits for the task to complete before continuing. | |
| # This is a helper script, to be used in others as needed. | |
| if [[ $1 = "" ]] || [[ $2 = "" ]] | |
| then | |
| echo "Runs an acquia drush command, waiting for the results before continuing." | |
| echo "Can be used as a replacement for drush." | |
| echo | |
| echo " Usage: $0 <site-alias> <ac-drush-command>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Cloud Hooks: code-deploy, code-update, db-copy, web-activate | |
| # Essentially any time code or db changes are made. | |
| # | |
| # Purges Varnish cache for all .com domains assigned to the environment in Acquia Cloud. | |
| site="$1" | |
| target_env="$2" | |
| drush_alias=$site'.'$target_env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Retrieves past and present logs for a site in Acquia Enterprise | |
| # Put this in your /usr/local/bin folder and chmod it 0755 | |
| # Then you can search/view logs quickly from any terminal | |
| if [ "$1" = "" ] || [ "$2" = "" ] | |
| then | |
| echo "Retrieves past and present logs for a site in Acquia Enterprise" | |
| echo "Usage: $0 <site-alias> <site-environment>" | |
| echo "Example: $0 qrk test" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Clear cache of the following tables using the Drush SQL command | |
| # The SQL commands can also be used directly in MySQL | |
| drush sql-cli | |
| TRUNCATE TABLE cache; | |
| TRUNCATE TABLE cache_block; | |
| TRUNCATE TABLE cache_bootstrap; | |
| TRUNCATE TABLE cache_field; | |
| TRUNCATE TABLE cache_filter; |