Skip to content

Instantly share code, notes, and snippets.

View reeze's full-sized avatar
🎯
Focusing

Reeze Xia reeze

🎯
Focusing
View GitHub Profile
@reeze
reeze / gist:2233132
Created March 29, 2012 03:51
git always have changed file
➜ Opensource git config --global core.autocrlf
false
➜ Opensource git clone https://github.com/php/php-src.git php-src-clean
Cloning into php-src-clean...
remote: Counting objects: 492188, done.
remote: Compressing objects: 100% (99071/99071), done.
remote: Total 492188 (delta 392149), reused 491908 (delta 391913)
Receiving objects: 100% (492188/492188), 108.91 MiB | 1.08 MiB/s, done.
Resolving deltas: 100% (392149/392149), done.
➜ Opensource cd php-src-clean
➜ Opensource git config --global core.autocrlf
input
➜ Opensource git clone https://github.com/php/php-src.git php-src-clean
Cloning into php-src-clean...
remote: Counting objects: 492188, done.
remote: Compressing objects: 100% (99071/99071), done.
remote: Total 492188 (delta 392149), reused 491908 (delta 391913)
Receiving objects: 100% (492188/492188), 108.91 MiB | 221 KiB/s, done.
Resolving deltas: 100% (392149/392149), done.
➜ Opensource cd php-src-clean
@reeze
reeze / maximum_battery_life.md
Created March 20, 2012 08:16 — forked from mrflip/maximum_battery_life.md
maximum battery life checklist -- use before a long plane flight

Max Battery Life Checklist

Here is a checklist to follow if you want maximum battery life -- for instance if you're about to get on a long plane flight.

10 hour battery life on a non-SSD Macbook Pro 17"

Low power use checklist

With power connected:

git checkout origin/osx
HEAD is now at 77edf8d... Tidying up and an attempt to measure shared memory.
git checkout-index -af --prefix=/private/tmp/homebrew-htop-HEAD-9yJ0/
==> ./autogen.sh
./autogen.sh
glibtoolize: putting auxiliary files in `.'.
glibtoolize: copying file `./ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
glibtoolize: copying file `m4/libtool.m4'
glibtoolize: copying file `m4/ltoptions.m4'
{
:'pt-BR' => {
# formatos de data e hora
:date => {
:formats => {
:default => "%d/%m/%Y",
:short => lambda { |date| "#{date.day} %b" },
:long => lambda { |date| "#{date.day} de %B de %Y" },
:only_day => "%e"
# 2014-11-09 Issue #2 第二期
Arch Weekly ——arch同学共同整理的技术周报
> 投稿专线: tbrd_arch@baidu.com hi群 QQ群
## 会议
1. AWS亚马逊技术峰会:<http://www.awssummitbeijing.com/index.html?Code=infoq>
> [百度Lamp技术博客](/) 原创作品,转载时请务必以超链接形式标明文章 [原始出处](http://lamp.baidu.com/2014/11/03/hhvm-in-baidu/) 、作者信息和本声明。否则将追究法律责任。
##背景
HHVM 其前身是hiphop(hphpc),进行php代码->cpp代码->二进制的转换,这个引擎属于静态编译优化,在Facebook应用了4年(2007-2011),但是由于开发、编译、调试、维护并不方便,所以2011年12月Facebook 开始了HHVM的开发和调研;
也就是hiphop->hphpi->hhvm的一个发展。
1. HipHop PHP: 将PHP代码翻译成C++代码,然后编译成二进制运行
1. hphpi: 为了解决编译太慢的问题,实现的一个PHP解释器,不过代码和hphpc很多都不一样,有很多的问题
1. HHVM:一个真正的虚拟机,目标是和Zend VM保持兼容。