Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Clean Install – OS X 10.11 El Capitan

#Mac OS X

Mensch coding font

Apps

Webkit, Chrome, Firefox, iTerm, Transmit, Coda, Sublime Text, Sequel Pro, 1Password, LiveReload, LiveReload Extensions

#Xcode Command Line Tools

Xcode > Preferences > Downloads > Command Line Tools

#Shell

Switch to z-shell

curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

#Homebrew

ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
brew install git ack wget curl redis memcached libmemcached colordiff imagemagick icoutils

Update .zshrc

wget https://raw.github.com/gist/2764210/94ad3b85c8f9d61ed08d6e7f7b65e98277a07c1a/.zshrc -O ~/.zshrc

OS X Preferences

#Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

#Disable webkit homepage
defaults write org.webkit.nightly.WebKit StartPageDisabled -bool true

#Use current directory as default search scope in Finder
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"

#Show Path bar in Finder
defaults write com.apple.finder ShowPathbar -bool true

#Show Status bar in Finder
defaults write com.apple.finder ShowStatusBar -bool true

#Show indicator lights for open applications in the Dock
defaults write com.apple.dock show-process-indicators -bool true

#Enable AirDrop over Ethernet and on unsupported Macs running Lion
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true

#Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 0.02

#Set a shorter Delay until key repeat
defaults write NSGlobalDomain InitialKeyRepeat -int 12

#Disable disk image verification
defaults write com.apple.frameworks.diskimages skip-verify -bool true &&
defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true &&
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true

#Disable Safari’s thumbnail cache for History and Top Sites
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2

#Enable Safari’s debug menu
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true

#Disable the Ping sidebar in iTunes
defaults write com.apple.iTunes disablePingSidebar -bool true

#Add a context menu item for showing the Web Inspector in web views
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true

#Show the ~/Library folder
chflags nohidden ~/Library

#Disable ping dropdowns
defaults write com.apple.iTunes hide-ping-dropdown true

Set hostname

sudo scutil --set HostName Work

#Git

Setup Github

ssh-keygen -t rsa -C "saetia@gmail.com"

#copy ssh key to github.com
subl ~/.ssh/id_rsa.pub

#test connection
ssh -T git@github.com

#set git config values
git config --global user.name "Joel Glovacki"
git config --global user.email "saetia@gmail.com"
git config --global github.user saetia
git config --global github.token your_token_here

git config --global core.editor "subl -w"
git config --global color.ui true

#Coda

Install markdown support

git clone https://github.com/bobthecow/Markdown.mode.git ~/Library/Application\ Support/Coda\ 2/modes/Markdown.mode

#Sublime Text

Add Sublime Text CLI

sudo mkdir -p "/usr/local/bin/" && ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" "/usr/local/bin/subl"

Install Package Control

import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'

Install Soda Theme

git clone git://github.com/buymeasoda/soda-theme.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Theme\ -\ Soda

Install Tomorrow Theme

git clone git://github.com/chriskempson/textmate-tomorrow-theme.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Color\ Scheme\ -\ Tomorrow

Settings

{
	"close_windows_when_empty": true,
	"color_scheme": "Packages/Color Scheme - Tomorrow/Tomorrow-Night-Eighties.tmTheme",
	"draw_indent_guides": false,
	"font_face": "Mensch",
	"font_size": 18,
	"highlight_modified_tabs": true,
	"show_tab_close_buttons": false,
	"tab_size": 2,
	"spell_check": false,
	"theme": "Soda Light.sublime-theme",
	"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
}

Key Bindings

[
	{ "keys": ["super+b"], "command": "expand_selection", "args": {"to": "brackets"} },
	{ "keys": ["super+f"], "command": "show_panel", "args": {"panel": "replace"} },
	{ "keys": ["super+alt+f"], "command": "show_panel", "args": {"panel": "find"} }
]

Snippets

git clone git@github.com:bytestudios/sublime-snippets.git "/Users/Joel/Library/Application Support/Sublime Text 2/Packages/Byte"

#Server

Install dnsmasq

brew install dnsmasq

Add DNS Domains

mkdir -p /usr/local/etc/ &&
echo "address=/build/127.0.0.1" >> /usr/local/etc/dnsmasq.conf && 
echo "address=/stage/192.168.10.200" >> /usr/local/etc/dnsmasq.conf && 
echo "listen-address=127.0.0.1" >> /usr/local/etc/dnsmasq.conf

