2018-09-04 AllanChan
Part I – Basic Find Commands for Finding Files with Names Find Files Using Name in Current Directory Find all the files whose name is tecmint.txt in a current working directory. find . -name tecmint.txt ./tecmint.txt 继续阅读 »
2016-02-28 AllanChan
缩小视频一半 ffmpeg -i input -vf scale=iw/2:-1 output 视频指定大小 ffmpeg -i a.mov -vf scale=853:480 out.mp4 继续阅读 »
2018-09-04 AllanChan
同步远程和本地目录 git init git remote add origin $url_of_clone_source git fetch origin git checkout -b master --track origin/master # origin/master is clone's default 继续阅读 »
2014-05-30 AllanChan
清除Mac 项目中的.SVN文件 有时候因为一些SDK,和一些类库的不兼容。导致svn中的某些文件上传不了或者更新不了,这时候你就的清除这个文件下的svn文件,然后 iGnored find ./ -name ".svn" | xargs rm -Rf 继续阅读 »
2017-06-05 Lu Huang
sge
做语音的人很多都会用到的 kaldi,而在 kaldi 里使用最多的并行计算环境是 Sun Grid Engine(SGE),本人也在自己的服务器上部署了 SGE 环境。 部署 SGE 在管理节点上 shell $ sudo apt-get install gridengine-master gridengine-client 增加管理员(am=add manager) $ sudo qconf -am 删除管理员(dm=delete manager) $ sudo qconf -dm 显示所有管理员(sm=show manager) $ sudo qconf -sm 在所有计算节点上(管理节点 继续阅读 »
2018-09-03 Vaniot
Compose Compose定义和运行多个Docker容器的应用,实现对Docker容器集群的快速编排。通过一个docker-compose.yml模板文件,定义一组相关联的服务(容器应用)为一个项目(由多个服务组成的完整的业务单元)。 Compose的使用 命令 Compose的命令对象默认指定为项目,使用 docker-compose [COMMAND] --help或docker-compose help[COMMAND]可以查看某个具体命令的使用格式。 shell docker-compose [-f=...] [options] [COMMAND] [ARGS...] 命令选 继续阅读 »
2016-03-04 asin929
摘要:这是对linux下查找文件及字符串的总结。 more 一、查找命令 which (寻找『运行档』) 继续阅读 »
2014-06-07 AllanChan
COCOSPODS 就是其中一个不兼容,你的更新xcode,COCOSPODS 才可以继续用pod install 具体步奏如下 打开 Xcode 6 Command + , 选择 Locations 将 Command Line Tools version 变为 Xcode 6.0 卸载 cocospods $ sudo gem uninstall cocoapods 安装 xcodeproj 继续阅读 »
2016-11-11 litaotao
Python Stackoverflow 经典问题 What does the “yield” keyword do? What is a metaclass in Python? How do I check whether a file exists using Python? Does Python have a ternary conditional operator? Calling an external command in Python What does if __name__ == “__main__”: do? How to make a chain of function decorators in 继续阅读 »
2016-06-26 ruki
Typically, you only need to execute the following command for compiling project. bash xmake xmake will probe your host environment and target platform automaticly. The default mode is release and xmake will compile all targets. You can compile only one given target which name is 'test' for executing the follo 继续阅读 »