Skip to content

Instantly share code, notes, and snippets.

@oleksandr-diudiun
oleksandr-diudiun / os-x-rebuild-php-with-psql.sh
Created November 12, 2014 10:36
OS X rebuild php from brew with postgresql
brew reinstall php56 --with-pgsql
@oleksandr-diudiun
oleksandr-diudiun / install-npm-db-migrate-with-pqsql.sh
Last active August 29, 2015 14:09
Install npm db-migrate with postgres
npm install db-migrate -g
npm install pg -g
npm install async -g
# For each project:
cd ~/myproject-N/build
npm install db-migrate
@oleksandr-diudiun
oleksandr-diudiun / grunt-upload
Last active August 29, 2015 14:09
OS X brew install nodejs and install modules for build
# grunt upload
# — production (dev): master
# — tags: noTag, Patch, Minor, Major
# — password:
# Configurations
# build/configs
# - master
# - release
# - dev
brew install redis
# To have launchd start redis at login
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
# Then to load redis now
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
# Add support to PHP
brew install php56-redis
brew install rabbitmq
# To have launchd start rabbitmq at login
ln -sfv /usr/local/opt/rabbitmq/*.plist ~/Library/LaunchAgents
# Then to load rabbitmq now
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.rabbitmq.plist
# Add support to PHP can be installed as: brew install php56-amqp
# But for best practice use composer lib: "videlalvaro/php-amqplib": "@stable"
@oleksandr-diudiun
oleksandr-diudiun / Node + npm
Last active December 29, 2015 13:16
OS X Yosemite Setup
# Install Node
$ brew install node
$ npm install
$ npm install -g async
$ npm install -g pg
$ npm install -g db-migrate
$ npm install -g grunt
$ npm install -g gulp

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

{
"codeintel_enabled_languages":
[
"PHP"
],
"codeintel_live_enabled_languages":
[
"PHP"
],
// Install plugins:
// SublimeLinter
// SublimeLinter-php
// PHP must be from brew
{
"user": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
alias ls='ls $LS_OPTIONS -hA'
alias ll='ls $LS_OPTIONS -lAh'
alias l='ls $LS_OPTIONS -lAh'
alias cd..="cd .."
alias c="clear"
alias e="exit"
alias ..="cd .."
alias .="open ."
alias mkdir='mkdir -pv'
alias now='date +"%d-%m-%Y %T"'