Skip to content

Instantly share code, notes, and snippets.

@seankaiser
seankaiser / disableJavaAutoUpdate.mobileconfig
Created January 20, 2015 15:07
disable Java AutoUpdates
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadContent</key>
<dict>
<key>com.oracle.java.Java-Updater</key>
@seankaiser
seankaiser / .htaccess
Created May 23, 2013 14:01
Multi-site reposado .htaccess
Options +FollowSymLinks
RewriteEngine On
# subnet 1 (10.11.0.0-10.11.7.255)
RewriteCond %{REMOTE_ADDR} ^10\.11\.([0-7])\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$
RewriteRule ^content/downloads/(.+) http://updates.subnet1.example.com/content/downloads/$1 [R=302,L]
# subnet 2 (10.11.8.0-10.11.15.255)
RewriteCond %{REMOTE_ADDR} ^10\.11\.([8-9]|1[0-5])\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$
RewriteRule ^content/downloads/(.+) http://updates.subnet2.example.com/content/downloads/$1 [R=302,L]