Skip to content

Instantly share code, notes, and snippets.

@enterpriseosx
enterpriseosx / FirefoxESR.pkg.recipe
Created January 30, 2015 01:09
Firefox ESR Recipe for AutoPKG
<?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>Description</key>
<string>Download recipe for Firefox. Finds and downloads a Firefox release.
Values for RELEASE correspond to directories here: http://download-origin.cdn.mozilla.net/pub/mozilla.org/firefox/releases/
Some useful values are: 'latest', 'latest-10.0esr', 'latest-esr', 'latest-3.6', 'latest-beta'
LOCALE corresponds to directories at http://download-origin.cdn.mozilla.net/pub/mozilla.org/firefox/releases/$RELEASE/mac/
Examples include 'en-US', 'de', 'ja-JP-mac', 'sv-SE', and 'zh-TW'
@enterpriseosx
enterpriseosx / java-uninstall.bat
Created January 27, 2015 23:48
Java Universal Uninstaller
@echo off
REM taskkill all apps that interfere with java
taskkill /F /IM iexplore.exe /IM firefox.exe /IM chrome.exe /IM javaw.exe /IM jqs.exe /IM jusched.exe
REM JRE Runtime Environment 7.0 Update 67
start /wait msiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83217051FF} /qn /norestart
REM JRE Runtime Environment 7.0 Update 67 (x64)
start /wait msiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F06417067FF} /qn /norestart
REM JRE Runtime Environment 7.0 Update 51
@enterpriseosx
enterpriseosx / uninstall.sh
Created January 22, 2015 00:06
Uninstall rc.server
#!/bin/bash
rm -f /etc/rc.server
@enterpriseosx
enterpriseosx / rc.server
Last active August 29, 2015 14:13
loginlockout-bug-fix
#!/bin/sh
/bin/echo BootCacheKludge Beta 1.0 - Chris Hotte 2015 - No rights/blame reserved.
/usr/sbin/BootCacheControl jettison
@enterpriseosx
enterpriseosx / gist:72d22f61ec99c354be0d
Created January 21, 2015 16:24
yosemite-loading-fix
/sbin/mount -uw /
rm -rf /System/Library/Caches/*
rm /private/var/db/BootCache.playlist
reboot
@enterpriseosx
enterpriseosx / sophos-pre-config.sh
Created January 9, 2015 21:22
Sophos Pre-Config
# Modify the usernames and paswords to whatever you use and then copy the edited command below, into your terminal. Make sure you are located
# Inside /Sophos\ Installer.app/Contents/MacOS before you execute the line.
./CreateOnAccessPreconfig -AutoLaunch "YES" -InArchives "NO" && sudo ./CreateUpdatePreconfig -PrimaryServerType 1 -PrimaryServerUserName SophosSvcAccount -PrimaryServerPassword \!4m31337 -PrimaryServerURL http://avupdate.yourdomaingoeshere.com:8195/sophosupdate/CIDs/S000/ESCOSX -SecondaryServerType 0 -SecondaryServerUserName username -SecondaryServerPassword 2099wh00p33
# Note: If you are using a password that begins with a ! (bang) you need to put a \ (backslash in front of it, because if not the script
# will treat the bang, like a bang and it will error out...
@enterpriseosx
enterpriseosx / sophos-install-2015.sh
Last active August 29, 2015 14:13
Sophos Install Script
#!/bin/bash
LOGGER="/usr/bin/logger"
# Determine working directory
install_dir=`dirname $0`
# Uninstall existing copy of Sophos 8.x by checking for the
# Sophos Antivirus uninstaller package in /Library/Sophos Anti-Virus.
# If present, the uninstallation process is run.
@enterpriseosx
enterpriseosx / kace-5-5-install-mac.sh
Created August 27, 2014 19:02
Install 5.5.904 KBox agent and adds kace1000.yourserver.name and runkbot
#!/bin/sh
# Kace Remover for 5.1 and 5.3 from http://derflounder.wordpress.com
# Removes the 5.1 KBox agent
sudo /Library/StartupItems/KBOXAgent/KBOXAgent stop
sudo /Library/KBOXAgent/Home/bin/kagentctl stop 2>&1
sudo /Library/KBOXAgent/Home/bin/SMMPctl stop 2>&1
sudo rm -rf /Library/KBOXAgent
sudo rm -rf /Library/StartupItems/KBOXAgent
sudo rm -rf /Library/Receipts/KBOX\ Agent.pkg
sudo rm -rf /var/kace
#!/bin/sh
####################################################################################################
# Creates pref file for Java 7 that has setting which turns off the auto update check feature
####################################################################################################
####################################################################################################
# Java Plugin Location
javaPlugin="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin"