This file contains 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
def world_writable?(file) | |
write_bit = Integer(sprintf("%o", File.stat(file).mode)[-1,1]) | |
puts write_bit | |
if [2, 3, 6, 7].include?(write_bit) | |
true | |
else | |
false | |
end | |
end |
This file contains 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
<key>installer_choices_xml</key> | |
<array> | |
<dict> | |
<key>attributeSetting</key> | |
<integer>0</integer> | |
<key>choiceAttribute</key> | |
<string>selected</string> | |
<key>choiceIdentifier</key> | |
<string>quit</string> | |
</dict> |
This file contains 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 | |
require 'rubygems' | |
require 'mac-network/interface' | |
require 'mac-network/location' | |
include Mac::Network | |
require 'osx/cocoa' | |
require 'socket' | |
require 'time' |
This file contains 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
node 'deploystudioreplica01.paradise' { | |
include osx_netboot | |
} |
This file contains 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 | |
# start here | |
removables=( | |
"Applications/GarageBand.app" | |
"Applications/iMovie.app" | |
"Applications/iPhoto.app" | |
"Library/Application Support/GarageBand" | |
"Library/Audio/Apple Loops" |
This file contains 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
# patch -p1 < znc-query-buffering.patch | |
patching file IRCSock.cpp | |
Hunk #1 FAILED at 724. | |
1 out of 1 hunk FAILED -- saving rejects to file IRCSock.cpp.rej | |
patching file User.cpp | |
Hunk #1 FAILED at 290. | |
1 out of 1 hunk FAILED -- saving rejects to file User.cpp.rej |
This file contains 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
#Step 3: Create necessary directories | |
sudo mkdir "/Applications/LabStats" | |
sudo mkdir "/Library/Application Support/LabStats" | |
#Step 4: Copy files to correct location | |
sudo cp -r "$1/Contents/Executable/" "/Applications/LabStats" | |
sudo cp -r "$1/Contents/Bundles/" "/Applications/LabStats" | |
sudo cp "$1/Contents/Launch Daemon/LabStats.plist" "/Library/LaunchDaemons" | |
sudo cp "$1/Contents/Launch Agent/LabStats.plist" "/Library/LaunchAgents" | |
sudo cp "$1/host.txt" "/Library/Application Support/LabStats" |
This file contains 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
LABSTATS_PACKAGE_NAME="LabStats 5 Client.pkg"</pre> | |
prepare-files: l_Applications l_Library_Application_Support | |
# Created necessary directories and copies the files into them | |
@sudo mkdir -p ${WORK_D}/Applications/LabStats | |
@sudo mkdir -p "${WORK_D}/Library/Application Support/LabStats" | |
@sudo ${CP} -R ./${LABSTATS_PACKAGE_NAME}/Contents/Executable/ ${WORK_D}/Applications/LabStats/ | |
@sudo ${CP} -R ./${LABSTATS_PACKAGE_NAME}/Contents/Bundles/ ${WORK_D}/Applications/LabStats/ | |
pack-labstats: prepare-files l_Library_LaunchDaemons l_Library_LaunchAgents | |
# Fix permissions on the installed files |
This file contains 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 | |
#Step 1: Kill any exising processes | |
sudo killall mono | |
sudo killall LabStatsClient | |
#step 1.5 Stop any agents. | |
launchctl unload /Library/LaunchDaemons/LabStats.plist | |
#launchctl unload -D all /Library/LaunchAgents/LabStats.plist | |
#launchctl unload /Library/LaunchAgents/LabStats.plist |
This file contains 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
SERIAL_NUMBER | |
PURCHASE_DATE | |
WARRANTY_EXPIRES | |
WARRANTY_STATUS | |
MODEL_TYPE | |
ASD |
OlderNewer