Skip to content

Instantly share code, notes, and snippets.

@obense
Last active January 3, 2018 15:02
Show Gist options
  • Save obense/fcbd1de94385e2eb61546de6bdc23964 to your computer and use it in GitHub Desktop.
Save obense/fcbd1de94385e2eb61546de6bdc23964 to your computer and use it in GitHub Desktop.
MacOS High Sierra install

brew

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

fish

brew install fish

Add fish to potential default shells

which fish | sudo tee -a /etc/shells

Make fish as default shell

chsh -s /usr/local/bin/fish

Optional

curl -L https://get.oh-my.fish | fish

Download and install "Solarized Dark" for iterm2 from http://ethanschoonover.com/solarized

Global utils

brew install wget git ack fzf redis coreutils

Trouble with fzf fish key binding:

/usr/local/opt/fzf/install

Try to replace ~/.config/fish/functions/fish_user_key_bindings.fish content by :

function fish_user_key_bindings
  fzf_key_bindings
end

postgres

brew install postgresql
brew services start postgresql
createdb <mydb>

Then

psql <mydb>

And \du to list users

disable mac php (if you need to install a php5.x), not required instead

sudo apachectl stop
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null

php

brew tap homebrew/homebrew-php
brew install php56 --with-postgresql --without-mysql --with-httpd
brew install php56-memcached php56-http php56-oauth php56-ssh2 php56-xdebug php56-intl php56-uploadprogress php56-xhprof php56-http  php56-yaml php56-mcrypt php56-redis php56-apcu

Because of https://github.com/Homebrew/homebrew-php/issues/3919, imagick should be recompiled :

brew reinstall php56-imagick --build-from-source

In /usr/local/etc/httpd/httpd.conf, replace :

LoadModule php5_module /usr/local/Cellar/php56/5.6.32_8/libexec/apache2/libphp5.so

by :

LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so

And Listen 8080 by Listen 80

And add :

<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>

others

brew install composer
brew install node

clean

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