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
:ssl_verify_mode: 0 |
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
####################################### | |
# SCRIPT 1 - PREVIEW BRANCH DELETIONS # | |
####################################### | |
# will print the names of the branches that have been merged into develop and master in green and branches that are only merged into develop but not master in red. | |
BRANCHES_IN_MASTER=`git branch -r --merged origin/master | grep -v -E '(\*|master$|develop$)' | cut -f2- -d '/' | tr '\n' ';'` && export BRANCHES_IN_MASTER && git branch -r --merged origin/develop | grep -v -E '(\*|master$|develop$)' | cut -f2- -d '/' | xargs -L1 bash -c 'if [ $(grep -o "$0" <<< "$BRANCHES_IN_MASTER" | wc -l) -gt 0 ] ; then printf "\e[0;32m $0 \e[0m\n"; else printf "\e[0;31m $0 is merged into DEVELOP but not MASTER \e[0m\n"; fi'; | |
################################################################################################################################# | |
# SCRIPT 2 - DANGER -- RUN AT YOUR OWN RISK -- The following script will DELETE the branches listed in the above preview script # | |
########################### |
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 | |
# | |
# Based on http://www.noah.org/engineering/src/shell/rsync_backup | |
# Retention count 21 for making 3 backups each day for a week. | |
# | |
# This maintains a rotating backup. This will normalize permissions on | |
# all files and directories on backups. It has happened that someone removed | |
# owner write permissions on some files, thus breaking the backup process. This | |
# prevents that from happening. All this permission changing it tedious, but it | |
# eliminates any doubts. I could have done this with "chmod -R +X", but I |
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
0459860a8fa12412b77fd59b3923493c548b2e7091b114ea74ad317bafea36999e212749d6212f218c500aa6f683a7f42d9af9535cc2ca89041bed049e3c5c945a;darkownage |
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
#!/usr/bin/env bash | |
VERSION=${1:-9.4.x} | |
cd /home/localcopy | |
sudo chmod 777 -R drupal-core | |
rm -rf drupal-core-${VERSION//./-} | |
mkdir drupal-core-${VERSION//./-} | |
cd drupal-core-${VERSION//./-} | |
git clone -b ${VERSION} [email protected]:project/drupal web | |
cd web |
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
mogrify -resize 3840x2160\> *.png | |
mogrify -resize 3840x2160\> *.jpg | |
mogrify -resize 3840x2160\> *.jpeg |
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
{ | |
"*/*": [ | |
".cspell.json", | |
".codeclimate.yml", | |
".ddev/", | |
".editorconfig", | |
".eslintignore", | |
".eslintrc", | |
".eslintrc.*", | |
".gitattributes", |
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
@echo off | |
git clone [email protected]:project/project_analysis -b results results_a | |
git clone [email protected]:project/project_analysis -b results results_b | |
git clone [email protected]:project/project_analysis -b results-d11 results_d11_a | |
git clone [email protected]:project/project_analysis -b results-d11 results_d11_b | |
cd results_a | |
git switch results | |
git pull | |
cd .. |
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
async function updateLoop() { | |
const timer = ms => new Promise(res => setTimeout(res, ms)); | |
document.querySelector('[data-test="device-nav-apps"]').click(); | |
await timer(500); | |
let menuList = document.querySelectorAll('button.more-menu'); | |
for (const menu of menuList) { | |
menu.click(); | |
await timer(100); |