thanx: AzizLight/moc-on-osx.md
最近升级到 了 MAC OS X 10.9 Mavericks, 一直以来使用 brew 安装的 MOCP 这就不成了,决定折腾清楚,并分享大家
==> Downloading http://ffmpeg.org/releases/ffmpeg-1.2.1.tar.bz2 | |
Already downloaded: /Users/zoomq/Library/Caches/Homebrew/ffmpeg-1.2.1.tar.bz2 | |
tar xf /Users/zoomq/Library/Caches/Homebrew/ffmpeg-1.2.1.tar.bz2 | |
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/1.2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libvpx --enable-libass | |
./configure --prefix=/usr/local/Cellar/ffmpeg/1.2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libvpx --enable-libass | |
install prefix /usr/local/Cellar/ffmpeg/1.2.1 | |
source |
#!/usr/bin/env python | |
import os, web, sys | |
sys.path.append(os.path.dirname(__file__)) | |
urls = ( | |
r'/', 'Home', | |
) |
//已发送邮件的标记内容 | |
var EMAIL_SENT = "EMAIL_SENT"; | |
//记录已发送记录的列,一般为原有数据的后面一列,从0开始 | |
var EMAIL_SENT_COLUMN = 9; | |
// 发送的邮件主题 | |
var SUBJECT = "北京GDG之编程语言沙龙参会确认函"; | |
// email 所在的列,从0开始算 |
// email 所在的列,从0开始算。email 作为唯一标示,用于去重。 | |
var emailColumn = 1; | |
// 电子表格的 doc key | |
key = "0AhIp-TG_44qxdHFnTDFUeDNOUEp2LVVpbmVMa25QQVE"; | |
/** | |
* 统计报名人数,根据 email 唯一标示去除重复的报名。 | |
*/ | |
function countUniqueRows() { |
$ brew --config | |
HOMEBREW_VERSION: 0.9.4 | |
ORIGIN: https://github.com/mxcl/homebrew.git | |
HEAD: de5532166370563255accea15c0901cc25d0cfa1 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: 8-core 64-bit sandybridge | |
OS X: 10.7.5-x86_64 | |
Xcode: 4.6.3 | |
CLT: 1.0.0.9000000000.1.1249367152 |
$ brew --config | |
HOMEBREW_VERSION: 0.9.4 | |
ORIGIN: https://github.com/mxcl/homebrew.git | |
HEAD: de5532166370563255accea15c0901cc25d0cfa1 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: 8-core 64-bit sandybridge | |
OS X: 10.7.5-x86_64 | |
Xcode: 4.6.3 | |
CLT: 1.0.0.9000000000.1.1249367152 |
thanx: AzizLight/moc-on-osx.md
最近升级到 了 MAC OS X 10.9 Mavericks, 一直以来使用 brew 安装的 MOCP 这就不成了,决定折腾清楚,并分享大家
from fabric.api import local, env, run | |
env.shell = "/system/bin/sh -c" | |
# Local path configuration (can be absolute or relative to fabfile) | |
## Remote server configuration | |
PY = '/data/data/com.hipipal.qpyplus/files/bin/python' | |
PYQ = 'root@192.168.0.100' | |
env.hosts= [PYQ] | |
env.user = "root" | |
PYQ_ROOT = '/storage/sdcard0/com.hipipal.qpyplus/projects' | |
PROJ_NAME = 'chaos' |
#qpy:console | |
'''for QPy can usage normal system python , gen. all need Adnorid /etc/profile | |
usage: | |
- upload this script into mobile | |
- normal in /storage/sdcard0/com.hipipal.qpyplus/projects/YouProject | |
- call in QPython "My QPython->projects->YouProject->gen_qpy_env.py" | |
config as default env: | |
# mount -o remount,rw /dev/block/mtdblock3 /system |
from fabric.api import local, env, run | |
#import os | |
env.shell = "/system/bin/sh -c" | |
# Local path configuration (can be absolute or relative to fabfile) | |
# | |
# Remote server configuration | |
PY = '/data/data/com.hipipal.qpyplus/files/bin/python' | |
PYQ = 'root@192.168.0.100' | |
env.hosts= [PYQ] | |
env.user = "root" |