This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Package VMware Fusion.app | |
# | |
# | |
include /usr/local/share/luggage/luggage.make | |
TITLE=VMwareFusion | |
REVERSE_DOMAIN=com.vmware | |
PACKAGE_VERSION=5.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 8/23/12, nate | |
# attempt to reduce AD mobile account login delays while off network | |
# change DOMAIN to your AD domain/config file name | |
if [[ -e /Library/Preferences/OpenDirectory/Configurations/Active\ Directory/DOMAIN.plist ]]; then | |
/usr/libexec/PlistBuddy -c "Set options:query\ timeout 2" /Library/Preferences/OpenDirectory/Configurations/Active\ Directory/DOMAIN.plist | |
/usr/libexec/PlistBuddy -c "Set options:connection\ idle\ disconnect 5" /Library/Preferences/OpenDirectory/Configurations/Active\ Directory/DOMAIN.plist | |
/usr/libexec/PlistBuddy -c "Set options:connection\ setup\ timeout 5" /Library/Preferences/OpenDirectory/Configurations/Active\ Directory/DOMAIN.plist | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
=begin | |
reads contents of a file hosted on a web server, then executes the commands. | |
security holes? yes, probably... | |
=end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# 2012-07-16, resolve missing bundle identifier issues by adding them to plists | |
# add your problem pkg receipts and values to the hash below. | |
identifiers = { | |
"vpnclient-api.pkg" => "com.cisco.vpnclient-api", | |
"vpnclient-bin.pkg" => "com.cisco.vpnclient-bin", | |
"vpnclient-kext.pkg" => "com.cisco.vpnclient-kext", | |
"vpnclient-profiles.pkg" => "com.cisco.vpnclient-profiles", | |
"vpnclient-startup.pkg" => "com.cisco.vpnclient-startup", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright 2009 Joe Block <[email protected]> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'FileUtils' | |
require 'pathname' | |
def get_homedir(user) | |
begin | |
Etc.getpwnam("#{user}")["dir"].chomp | |
rescue Exception => e | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
. /etc/rc.common | |
StartService () | |
{ | |
ConsoleMessage "Starting EnCase Servlet" | |
/usr/local/sbin/enosxintel -d -p /usr/local/sbin | |
} | |
StopService () | |
{ | |
ConsoleMessage "Stopping EnCase Servlet" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright 2009 Joe Block <[email protected]> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
def get_model | |
# using awk is way simpler, but i wanted to see if i could use just ruby. | |
#model = %x(system_profiler SPHardwareDataType | awk '/Model Identifier:/ {print $NF}') | |
# changed to use string.match to make it less ugly. still ugly, though. | |
model = %x(system_profiler SPHardwareDataType).match(/Model Identifier:\ .+$/).to_s.split(":").last.strip | |
end | |
def report_model(model) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
hdiutil attach -nobrowse -noverify /tmp/RecoveryHDUpdate.dmg | |
hdiutil attach -nobrowse -noverify /Volumes/RecoveryHDUpdate/RecoveryHDUpdate.pkg/RecoveryHDMeta.dmg | |
/tmp/RecoveryHDUpdate/RecoveryHDUpdate.pkg/Scripts/Tools/dmtest ensureRecoveryPartition / /Volumes/Recovery\ HD\ Update/BaseSystem.dmg 0 0 /Volumes/Recovery\ HD\ Update/BaseSystem.chunklist | |
hdiutil eject /Volumes/Recovery\ HD\ Update | |
hdiutil eject /Volumes/RecoveryHDUpdate |