most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| <?php | |
| /** | |
| * mb_str_pad | |
| * | |
| * @param string $input | |
| * @param int $pad_length | |
| * @param string $pad_string | |
| * @param int $pad_type | |
| * @return string |
| ./configure \ | |
| --prefix=/opt/local/php/5.4 \ | |
| --bindir=/opt/local/bin \ | |
| --with-config-file-path=/opt/local/php/5.4/etc \ | |
| --with-config-file-scan-dir=/opt/local/php/5.4/var/db \ | |
| --mandir=/opt/local/php/5.4/share/man \ | |
| --infodir=/opt/local/php/5.4/share/info \ | |
| --program-suffix=-5.4 \ | |
| --with-apxs2=/opt/local/apache2/bin/apxs \ | |
| --enable-pdo \ |
| # | |
| # Dont forget to call ~/.bashrc in your ~/.profile script | |
| # | |
| export CLICOLOR=1 | |
| alias ll='ls -l' | |
| alias la='ls -A' | |
| alias vi='vim' | |
| alias l='ls -CF' | |
| <?php | |
| /** | |
| * Router script for running eZ Publish CMS on top of PHP 5.4 built-in webserver | |
| * WARNING !!! Use it for DEVELOPMENT purpose ONLY !!! | |
| * This script is provided as is, use it at your own risk ! | |
| * | |
| * @copyright Copyright (C) 2011 Jérôme Vieilledent. All rights reserved. | |
| * @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2 | |
| */ |
##Given Apache 2 and MySQL are already installed.
#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated
#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| How to install Bsoad by Qafoo to test out the REST API v2 | |
| The process to download bsoad and all dependencies is listed below. | |
| 1) cd /var/www/ | |
| 2) git clone git://github.com/Qafoo/bsoad.git | |
| 3) cd bsoad | |
| 4) curl -s https://getcomposer.org/installer | php | |
| 5) php composer.phar install | |
| 6) cd src/library/qafoo/bdog |
| # | |
| # UPDATE for 10.10.4+: please consider this patch obsolete, as apple provides a tool called "trimforce" to enable trim support for 3rd party SSDs | |
| # just run "sudo trimforce enable" to activate the trim support from now on! | |
| # | |
| # Original version by Grant Parnell is offline (http://digitaldj.net/2011/07/21/trim-enabler-for-lion/) | |
| # Update July 2014: no longer offline, see https://digitaldj.net/blog/2011/11/17/trim-enabler-for-os-x-lion-mountain-lion-mavericks/ | |
| # | |
| # Looks for "Apple" string in HD kext, changes it to a wildcard match for anything | |
| # | |
| # Alternative to http://www.groths.org/trim-enabler-3-0-released/ |