Skip to content

Instantly share code, notes, and snippets.

View seancoyne's full-sized avatar

Sean Coyne seancoyne

View GitHub Profile
@seancoyne
seancoyne / fix-google-drive-menu-bar-icons.sh
Created October 21, 2014 15:34
Fix Google Drive Yosemite Dark Mode Menu Bar Icons
#!/usr/bin/env bash
# change to proper directory
cd /Applications/Google\ Drive.app/Contents/Resources/
# back up the files
sudo mkdir icon-backups
sudo cp mac-animate*.png icon-backups/
sudo cp mac-error*.png icon-backups/
sudo cp mac-inactive*.png icon-backups/
@seancoyne
seancoyne / fix-growl-menu-bar-icon.sh
Last active August 29, 2015 14:07
Fix Growl.app Yosemite Dark Mode Menu Bar Icon
#!/usr/bin/env bash
cd /Applications/Growl.app/Contents/Resources/
# replace the "normal" icon with the "alt" one
sudo mv growlmenu.tif growlmenu.tif.orig
sudo cp growlmenu-alt.tif growlmenu.tif
@seancoyne
seancoyne / fix-tvshows-menu-bar-icons.sh
Last active September 14, 2015 21:14
Fix TVShows.app Yosemite Dark Mode Menu Bar Icons
#!/usr/bin/env bash
# change to the proper directory
cd ~/Libarary/PreferencePanes/TVShows.prefPane/Contents/Resources/TVShowsHelper.app/Contents/Resources/
# replace "black" version with the already included "white" version
mv TVShows-Menu-Icon-Black.png TVShows-Menu-Icon-Black.png.orig
cp TVShows-Menu-Icon-White.png TVShows-Menu-Icon-Black.png
# replace retina "black" version with the already included retina "white" version
@seancoyne
seancoyne / new.conf
Created October 13, 2014 22:14
new_cf9_apache24_conf
LoadModule jrun_module /Applications/JRun4/lib/wsconfig/1/mod_jrun22.so
@seancoyne
seancoyne / old.conf
Created October 13, 2014 22:14
old_cf9_apache_conf
LoadModule jrun_module /Applications/JRun4/lib/wsconfig/1/mod_jrun22.so
@seancoyne
seancoyne / fixruleperm.cfm
Last active August 29, 2015 14:07
fix rule permission
<cfscript>
st = {
permissionid = 'E689D5A2-CE66-DAE1-54DCAC81F0E215B1', // genericEdit
roleid = 'B0602740-02C2-11E4-81BE005056890043', // content - SmartER [publisher]
referenceid = '70F5FB30-02C1-11E4-81BE005056890043', // objectid of the record in farCoapi for ruleSmarterPatientAppointment
objecttype = 'farCoapi', // this is a farCoapi permission (it pertains to a custom type)
barnaclevalue = 1 // 1 means "grant" this permission (-1 is deny, 0 is inherit)
};
// save the record
o = application.fapi.getContentType('farBarnacle');
messages: {
emailAddress: {
required: "its requird",
depends: "this would show if your depends fails"
}
}
@seancoyne
seancoyne / README.md
Created August 13, 2014 20:28
OpenOffice on ColdFusion 9
@seancoyne
seancoyne / writeDump.cfm
Created July 28, 2014 16:05
WriteDump for ColdFusion 8
<cffunction name="writedump" returntype="void" output="false" access="public">
<cfdump attributeCollection="#arguments#" />
<cfif structKeyExist(arguments, "abort") and arguments.abort eq true>
<cfabort />
</cfif>
</cffunction>
@seancoyne
seancoyne / embed.html
Created July 11, 2014 23:05
embed MHS P&BC 360 tour
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="300" width="400">
<param name="src" value="/wsimages/PB_VRLrg-qtcyl.mov">
<param name="autoplay" value="true">
<param name="type" value="video/quicktime" height="300" width="400">
<embed src="/wsimages/PB_VRLrg-qtcyl.mov" height="300" width="400" autoplay="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/">
</object>