Enable dnsmasq daemon

sudo cp "/usr/local/Cellar/dnsmasq/2.57/homebrew.mxcl.dnsmasq.plist" "/Library/LaunchDaemons" &&
sudo launchctl load -w "/Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist"

Add Localhost to /etc/resolver

sudo -s
sudo mkdir -p /etc/resolver
sudo echo 'nameserver 127.0.0.1' > /etc/resolver/build

#flush cache
dscacheutil -flushcache

#ensure it works
scutil --dns

Enable virtual hosts

subl "/etc/apache2/users/$USER.conf"
DocumentRoot "/Users/Joel/Sites/"
NameVirtualHost *:80
<Directory "/Users/Joel/Sites/">
    Options Indexes MultiViews FollowSymLinks Includes
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
<VirtualHost *:80>
    UseCanonicalName off
    VirtualDocumentRoot /Users/Joel/Sites/%-2+/httpdocs
</VirtualHost>
#open apache config
subl "/etc/apache2/httpd.conf"

Configure httpd.conf

ServerRoot "/usr"

Listen 80

LoadModule authn_file_module libexec/apache2/mod_authn_file.so
LoadModule authn_dbm_module libexec/apache2/mod_authn_dbm.so
LoadModule authn_anon_module libexec/apache2/mod_authn_anon.so
LoadModule authn_dbd_module libexec/apache2/mod_authn_dbd.so
LoadModule authn_default_module libexec/apache2/mod_authn_default.so
LoadModule authz_host_module libexec/apache2/mod_authz_host.so
LoadModule authz_groupfile_module libexec/apache2/mod_authz_groupfile.so
LoadModule authz_user_module libexec/apache2/mod_authz_user.so
LoadModule authz_dbm_module libexec/apache2/mod_authz_dbm.so
LoadModule authz_owner_module libexec/apache2/mod_authz_owner.so
LoadModule authz_default_module libexec/apache2/mod_authz_default.so
LoadModule auth_basic_module libexec/apache2/mod_auth_basic.so
LoadModule auth_digest_module libexec/apache2/mod_auth_digest.so
LoadModule cache_module libexec/apache2/mod_cache.so
LoadModule disk_cache_module libexec/apache2/mod_disk_cache.so
LoadModule mem_cache_module libexec/apache2/mod_mem_cache.so
LoadModule dbd_module libexec/apache2/mod_dbd.so
LoadModule dumpio_module libexec/apache2/mod_dumpio.so
LoadModule reqtimeout_module libexec/apache2/mod_reqtimeout.so
LoadModule ext_filter_module libexec/apache2/mod_ext_filter.so
LoadModule include_module libexec/apache2/mod_include.so
LoadModule filter_module libexec/apache2/mod_filter.so
LoadModule substitute_module libexec/apache2/mod_substitute.so
LoadModule deflate_module libexec/apache2/mod_deflate.so
LoadModule log_config_module libexec/apache2/mod_log_config.so
LoadModule log_forensic_module libexec/apache2/mod_log_forensic.so
LoadModule logio_module libexec/apache2/mod_logio.so
LoadModule env_module libexec/apache2/mod_env.so
LoadModule mime_magic_module libexec/apache2/mod_mime_magic.so
LoadModule cern_meta_module libexec/apache2/mod_cern_meta.so
LoadModule expires_module libexec/apache2/mod_expires.so
LoadModule headers_module libexec/apache2/mod_headers.so
LoadModule ident_module libexec/apache2/mod_ident.so
LoadModule usertrack_module libexec/apache2/mod_usertrack.so
#LoadModule unique_id_module libexec/apache2/mod_unique_id.so
LoadModule setenvif_module libexec/apache2/mod_setenvif.so
LoadModule version_module libexec/apache2/mod_version.so
LoadModule proxy_module libexec/apache2/mod_proxy.so
LoadModule proxy_connect_module libexec/apache2/mod_proxy_connect.so
LoadModule proxy_ftp_module libexec/apache2/mod_proxy_ftp.so
LoadModule proxy_http_module libexec/apache2/mod_proxy_http.so
LoadModule proxy_scgi_module libexec/apache2/mod_proxy_scgi.so
LoadModule proxy_ajp_module libexec/apache2/mod_proxy_ajp.so
LoadModule proxy_balancer_module libexec/apache2/mod_proxy_balancer.so
LoadModule ssl_module libexec/apache2/mod_ssl.so
LoadModule mime_module libexec/apache2/mod_mime.so
LoadModule dav_module libexec/apache2/mod_dav.so
LoadModule status_module libexec/apache2/mod_status.so
LoadModule autoindex_module libexec/apache2/mod_autoindex.so
LoadModule asis_module libexec/apache2/mod_asis.so
LoadModule info_module libexec/apache2/mod_info.so
LoadModule cgi_module libexec/apache2/mod_cgi.so
LoadModule dav_fs_module libexec/apache2/mod_dav_fs.so
LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
LoadModule negotiation_module libexec/apache2/mod_negotiation.so
LoadModule dir_module libexec/apache2/mod_dir.so
LoadModule imagemap_module libexec/apache2/mod_imagemap.so
LoadModule actions_module libexec/apache2/mod_actions.so
LoadModule speling_module libexec/apache2/mod_speling.so
LoadModule userdir_module libexec/apache2/mod_userdir.so
LoadModule alias_module libexec/apache2/mod_alias.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
#LoadModule perl_module libexec/apache2/mod_perl.so
LoadModule php5_module libexec/apache2/libphp5.so
#LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>

