Content :
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 | |
| # Parse named arguments | |
| while [ $# -gt 0 ]; do | |
| case "$1" in | |
| --source-a=*) | |
| REPO_A="${1#*=}" | |
| ;; | |
| --source-b=*) | |
| REPO_B="${1#*=}" |
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
| jQuery( document ).ready( function () { | |
| // Refresh media library each time on click of add media. | |
| if ( wp.media ) { | |
| wp.media.view.Modal.prototype.on( 'open', function () { | |
| if ( wp.media.frame.content.get() !== null ) { | |
| // this forces a refresh of the content. | |
| wp.media.frame.content.get().collection._requery( true ); | |
| } | |
| } ); | |
| } |
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/sh | |
| ECHO='echo ' | |
| for branch in $(git branch -a | sed 's/^\s*//' | sed 's/^remotes\///' | grep -v 'master$'); do | |
| if [[ "$(git log $branch --since "6 months ago" | wc -l)" -eq 0 ]]; then | |
| if [[ "$DRY_RUN" = "false" ]]; then | |
| ECHO="" | |
| fi | |
| local_branch_name=$(echo "$branch" | sed 's/remotes\/origin\///') | |
| $ECHO git branch -d "${local_branch_name}" |