A script to fix EDID problems on external monitors in macOS.
-
Connect only the problem display.
-
Create this directory structure (if it doesn't already exist):
<?php | |
namespace Mesoconcepts\WordPress\Plugin\BugFixes\Component; | |
use Mesoconcepts\WordPress\Bridge\Component\WordPressInterface; | |
use Mesoconcepts\WordPress\Bridge\DependencyInjection\EagerLoadedInterface; | |
use Mesoconcepts\WordPress\Bridge\DependencyInjection\EventSubscriberInterface; | |
/** | |
* Subdir install fixes -- part of MIT-licensed `mesoconcepts/mc-bug-fixes` plugin | |
* |
<?php | |
function my_searchwp_dwls_alter_results( $search_results, $deprecated, $daves_live_search ) { | |
global $wp_query; | |
if( class_exists( 'SearchWP' ) ) { | |
// remove Dave's pre_get_posts | |
remove_action( 'pre_get_posts', array( 'DavesWordPressLiveSearchResults', 'pre_get_posts' ) ); |
/*** TypeKit Fonts ***/ | |
function theme_typekit() { | |
wp_enqueue_script( 'theme_typekit', '//use.typekit.net/hoo8stk.js'); | |
} | |
add_action( 'wp_enqueue_scripts', 'theme_typekit' ); | |
function theme_typekit_inline() { | |
if ( wp_script_is( 'theme_typekit', 'done' ) ) { ?> | |
<script type="text/javascript">try{Typekit.load();}catch(e){}</script> |
<?php | |
function my_batcache_searchwp_delta_update( $post_id ) { | |
if ( class_exists( 'SearchWP' ) ) { | |
if ( $post->post_type != 'revision' && get_post_status( $post_id ) == 'publish' ) { | |
$searchwp = SearchWP::instance(); | |
$searchwp->purgePost( $post_id ); | |
$searchwp->triggerReindex(); | |
} | |
} |
#!/bin/sh | |
mkdir ${TMPDIR}/com.apple.IconServices |
<?php | |
/** | |
* Filter a few parameters into YouTube oEmbed requests | |
* | |
* @link http://goo.gl/yl5D3 | |
*/ | |
function iweb_modest_youtube_player( $html, $url, $args ) { | |
return str_replace( '?feature=oembed', '?feature=oembed&modestbranding=1&showinfo=0&rel=0', $html ); | |
} | |
add_filter( 'oembed_result', 'iweb_modest_youtube_player', 10, 3 ); |
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
I was chasing down another issue (slow "Save As") and thought these two issues may have been related (with QuickLook being the common broken link). Unfortunately, my "Save As" dialog is still miserably slow on the initial load; but IconServicesAgent hasn't gone above 30MB and he rarely makes an appearance in the Console!
Some of these steps may not be necessary, but here are all of the steps I took that inadverdently put IconServicesAgent back in its place. Note: all commands are a single-line, if they appear to be multiple that's just the forum formatting.
Check for any QuickLooks related .plist files. In a terminal: mdfind com.apple.quicklook. -name .plist
I only had files at the system level (specifically within /System/Library/LaunchAgents/). If you have others, modify the directions below to take that into account (re-introducing plist files from the system level back up to the user).
Make some temporary directories to store these plist files, just in case: mkdir ~/tmp-quicklook