User _www
Group _www

</IfModule>
</IfModule>

ServerAdmin saetia@gmail.com

ServerName localhost

DocumentRoot "/Library/WebServer/Documents"

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

<Directory "/Library/WebServer/Documents">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>

<FilesMatch "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

<Files "rsrc">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

<DirectoryMatch ".*\.\.namedfork">
    Order allow,deny
    Deny from all
    Satisfy All
</DirectoryMatch>

ErrorLog "/private/var/log/apache2/error_log"

LogLevel warn

<IfModule log_config_module>

    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    CustomLog "/private/var/log/apache2/access_log" common

</IfModule>

<IfModule alias_module>
    ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Library/WebServer/CGI-Executables/$1"
</IfModule>

<IfModule cgid_module>
</IfModule>

<Directory "/Library/WebServer/CGI-Executables">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

DefaultType text/plain

<IfModule mime_module>

    TypesConfig /private/etc/apache2/mime.types

    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

</IfModule>

TraceEnable off

Include /private/etc/apache2/extra/httpd-mpm.conf
Include /private/etc/apache2/extra/httpd-autoindex.conf
Include /private/etc/apache2/extra/httpd-languages.conf
Include /private/etc/apache2/extra/httpd-userdir.conf
Include /private/etc/apache2/extra/httpd-manual.conf

<IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
</IfModule>

<IfModule php5_module>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    <IfModule dir_module>
        DirectoryIndex index.html index.php
    </IfModule>
</IfModule>

