My sync2dev script on Mac

# Sync database
# Fix before receiving files
# Get the files
# Fix after receiving
# Drupal 7 variant of cache-rebuild
# Login to site
# Make sure drush finds the features drush extension
# List features with changes

Ajax nukes reference based form fields

Having nodes using fields for referencing content like og, entity reference, node reference, etc breaks apart when using ie file upload widget which produces

An illegal choice has been detected

Some of the issues below made progress.

Drupal core

https://www.drupal.org/node/1045208

https://www.drupal.org/node/1045208#comment-7927057

Views

Test embed

What location aliasses are available for drush rsync

What are the values for drush rsync in %notation?


drush @site.prd php-eval "return _core_path_aliases()"
array(
'%root' => '/home/my-site',
'%site' => 'sites/default',
'%modules' => 'sites/all/modules',
'%themes' => 'sites/all/themes',
'%files' => 'sites/default/files',
'%private' => 'sites/default/files/private',
'%temp' => '/tmp',
)

Updating mysql for Drupal 8

As Drupal 8 now required a mysql version higher then my current manually installed version 5.1.46 released on April 23, 2010 I have to try yo get rid of that version and install the latest through homebrew.

Convert MTS video into MOV

ffmpeg -i MTS/00021.MTS -qscale 0 -deinterlace 00021.mov

Simple CORS using .htaccess file.

Cross-Origin Resource Sharing (CORS) allows web browser to validate and web server to provide a way to consume and provide cross-site content and access controls.

To make Drupal 8 respond to remote calls you should wait for the core issue https://www.drupal.org/node/1869548 which is postponed until Drupal 8.1.x or wait for the D8 version of https://www.drupal.org/project/cors

Apple script and automator

on run {input, parameters}
	# http://macbiblioblog.blogspot.nl/2014/12/key-codes-for-function-and-spec...	tell application "System Events"
		# Symbol	Code
		# Zero	0	29
		# One	1	18
		# Two	2	19
		# Three	3	20
		# Four	4	21
		# Five	5	23
		# Six	6	22
		# Seven	7	26
		# Eight	8	28
		# Nine	9	25
		key code 21 using {control down}

		#		key code 20 using {control down}
		#		key code 21 using {control down}
		key code 18 using {control down}

Fix git apply empty result using patch

http://marymaking.blogspot.nl/2009/11/falling-back-into-space-portraits.html

When applying a patch using git it sometimes fails. Then fallback on to the patch command.

Delete and edit comments on closed node

Node closed comment delete

Having a forum you needs quick deletions of improper comments.

In Drupal 7 and Drupal 8 you have to visit admin/content/comments to do so. But then you loose the thread.

You could review and use this patch or add this to your custom module. The first needs review and testing. The later needs a Drupal coder.