Skip to content

Instantly share code, notes, and snippets.

View notverypc's full-sized avatar
🍰
Cake or Death?

Ben notverypc

🍰
Cake or Death?
View GitHub Profile
@notverypc
notverypc / SpanDisplays
Created November 4, 2013 14:33
Open the Mission Control preference pane in System Preferences, and uncheck “Displays have separate Spaces”.
defaults write com.apple.spaces spans-displays -bool TRUE
@notverypc
notverypc / disableipv6
Created December 16, 2013 09:03
Disable ipv6
networksetup -setv6off Ethernet
@notverypc
notverypc / DPSTools
Created December 19, 2013 09:08
Deploying DPS Tools
mkdir /Volumes/DSPToolUpdate
mount_afp afp://ncs-mac-ds1.macnet.stamford.ac.uk/DPSToolsUpdate /Volumes/DSPToolUpdate
sudo /Volumes/DSPToolUpdate/AdobePatchInstaller.app/Contents/MacOS/AdobePatchInstaller –installSourcePath=/Volumes/DSPToolUpdate/payloads/ --mode=silent
@notverypc
notverypc / ccc_logger
Created January 26, 2014 19:52
CCC_Logger
# CarbonCopyCloner Logger
# Chnage the CHANGEME text to match the name of your scheduled task...
cat /Library/Logs/CCC.log | grep "CHANGEME" | tail -n -1
@notverypc
notverypc / Identifier
Created March 13, 2014 16:05
Get the Model Identifier via command line and ARD
system_profiler SPHardwareDataType | grep "Model Identifier" | awk '{ print $3; }'
<?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>channels</key>
<array>
<string>AdobeInDesignCCApplicationLanguageFilesen_GB-9.0</string>
<string>AdobeInCopyCCApplicationLanguageFilesnl_NL-9.0</string>
<string>AdobeColorCommonSetRGB-5.0</string>
<string>AdobeInDesignCCCommonLanguageFileszh_TW-9.0</string>
@notverypc
notverypc / FoldingTextDefault
Created August 25, 2014 21:48
Change Default FoldingText Format
defaults write com.foldingtext.FoldingText DefaultFileExtension md
@notverypc
notverypc / renamemacs
Created September 24, 2014 09:29
Rename Macs
sudo scutil --set ComputerName "newname"
sudo scutil --set LocalHostName "newname"
sudo scutil --set HostName "newname"
dscacheutil -flushcache
@notverypc
notverypc / launchdcheck
Last active August 29, 2015 14:07
Launchd Check
launchctl list | grep <name>
launchctl load <path to script>
@notverypc
notverypc / Permissions
Created October 8, 2014 14:53
Permissions..
sudo chown root:wheel <path/to/file>