Include /private/etc/apache2/other/*.conf

Enable centOS style /var/www/vhosts

sudo mkdir -p /var/www/ &&
sudo ln -s ~/Sites /var/www/vhosts

XDebug

brew install https://github.com/josegonzalez/homebrew-php/raw/master/Formula/xdebug-php.rb

MySQL

brew install mysql

MySQL Settings

#setup daemon
mkdir -p ~/Library/LaunchAgents && cp /usr/local/Cellar/mysql/5.5.20/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/ && launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist


#Set up databases to run as your user account
unset TMPDIR && mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

#start mysql
mysql.server start

#secure mysql
/usr/local/Cellar/mysql/5.5.20/bin/mysql_secure_installation

Configure php.ini

#create php.ini
sudo touch /etc/php.ini && subl /etc/php.ini
[PHP]

engine = On
short_open_tag = On
asp_tags = Off
precision = 14
y2k_compliance = On
output_buffering = 4096
;output_handler =
zlib.output_compression = On
zlib.output_compression_level = -1
zlib.output_handler =
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 17
allow_call_time_pass_reference = Off
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 30
max_input_time = 60
memory_limit = 128M
error_reporting = E_ALL | E_STRICT
display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = On
;error_prepend_string = "<span style='color: #ff0000'>"
;error_append_string = "</span>"
;error_log = php_errors.log
;error_log = syslog
variables_order = "GPCS"
request_order = "GP"
register_globals = Off
register_long_arrays = Off
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
default_charset = "utf-8"
include_path = ".:/usr/lib/php/pear"
doc_root =
user_dir =
extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20090626"
enable_dl = Off
file_uploads = On
upload_max_filesize = 2M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
zend_extension="/usr/local/Cellar/xdebug-php/2.1.3/xdebug.so"

[Date]

date.timezone = "UTC"

[filter]

[iconv]

[intl]

[sqlite]

[sqlite3]

[Pcre]

[Pdo]

[Pdo_mysql]

pdo_mysql.cache_size = 2000
pdo_mysql.default_socket=/var/mysql/mysql.sock

[Phar]

[Syslog]

define_syslog_variables  = Off

[mail function]

SMTP = localhost
smtp_port = 25
mail.add_x_header = On

[SQL]

sql.safe_mode = Off

[ODBC]

odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1

[Interbase]

ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%S"

[MySQL]

mysql.allow_local_infile = On
mysql.allow_persistent = On
mysql.cache_size = 2000
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port = 3306
mysql.default_socket = /var/mysql/mysql.sock
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off

[MySQLi]

mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.cache_size = 2000
mysqli.default_port = 3306
mysqli.default_socket = /var/mysql/mysql.sock
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off

[mysqlnd]

mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off

[OCI8]

[PostgresSQL]

pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0

[Sybase-CT]

sybct.allow_persistent = On
sybct.max_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10

[bcmath]

bcmath.scale = 0

[browscap]

[Session]

session.save_handler = files
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = Off
session.bug_compat_warn = Off
session.referer_check =
session.entropy_length = 0
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]

mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
mssql.secure_connection = Off

[Assertion]

[COM]

[mbstring]

[gd]

[exif]

[Tidy]

tidy.clean_output = Off

[soap]

soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5

[sysvshm]

[ldap]

ldap.max_links = -1

[mcrypt]

[dba]

[xdebug]
xdebug.idekey="macgdbp"
xdebug.remote_enable=1 
xdebug.remote_handler=dbgp 
xdebug.remote_mode=req 
xdebug.remote_host=127.0.0.1 
xdebug.remote_port=9000 
xdebug.profiler_append=1 
xdebug.profiler_enable=1
xdebug.profiler_enable_trigger=1 
xdebug.profiler_output_name = cachegrind.out.%s 
xdebug.profiler_output_dir=/tmp/

Restart apache

sudo apachectl graceful

PHPUnit

cd /usr/lib/php &&
sudo php install-pear-nozlib.phar &&
sudo pear channel-update pear.php.net &&
sudo pecl channel-update pecl.php.net &&
sudo pear upgrade-all &&
sudo pear channel-discover pear.phpunit.de  &&
sudo pear channel-discover components.ez.no &&
sudo pear channel-discover pear.symfony-project.com &&
sudo pear install phpunit/PHPUnit &&
sudo pear install phpunit/phpcpd &&
sudo pear install PHP_CodeSniffer

Guard

gem install growl guard guard-phpunit

aww yeah

@yurigoytacaz

This comment has been minimized.

Copy link

@yurigoytacaz yurigoytacaz commented Sep 29, 2012

if I can make a good suggestion, that would be:

show absolute path in finder's title bar.
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

(=

@SlexAxton

This comment has been minimized.

Copy link

@SlexAxton SlexAxton commented Jul 11, 2013

Any trickery to get libmemcached to install now on Mavericks? Errors on fatal error: 'tr1/cinttypes' file not found these days. Brew is not fixing Mavericks related issues yet, though: Homebrew/legacy-homebrew#20635

@saetia

This comment has been minimized.

Copy link
Owner Author

@saetia saetia commented Jul 27, 2013

yikes, sorry @SlexAxton i have no tips for getting libmemcached installed with homebrew. I haven't tried doing anything on this list with a clean install of 10.9 😕

@henrik242

This comment has been minimized.

Copy link

@henrik242 henrik242 commented Oct 24, 2013

You can replace the XCode paragraph with xcode-select --install

@eduardomart

This comment has been minimized.

Copy link

@eduardomart eduardomart commented Dec 12, 2013

Awesome list!

Do you know if there a way to increase the number of "Top Sites" in Safari and force only use of Favicons instead of previews?

@kimmobrunfeldt

This comment has been minimized.

Copy link

@kimmobrunfeldt kimmobrunfeldt commented Jun 10, 2014

I gathered my own gist from various sources such as your gist: https://gist.github.com/kimmobrunfeldt/350f4898d1b82cf10bce

@nemfoz

This comment has been minimized.

Copy link

@nemfoz nemfoz commented Jan 6, 2015

Your Homebrew installation is outdated.
The new installation paths is

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

@sabisama

This comment has been minimized.

Copy link

@sabisama sabisama commented Jan 9, 2015

Hi I am trying to run the following command in terminal using OS X 10.10 (Yosemite)
defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE
killall Finder

When Finder reopens it there is no change i.e. I cannot see the path instead i see the icon path view

@saetia

This comment has been minimized.

Copy link
Owner Author

@saetia saetia commented Jan 19, 2015

@sabisama that flag just adds the full path instead of only the current directory. in this directory you would normally see it titled "Sites".
https://dl.dropboxusercontent.com/s/3dt248924qp49r5/Screen%20Shot%202015-01-19%20at%2011.56.09%20AM.png?dl=0

@anthonybrown

This comment has been minimized.

Copy link

@anthonybrown anthonybrown commented Feb 1, 2015

Great gist

@anthonybrown

This comment has been minimized.

Copy link

@anthonybrown anthonybrown commented Feb 6, 2015

you are missing a part for PHP brew tap homebrew/homebrew-php

@bgeek

This comment has been minimized.

Copy link

@bgeek bgeek commented May 4, 2015

Does the line defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false still work on Yosemite? It doesn't seem to stop fullscreen animations on my macbook. Stumbled across this while looking for a fix to stop the animation.

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented May 8, 2015

Did some of the "default write" commands work for you? I ran them and did not see any new changes. Had to run as the user that was logged in ... as not sudo. But I can't for the life of me set the hot corners using..
defaults write com.apple.dock.wvous-bl_codecorner -int 5
defaults write com.apple.dock.wvous-bl_modifier -int 0

@howtosayhello

This comment has been minimized.

Copy link

@howtosayhello howtosayhello commented Jun 4, 2015

Great thanks!

@saetia

This comment has been minimized.

Copy link
Owner Author

@saetia saetia commented Jun 10, 2015

@br0g those will work when you logout or restart

@galxy25

This comment has been minimized.

Copy link

@galxy25 galxy25 commented Jul 11, 2015

Have not been able to install node from homebrew or from source after updating to the public-beta . For home-brew I get:

 /usr/local/Cellar/pkg-config/0.28: 10 files, 604K, built in 74 seconds
==> Installing node
==> Downloading https://nodejs.org/dist/v0.12.7/node-v0.12.7.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/node/0.12.7 --without-npm --without-ssl2 --without-ssl3
==> make install
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [/private/tmp/node20150710-15730-d81eow/node-v0.12.7/out/Release/openssl-cli] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [node] Error 2

READ THIS: https://git.io/brew-troubleshooting

These open issues may also help:
Adding formulas for ndenv and node-build. Inspired by rbenv and ruby-build formulas. (https://github.com/Homebrew/homebrew/pull/34994)
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
@molovo

This comment has been minimized.

Copy link

@molovo molovo commented Jul 11, 2015

@galxy25 I ran into the same issue with 10.11. Needed to download and install Xcode 7 beta, and select the command line tools for that version in Xcode > Preferences > Locations. After doing that node compiled with homebrew without any issues.

@ahmadawais

This comment has been minimized.

Copy link

@ahmadawais ahmadawais commented Sep 23, 2015

A video tutoiral might come in handy, what's say? @saetia

@abecko

This comment has been minimized.

Copy link

@abecko abecko commented Oct 1, 2015

Hi I'm trying to install PEAR and PECL on OS X 10.11, and I have problem.

abe-mbp% cd /usr/lib/php
abe-mbp% sudo php install-pear-nozlib.phar
Password:
[PEAR] Archive_Tar: failed to mkdir /usr/lib/php/pear/Archive
[PEAR] Console_Getopt: failed to mkdir /usr/lib/php/pear/Console
warning: pear/PEAR requires package "pear/Archive_Tar" (version >= 1.3.7)
warning: pear/PEAR requires package "pear/Structures_Graph" (recommended version 1.0.4)
warning: pear/PEAR requires package "pear/Console_Getopt" (recommended version 1.2.3)
warning: pear/PEAR requires package "pear/XML_Util" (recommended version 1.2.1)
[PEAR] PEAR: failed to mkdir /usr/lib/php/pear/OS
[PEAR] Structures_Graph: failed to mkdir /usr/lib/php/pear/docs/Structures_Graph/docs/html/media
[PEAR] XML_Util: failed to mkdir /usr/lib/php/pear/docs/XML_Util/examples
abe-mbp% pear
zsh: command not found: pear

Can anyone help?

@micti

This comment has been minimized.

Copy link

@micti micti commented Oct 2, 2015

@abecko
beacause of "Rootless" or "System Integrity Protection" feature.
Third party app can't not modify something even if you use sudo command (Like sudo mkdir usr/lib....)
More info http://apple.stackexchange.com/questions/193368/what-is-the-rootless-feature-in-el-capitan-really

@ghlecl

This comment has been minimized.

Copy link

@ghlecl ghlecl commented Oct 3, 2015

Sorry to bother, but can someone confirm that the

defaults write com.apple.finder QLEnableTextSelection -bool TRUE

command still works. I have done a fresh install of El Capitan and I have been trying to make text selections in QuickLook work, but I seem to be unable to. What happens when I click to make a selection is always that the windows is "selected" and moves around with the mouse.

@grokcodile

This comment has been minimized.

Copy link

@grokcodile grokcodile commented Oct 3, 2015

Thanks for this gist!
It never occurred to me to configure Mac OS setting like this after a clean install.
I was completely unaware of about half of these, and really look forward to implementing most of them.
This is going to save me so much time, and make my general computing experience much more comfortable.
Again... I just wanted to express my appreciation for your work and effort to create and maintain this gist.
👍

@ManUtopiK

This comment has been minimized.

Copy link

@ManUtopiK ManUtopiK commented Oct 4, 2015

@ghlecl I got the same issue. I can't select text...
I also tested with:
defaults write com.apple.finder QLEnableTextSelection -boolean YES;

@abecko

This comment has been minimized.

Copy link

@abecko abecko commented Oct 4, 2015

@micti thx for info!

@giampiero7

This comment has been minimized.

Copy link

@giampiero7 giampiero7 commented Oct 5, 2015

@ghlecl @ManUtopiK same problem here with QLEnableTextSelection

@hanksudo

This comment has been minimized.

Copy link

@hanksudo hanksudo commented Oct 6, 2015

QLEnableTextSelection doesn't work for me, too.

@EmptyJay

This comment has been minimized.

Copy link

@EmptyJay EmptyJay commented Oct 6, 2015

QLEnableTextSelection seems to have gone away in El Cap. Gah!

@elalemanyo

This comment has been minimized.

Copy link

@elalemanyo elalemanyo commented Oct 16, 2015

QLEnableTextSelection doesn't work for me, too. Any fix?

Great Gist!
Thanks

@whimsyniche

This comment has been minimized.

Copy link

@whimsyniche whimsyniche commented Oct 21, 2015

A great addition to this and I recommend you check out http://pow.cx/ and http://xip.io/

@n0ts

This comment has been minimized.

Copy link

@n0ts n0ts commented Oct 26, 2015

In my El Cap,
defaults write com.apple.dashboard enabled-state 2
is
defaults write com.apple.dashboard dashboard-enabled-state 2

@andrisco

This comment has been minimized.

Copy link

@andrisco andrisco commented Oct 28, 2015

I hate setting up my local machine. I typically develop right on my servers (I know it's a bad practice). But here's my question...

I want to install the bare minimums for developing a wordpress site on my local machine using Nginx, MySQL, PHP... Which packages should I install?

Thanks!

@vigo

This comment has been minimized.

Copy link

@vigo vigo commented Oct 28, 2015

I guess Apple killded QLEnableTextSelection feature in EL CAP.

@tucq88

This comment has been minimized.

Copy link

@tucq88 tucq88 commented Nov 4, 2015

I'm using El Captain 10.11.1 and QLEnableTextSelection doesn't work as well. I can't even find that setting. It seems like Apple has removed that or replaced with something else. Damn.

@kmassada

This comment has been minimized.

Copy link

@kmassada kmassada commented Nov 7, 2015

fast way to configure example.com.build

https://gist.github.com/kmassada/1ad1b0e1742139b8f3d5

@augustoms

This comment has been minimized.

Copy link

@augustoms augustoms commented Nov 9, 2015

Hi guys,
I found this useful (but not confirmed) comment that explain the QL QLEnableTextSelection trick:

As much as I find this useful, this presents a bug which I find more infuriating than having this convenience.
The bug being the Quick Look white/blank image/snapback bug.
What happens is when viewing images via QL and scrolling through them with your arrow keys, and you move back one image, that image may not display. This bug has been around for a while now. The only fix for this is to disable the quick look text selection.

https://apple.stackexchange.com/questions/128825/quicklook-blanks-when-d...
https://discussions.apple.com/thread/6018924?start=0&tstart=0

It also explain the annoying bug that hides she QL images preview, when moving back to the previous image.
Maybe Apple fixed the bug

source: http://www.imore.com/how-enable-text-selection-os-x-quick-look#comment-653144

@lsloan

This comment has been minimized.

Copy link

@lsloan lsloan commented Nov 13, 2015

The references cited in the last comment doesn't explain the QLEnableTextSelection feature. If that feature interferes with other Quick Look features, then they might explain why that feature no longer works.

@eheiser

This comment has been minimized.

Copy link

@eheiser eheiser commented Nov 18, 2015

If I do a clean install and the use migration assistant to copy over my data and apps, does this lose all the node, npm and homebrew junk? My current install is seriously borked and I'd like to start from scratch.

@Mipme

This comment has been minimized.

Copy link

@Mipme Mipme commented Dec 12, 2015

usually all the lowlevel apps and config gets lost – (Apache, PHP, etc.). But it renames some of the files to .old. Yes, it's always a big effort to upgrade a dev machine!

@Mipme

This comment has been minimized.

Copy link

@Mipme Mipme commented Dec 12, 2015

Some of the commands described in this gist are not working under el capitan no more – because of the new "System Integrity Protection". One guide how to disable it, is here: http://www.macworld.com/article/2986118/security/how-to-modify-system-integrity-protection-in-el-capitan.html

@diimdeep

This comment has been minimized.

Copy link

@diimdeep diimdeep commented Dec 13, 2015

@jasonsworld

This comment has been minimized.

Copy link

@jasonsworld jasonsworld commented Dec 27, 2015

@abecko I have met this problem, do you slove this problem?? turn SIP off ??

@abecko

This comment has been minimized.

Copy link

@abecko abecko commented Dec 30, 2015

@jasonsworld No, i don't have a solution. I wan't disable SIP :/

@reecefowell

This comment has been minimized.

Copy link

@reecefowell reecefowell commented Dec 30, 2015

Converted this into an Ansible build https://github.com/reecefowell/ansible-mac-provision

@ryderr

This comment has been minimized.

Copy link

@ryderr ryderr commented Jan 8, 2016

thanks for this.

@alfista-sk

This comment has been minimized.

Copy link

@alfista-sk alfista-sk commented Feb 2, 2016

Hi,
can you help me with installing mcrypt and smbclient php extensions?
I have follow all instruction to install it and done it correctly, but after restart I don't see there this two extension. I have installed others also and this I have running in php.

Thanks.

@chromuh

This comment has been minimized.

Copy link

@chromuh chromuh commented Feb 6, 2016

ayeeeeee

@gxgani

This comment has been minimized.

Copy link

@gxgani gxgani commented Mar 10, 2016

Suggestion: Disable Accented Character menu

defaults write -g ApplePressAndHoldEnabled -bool false

@craigiswayne

This comment has been minimized.

Copy link

@craigiswayne craigiswayne commented Apr 28, 2016

This helped alot! Thank you.

@somecallmetim

This comment has been minimized.

Copy link

@somecallmetim somecallmetim commented Jan 27, 2017

@abecko @jasonsworld Might be too little, too late, but found a solution to the

warning: pear/PEAR requires package "pear/Archive_Tar"

problem. Seems to have gotten things installed satisfactorily.

sudo php /usr/lib/php/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin

here

http://stackoverflow.com/questions/32893056/installing-pecl-and-pear-on-os-x-10-11-el-capitan-or-macos-10-12-sierra

if nothing else, maybe it'll help someone else who comes bumbling around these parts. :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment