create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
This guide shows how to set up a PHP and MySQL development environment using OSX's built-in Apache, using Homebrew to install necessary components. With this strategy, you can use different versions of PHP for certain virtual hosts.
VirtualHostX is a convenient way to manage development sites, but not required.
brew update
brew install php56
brew install php56-mcrypt
brew install mysql
| <?php | |
| /** | |
| * @file | |
| * Demo module, Basic Ajax form submit (Ajax framework). | |
| */ | |
| /** | |
| * Implements hook_menu(). | |
| */ |
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
| <?php | |
| /** | |
| * Implements template_preprocess_field(). | |
| */ | |
| function THEME_preprocess_field(&$vars) { | |
| // If the view mode is "full" use <h2> for the field labels. Otherwise, | |
| // assume a teaser or more compact view mode is being displayed, and use <h3>. | |
| $vars['heading'] = ($vars['element']['#view_mode'] == 'full') ? 'h2' : 'h3'; |
| # ----------------------------------------------------------------- | |
| # Minimalistic .gitignore for WordPress | |
| # | |
| # To get this file rub bellow wget command from project root directory | |
| # wget -O .gitignore https://gist.github.com/indieforger/d915d8b430fef748f966/raw | |
| # | |
| # To ignore uncommitted changes in a file that is already tracked, | |
| # use `git update-index --assume-unchanged`. | |
| # | |
| # To stop tracking a file that is currently tracked, |
| <?php | |
| /** | |
| * Users with role | |
| * | |
| * @param $role mixed The name or rid of the role we're wanting users to have | |
| * @param $active_user boolean Only return active accounts? | |
| * | |
| * @return array An array of user objects with the role | |
| */ | |
| function users_with_role($role, $active_user = TRUE) { |
| # Most part of this file is created by https://www.gitignore.io | |
| ### Node ### | |
| # Logs | |
| logs | |
| *.log | |
| # Runtime data | |
| pids | |
| *.pid |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.