@@ -154,199 +154,5 @@ cat /etc/resolv.conf
154154php_value[session.save_handler] = files
155155php_value[session.save_path] = /var/lib/php/session
156156
157- # ---------------------------- OSX SPECIFIC HACKS BELOW ----------------------------
158-
159- # Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
160- defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
161-
162- # Enable subpixel font rendering on non-Apple LCDs"
163- defaults write NSGlobalDomain AppleFontSmoothing -int 2
164-
165- # Enable the 2D Dock"
166- defaults write com.apple.dock no-glass -bool true
167-
168- # Automatically hide and show the Dock
169- # defaults write com.apple.dock autohide -bool true
170- # Make Dock icons of hidden applications translucent
171- defaults write com.apple.dock showhidden -bool true
172-
173- # Enable iTunes track notifications in the Dock
174- defaults write com.apple.dock itunes-notifications -bool true
175-
176- # Disable menu bar transparency
177- defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
178-
179- # Show remaining battery time; hide percentage
180- # defaults write com.apple.menuextra.battery ShowPercent -string "NO"
181- defaults write com.apple.menuextra.battery ShowTime -string " YES"
182-
183- # # Always show scrollbars
184- defaults write NSGlobalDomain AppleShowScrollBars -string " Auto"
185-
186- # Allow quitting Finder via ⌘ + Q; doing so will also hide desktop icons
187- defaults write com.apple.finder QuitMenuItem -bool true
188-
189- # Disable window animations and Get Info animations in Finder
190- defaults write com.apple.finder DisableAllAnimations -bool true
191-
192- # Show all filename extensions in Finder
193- defaults write NSGlobalDomain AppleShowAllExtensions -bool true
194-
195- # Use current directory as default search scope in Finder
196- defaults write com.apple.finder FXDefaultSearchScope -string " SCcf"
197-
198- # Show Path bar in Finder
199- defaults write com.apple.finder ShowPathbar -bool true
200-
201- # Show Status bar in Finder
202- defaults write com.apple.finder ShowStatusBar -bool true
203-
204- # Expand save panel by default
205- defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
206-
207- # Expand print panel by default
208- defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
209-
210- # Disable the “Are you sure you want to open this application?” dialog
211- defaults write com.apple.LaunchServices LSQuarantine -bool false
212-
213- # Disable shadow in screenshots
214- defaults write com.apple.screencapture disable-shadow -bool true
215-
216- # Enable highlight hover effect for the grid view of a stack (Dock)
217- defaults write com.apple.dock mouse-over-hilte-stack -bool true
218-
219- # Enable spring loading for all Dock items
220- defaults write enable-spring-load-actions-on-all-items -bool true
221-
222- # Show indicator lights for open applications in the Dock
223- defaults write com.apple.dock show-process-indicators -bool true
224-
225- # Don’t animate opening applications from the Dock
226- defaults write com.apple.dock launchanim -bool false
227-
228- # Display ASCII control characters using caret notation in standard text views
229- # Try e.g. `cd /tmp; unidecode "\x{0000}" > cc.txt; open -e cc.txt`
230- defaults write NSGlobalDomain NSTextShowsControlCharacters -bool true
231-
232- # Disable press-and-hold for keys in favor of key repeat
233- defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
234-
235- # Set a blazingly fast keyboard repeat rate
236- defaults write NSGlobalDomain KeyRepeat -int 0.02
237-
238- # Set a shorter Delay until key repeat
239- defaults write NSGlobalDomain InitialKeyRepeat -int 12
240-
241- # Disable auto-correct
242- defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
243-
244- # Disable opening and closing window animations
245- defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
246-
247- # Enable AirDrop over Ethernet and on unsupported Macs running Lion
248- defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
249-
250- # Disable disk image verification
251- defaults write com.apple.frameworks.diskimages skip-verify -bool true
252- defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
253- defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
254-
255- # Automatically open a new Finder window when a volume is mounted
256- defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
257- defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
258- defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
259-
260- # Display full POSIX path as Finder window title
261- defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
262-
263- # Increase window resize speed for Cocoa applications
264- defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
265-
266- # Avoid creating .DS_Store files on network volumes
267- defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
268-
269- # Disable the warning when changing a file extension
270- defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
271-
272- # Show item info below desktop icons
273- /usr/libexec/PlistBuddy -c " Set :DesktopViewSettings:IconViewSettings:showItemInfo true" ~ /Library/Preferences/com.apple.finder.plist
274-
275- # Enable snap-to-grid for desktop icons
276- /usr/libexec/PlistBuddy -c " Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~ /Library/Preferences/com.apple.finder.plist
277-
278- # Disable the warning before emptying the Trash
279- defaults write com.apple.finder WarnOnEmptyTrash -bool false
280-
281- # Empty Trash securely by default
282- defaults write com.apple.finder EmptyTrashSecurely -bool true
283-
284- # Require password immediately after sleep or screen saver begins
285- defaults write com.apple.screensaver askForPassword -int 1
286- defaults write com.apple.screensaver askForPasswordDelay -int 0
287-
288- # Enable tap to click (Trackpad)
289- defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
290-
291- # Map bottom right Trackpad corner to right-click
292- defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2
293- defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true
294-
295- # Disable Safari’s thumbnail cache for History and Top Sites
296- defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
297-
298- # Enable Safari’s debug menu
299- defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
300-
301- # Make Safari’s search banners default to Contains instead of Starts With
302- defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
303-
304- # Remove useless icons from Safari’s bookmarks bar
305- defaults write com.apple.Safari ProxiesInBookmarksBar " ()"
306-
307- # Add a context menu item for showing the Web Inspector in web views
308- defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
309-
310- # Only use UTF-8 in Terminal.app
311- defaults write com.apple.terminal StringEncodings -array 4
312-
313- # Disable the Ping sidebar in iTunes
314- defaults write com.apple.iTunes disablePingSidebar -bool true
315-
316- # Disable all the other Ping stuff in iTunes
317- defaults write com.apple.iTunes disablePing -bool true
318-
319- # Make ⌘ + F focus the search input in iTunes
320- defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add " Target Search Field" " @F"
321-
322- # Disable send and reply animations in Mail.app
323- # defaults write com.apple.Mail DisableReplyAnimations -bool true
324- defaults write com.apple.Mail DisableSendAnimations -bool true
325-
326- # Disable Resume system-wide
327- defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
328-
329- # Disable the “reopen windows when logging back in” option
330- # This works, although the checkbox will still appear to be checked.
331- defaults write com.apple.loginwindow TALLogoutSavesState -bool false
332- defaults write com.apple.loginwindow LoginwindowLaunchesRelaunchApps -bool false
333-
334- # Enable Dashboard dev mode (allows keeping widgets on the desktop)
335- defaults write com.apple.dashboard devmode -bool true
336-
337- # Reset Launchpad
338- [ -e ~ /Library/Application\ Support/Dock/* .db ] && rm ~ /Library/Application\ Support/Dock/* .db
339-
340- # Show the ~/Library folder
341- chflags nohidden ~ /Library
342-
343- # Disable local Time Machine backups
344- hash tmutil & > /dev/null && sudo tmutil disablelocal
345-
346- # Remove Dropbox’s green checkmark icons in Finder
347- file=/Applications/Dropbox.app/Contents/Resources/check.icns
348- [ -e " $file " ] && mv -f " $file " " $file .bak"
349- unset file
350-
351- # Kill affected applications
352- for app in Safari Finder Dock Mail SystemUIServer; do killall " $app " > /dev/null 2>&1 ; done
157+ # Convert PNG image sequence (image-000.png) to H.264 using ffmpeg
158+ ffmpeg -i ./image-%03d.png -f mp4 -vcodec libx264 -pix_fmt yuv420p output.mp4
0 commit comments