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
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -n 1 git branch -d | |
the above command will show which will be deleted. use -D instead of -d to delete them all | |
tested and works | |
does not delete local branches which only exist locally and have never existed remotely. | |
a better version would test whether the branch creates a diff or pr. ie. it's been merged. |
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
Listen 8000 | |
<VirtualHost *:8000> | |
LoadModule php5_module /home/ubuntu/.phpenv/versions/5.6.2/libexec/apache2/libphp5.so | |
DocumentRoot /home/ubuntu/programs | |
DirectoryIndex index.php | |
ServerName localhost | |
<FilesMatch \.php$> | |
SetHandler application/x-httpd-php |
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
// if the WP_Better_Emails plugin is installed, stop BuddyPress Group Email Subscription plugin from wrapping digests with <html><body>$message</body></html> | |
function my_dont_wrap_digests_with_html_twice( $message, $message_pre_html_wrap ) { | |
if ( class_exists( 'WP_Better_Emails' ) ) { | |
$message = $message_pre_html_wrap; | |
} | |
return $message; | |
} | |
add_filter( 'ass_digest_message_html', 'my_dont_wrap_digests_with_html_twice', 10, 2 ); |