Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
<?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.apple.touristd</key> |
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa | |
Africa/Algiers | |
Africa/Asmara | |
Africa/Bamako | |
Africa/Bangui | |
Africa/Banjul | |
Africa/Bissau | |
Africa/Blantyre |
#!/bin/sh | |
## postinstall | |
# This script is for Pro Tools 11.3 - it performs functions that would normally ask for admin privileges when Pro Tools is launched for the first time. | |
# It checks that Pro Tools has already been installed and will not run if it hasn't. | |
if [[ -d "$3/Applications/Pro Tools.app" ]]; then | |
echo "Pro Tools has been installed, running post-install tasks..." | |
# Let's declare a couple of variables because the author is lazy |
#!/bin/bash | |
# | |
# Start a linked clone of a VM and list available software updates. | |
declare -r FUSION_PATH="/Applications/VMware Fusion.app" | |
declare -r GUEST_USER="swup" | |
declare -r GUEST_PASSWORD="swup" | |
# Exit status constants. |
#!/bin/bash | |
# save this file at /Library/yourorg/ScriptRunner.sh | |
script_path="${0}" | |
source_path=$(dirname "${script_path}") | |
chmod 777 "/var/log/yourorg-scriptrunner.log" | |
if [ -d "${source_path}/User Login Scripts" ]; then |
SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.
apt-get install sshpass
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_USER_AGENT} Darwin/9 | |
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-leopard.merged-1.sucatalog | |
RewriteCond %{HTTP_USER_AGENT} Darwin/10 | |
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-leopard-snowleopard.merged-1.sucatalog | |
RewriteCond %{HTTP_USER_AGENT} Darwin/11 | |
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-lion-snowleopard-leopard.merged-1.sucatalog | |
RewriteCond %{HTTP_USER_AGENT} Darwin/12 | |
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog |
#!/usr/bin/python | |
'''Uses Cocoa classes via PyObjC to set a random desktop picture on all screens. | |
Tested on Mountain Lion and Mavericks. | |
See: | |
https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSWorkspace_Class/Reference/Reference.html | |
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/Reference/Reference.html |
#!/bin/sh | |
PATH=/bin:/usr/bin:/sbin:/usr/sbin export PATH | |
# Define the recipient. | |
RECIP="[email protected]" | |
# That should be it for the necessary configuration part. The rest can be pretty much as-is. | |
NAME=`hostname` | |
LOGS="/tmp/tomcat-restart.txt" | |
HWLOGDATE=$(printf "`date "+%a %h %e"` \n") |