Skip to content

Instantly share code, notes, and snippets.

@edingc
edingc / gist:3105837
Created July 13, 2012 16:35
Munki Installs Keys for Adobe Creative Suite 3 Design Premium
<key>installs</key>
<array>
<dict>
<key>CFBundleIdentifier</key>
<string>com.adobe.Acrobat.Pro</string>
<key>CFBundleName</key>
<string>Acrobat</string>
<key>CFBundleShortVersionString</key>
<string>8.0.0</string>
<key>path</key>
@edingc
edingc / gist:3100143
Created July 12, 2012 18:57
Client-friendly WordPress administration URL rewrites in nginx
location /{
# Other rules here...
rewrite ^/[Ll][Oo][Gg][Ii][Nn]$ /login/ permanent;
rewrite ^/[Ll][Oo][Gg][Ii][Nn]/$ /wp-login.php permanent;
}
@edingc
edingc / gist:3100118
Created July 12, 2012 18:54
Google Chrome Master Preferences file for Enterprise Deployment
{
"homepage" : "http://www.codyeding.com",
"homepage_is_newtabpage" : false,
"browser" : {
"show_home_button" : true,
"check_default_browser" : false,
"show_update_promotion_info_bar" : false
},
"session" : {
"restore_on_startup" : 4,
@edingc
edingc / pdf2jpg.sh
Created July 9, 2012 21:53
Batch Convert PDFs to JPEGs using the Poppler library and ImageMagick
#!/bin/sh
##############################################################################
####
#### Convert PDFs to JPEGs using the Poppler library and ImageMagick
####
#### This script converts a folder full of PDFs to JPEGs using libpoppler and
#### ImageMagick. In this case, PDFs are coverted at 150 dpi and outputted as
#### 85 percent quality JPEGs with a maximum width of 800 pixels. Edit these
#### values to suit your environment.
@edingc
edingc / gist:3075923
Created July 9, 2012 11:29
Supressing Adobe Reader X EULA and Disabling Updates on Mac OS X using PlistBuddy
#!/bin/bash
# Disables Adobe Reader X EULA and automatic update checks
USERPREFS_DIR="/System/Library/User Template/English.lproj/Library/Preferences"
/usr/libexec/PlistBuddy -c "Delete 10:EULAAccepted" "${USERPREFS_DIR}/com.adobe.Reader.plist"
/usr/libexec/PlistBuddy -c "Add 10:EULAAccepted bool TRUE" "${USERPREFS_DIR}/com.adobe.Reader.plist"
/usr/libexec/PlistBuddy -c "Delete 10:AVGeneral:CheckForUpdatesAtStartup:1" "${USERPREFS_DIR}/com.adobe.Reader.plist"
/usr/libexec/PlistBuddy -c "Add 10:AVGeneral:CheckForUpdatesAtStartup array" "${USERPREFS_DIR}/com.adobe.Reader.plist"