Add php apt repository
$ sudo add-apt-repository -y ppa:ondrej/php
Update repository index
| " To get a list of Actions run `:actionlist ` | |
| " let mapleader = ',' | |
| " let mapleader = " " | |
| let mapleader = "\<SPACE>" | |
| set ignorecase smartcase | |
| set NERDTree | |
| set hlsearch | |
| set showmode | |
| set scrolloff=5 |
| #!/bin/sh | |
| sed -i.default "s/^zend_extension=/;zend_extension=/" /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini | |
| launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php71.plist | |
| launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php71.plist | |
| sudo brew services restart php71 | |
| echo "xdebug disabled" |
| # Define a function that switches iterm profile | |
| iterm2_profile() { echo -e "\033]50;SetProfile=$1\a"; } | |
| # Change profile by $HOUR | |
| # You'll need to change name of profiles to Light and Dark | |
| HOUR=`date +"%H"` | |
| if [ $HOUR -gt 6 ] && [ $HOUR -lt 18 ]; | |
| then iterm2_profile Light; | |
| else iterm2_profile Dark; | |
| fi |
| --- Actions --- | |
| $Copy <M-C> | |
| $Cut <M-X> <S-Del> | |
| $Delete <Del> <BS> <M-BS> | |
| $LRU | |
| $Paste <M-V> | |
| $Redo <M-S-Z> <A-S-BS> | |
| $SearchWeb <A-S-G> | |
| $SelectAll <M-A> | |
| $Undo <M-Z> |
| <?php | |
| namespace PHPSTORM_META { | |
| /** | |
| * PhpStorm Meta file, to provide autocomplete information for PhpStorm | |
| * Generated on 2017-09-28. | |
| * | |
| * @author Barry vd. Heuvel <barryvdh@gmail.com> | |
| * @see https://github.com/barryvdh/laravel-ide-helper | |
| */ |
This Gist is a collection of configuration files that can be used to easily setup a Homebrew-based LEMP stack on Mac OS X.
Files in this repository are numbered and named for ordering purposes only. At the top of each file is a section of metadata that denote what component the file belongs to and the default name & location of the file. Feel free to implement it however you want.
Note: some configuration files have hard-coded paths to my user directory -- fix it for your setup
Install Package Control for easy package management.
Ctrl+`
| #!/usr/bin/env bash | |
| echo ">>> Starting Install Script" | |
| # Update | |
| sudo apt-get update | |
| # Install MySQL without prompt | |
| sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
| sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' |