Skip to content

Instantly share code, notes, and snippets.

View benbasscom's full-sized avatar

Ben Bass benbasscom

  • Johns Hopkins Applied Physics Lab
  • Laurel Maryland
View GitHub Profile
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"
@benbasscom
benbasscom / gist:b39f59f760669229bd7e
Created March 4, 2015 11:47
No-pkg for munki that enables VNC, ARD and SSH
<?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>
@benbasscom
benbasscom / gist:a12029f84aca3ff845ae
Created March 12, 2015 18:44
Drive info nicely formatted in text via bash.
#!/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)"}')
#!/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.
#######################################################
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