This is a collection of scripts will find modules (non core) that are in the codebase which are not installed and report their path. It will skip submodules (using the "project" key in the module info).
This file contains 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/sh | |
branchname="hotfix/SA-CONTRIB-2017-068" | |
cd $1; | |
for repos in $(ls); do | |
echo; | |
echo "########## Starting with with $repos"; | |
if [ $(grep -c 'core = 7.x' $repos/web/modules/update/update.info) -eq 1 ]; then | |
cd $repos; | |
if [ $(git status | grep -c 'nothing to commit') -ne 1 ]; then |
This file contains 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/sh | |
# Open and close secure key | |
secureUSBOpen () { | |
luksDev="$1" | |
luksName="$2" | |
mountPoint="/media/USB/${luksName}" | |
# Check if we have the right args | |
if [ $# -ne 2 ]; then |
This file contains 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 | |
DRUSH=$(which drush) | |
GIT=$(which git) | |
if [ -z $DRUSH -o -z $GIT ]; then | |
echo "Missing drush!" | |
exit -1 | |
fi |
This file contains 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
import os, sys, subprocess, re | |
from datetime import datetime, timedelta | |
if __name__ == '__main__': | |
now_date = datetime.today() | |
date_7days_ago = now_date - timedelta(days=7) | |
date_4weeks_ago = now_date - timedelta(weeks=4) | |
bucket_name = 'INSERT_AWS_S3_BUCKET_NAME_HERE' |
This file contains 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/sh | |
# | |
# Swaps between php-fpm versions. | |
# This function assumes php binaries inslatted with brew | |
# | |
# @parameter Semplified php version number | |
# (eg. PHP 5.6 is simply 56, PHP7.0 is 70 and so on...) | |
# | |
php-fpm.swap-to() { |
This file contains 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 | |
if [ $# -ne 1 ]; then | |
echo "Usage: $(basename $0) NUM_TABLES" | |
echo "(Test with 2500 or more tables and up to get real reference)" | |
exit 1; | |
fi | |
if [ $(id -u) -ne 0 ]; then | |
echo "Please run this command as root or via sudo" | |
exit 1; |
This file contains 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
# Schema for the views plugins. | |
views.filter.project_size_range_select: | |
type: views_filter | |
label: 'Foobar numeric' | |
views.filter_value.project_size_range_select: | |
type: views.filter_value.numeric | |
label: 'Foobar Numeric' |
I hereby claim:
- I am esolitos on github.
- I am esolitos (https://keybase.io/esolitos) on keybase.
- I have a public key ASAV7r2_3TBlg4Z7zLhvnQLTboUNBtqTdhXyuXqms99L7Ao
To claim this, I am signing this object:
This file contains 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/sh | |
# | |
# This will check the A record both for the provided NameServer | |
# and for the domain's specified NS | |
# | |
if [ "$1" = "--help" -o "$1" = "-h" ]; then | |
echo "\nUsage:" | |
echo "$0 \$NS_IP domain1.tld domain2.tld ..." | |
echo "Example: $0 8.8.8.8 google.com example.com\n" |