Append this to your ~/.zshrc file.
function preexec() {
timer=$(($(date +%s%0N)/1000000))| vi /etc/environment | |
| add these lines... | |
| LANG=en_US.utf-8 | |
| LC_ALL=en_US.utf-8 |
| #!/bin/bash | |
| ADBShell () { adb ${2+-s }$2 shell "$1" | tr -d '\r' | |
| } | |
| GetAndroidVersion () { | |
| local ALL_TAGS=$(wget -qO - "$GOOGLE_SOURCE/$REPO/+refs/tags/?format=text" | \ | |
| tr -d '^{}' | cut -d/ -f3 | sort -u | grep -vE -- '-(cts|sdk)-' | grep -v "_r0") | |
| TAG=${1:-$(ADBShell 'getprop ro.build.version.release')} | |
| echo -e "ANDROID_SERIAL=$ANDROID_SERIAL\nro.build.version.release=$TAG" 1>&2 |
| #/usr/bin/env bash | |
| # MIT © Sindre Sorhus - sindresorhus.com | |
| # git hook to run a command after `git pull` or `git merge` if a specified file was changed | |
| # Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
| check_run() { | |
| echo "$changed_files" | grep --quiet "$1" && eval "$2" |
| git stash show -p stash@{0} > Stash0.patch |
This is only a summary. For a full list of changes see the NEWS file.
| Feature | RFC / announcement | Author |
|---|---|---|
| Bundled ZendOptimizer+ as OPcache | https://wiki.php.net/rfc/optimizerplus | zeev |
| # Automatically print tasks description wrapping the execution of | |
| # the task. | |
| module Capistrano::Configuration::Namespaces | |
| alias_method :_task, :task | |
| def task(name, options = {}, &block) | |
| desc = next_description | |
| full_task_name = [fully_qualified_name, name].compact.join(':') | |
| $column = 0 | |
| $last_was_after = true |
| #!/usr/bin/env php | |
| <?php | |
| /** | |
| * Zend Framework (http://framework.zend.com/) | |
| * | |
| * @link http://github.com/zendframework/zf2 for the canonical source repository | |
| * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | |
| * @license http://framework.zend.com/license/new-bsd New BSD License | |
| */ |
| <html> | |
| <body> | |
| <!-- ----------------------------------------------- --> | |
| <!-- inline script block with commented code inside: --> | |
| <!-- ----------------------------------------------- --> | |
| <script id="myjscode"> | |
| /* | |
| (function(h,v){function q(b){if(""===m)return b; |