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 | |
/** | |
* 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 | |
*/ |
# | |
# 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' | |
./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 \ |
<?php | |
/** | |
* mb_str_pad | |
* | |
* @param string $input | |
* @param int $pad_length | |
* @param string $pad_string | |
* @param int $pad_type | |
* @return string |