Skip to content

Instantly share code, notes, and snippets.

Avatar

Ben Bass benbasscom

  • Johns Hopkins Applied Physics Lab
  • Laurel Maryland
View GitHub Profile
View Yosemite WIki import
#######################################################
Please note that this does NOT bring over any users or groups. You need to restore OD for your Open Directory users to log in properly.
On the Target Server
1. Setup new Target Server with IP domain name etc.
2. Start the wiki service - log in and check that it is running properly.
3. Turn off the Wiki Service on your Target Server, and quit out of Server.app
On Source Server
View Bender v 2.4
#!/bin/bash
# Bender
# Written by Chad Nielsen
# Forget Computers, Get Creative!
# Version History
# 1.0 - Initial creation of script for use with a companion launch daemon.
# 1.1 - Moved binary and log locations to /usr/local/robotcloud.
# 1.2 - Code improvements and added compatibility with OS X 10.9 Mavericks.
@benbasscom
benbasscom / gist:a12029f84aca3ff845ae
Created Mar 12, 2015
Drive info nicely formatted in text via bash.
View gist:a12029f84aca3ff845ae
#!/bin/bash
# Private Eyes log automation part 1 excerpt
# Created by Ben Bass
# Space used/Available on all attached drives.
disk_usage_raw="$(df -Hla)"
disk_name=$(echo "$disk_usage_raw" | awk -v OFS="\t" '{print $4"/"$2" free", "("$5" used)"}')
@benbasscom
benbasscom / gist:b39f59f760669229bd7e
Created Mar 4, 2015
No-pkg for munki that enables VNC, ARD and SSH
View gist:b39f59f760669229bd7e
<?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>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
View smb_settings
smb:LoggingLevel = 1
smb:MasterBrowser = ""
smb:SuspendServices = no
smb:VirtualAdminShares = no
smb:KerberosRealm = ""
smb:VirtualHomeShares = yes
smb:wins server:_array_index:0 = _empty_dictionary
smb:AllowLanManAuth = yes
smb:ServerDescription = "MiniServer"
smb:LocalKerberosRealm = "LKDC:SHA1.5230A6173975F66F962B775F2BCF0F3D450E47D9"