随笔分类 -  Linux

摘要:> cmake -DPYTHON_LIBRARY=/opt/anaconda/lib/libpython2.7.so -DPYTHON_INCLUDE_DIR=/opt/anaconda/include/python2.7 -DCMAKE_BUILD_TYPE=RELEASE -DWITH_CUDA... 阅读全文
posted @ 2015-03-29 01:27 n0p 阅读(463) 评论(0) 推荐(0)
摘要:> cvt 1920 1080 # Get the correct settings for the new mode> # Output for me: "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 ... 阅读全文
posted @ 2015-03-29 00:57 n0p 阅读(233) 评论(0) 推荐(0)
摘要:> sudo apt-get install python-opencv> cp /usr/lib/python2.7/dist-packages/cv2.so /opt/anaconda/lib/python2.7/site-packages/or > conda install -c https... 阅读全文
posted @ 2015-03-26 16:52 n0p 阅读(751) 评论(0) 推荐(0)
摘要:> nm -D [file]|grep -w Uor> objdump -T [file]|grep "\*UND\*" 阅读全文
posted @ 2015-03-26 11:48 n0p 阅读(178) 评论(0) 推荐(0)
摘要:remove files after pack:> tar --remove-files -cf all.tar *compression:- `-j`: bzip2- `-z`: gzipadd file to existed tarball: `-r`> tar -rf existed.tar ... 阅读全文
posted @ 2015-03-26 01:47 n0p 阅读(180) 评论(0) 推荐(0)
摘要:list only directories:> ls -d /path/to/*/ 阅读全文
posted @ 2015-03-26 01:43 n0p 阅读(141) 评论(0) 推荐(0)
摘要:internal variable of separator: `IFS` 阅读全文
posted @ 2015-03-26 01:41 n0p 阅读(134) 评论(0) 推荐(0)
摘要:Use locate to find folder:> locate -r '/foo$' 阅读全文
posted @ 2015-03-19 17:00 n0p 阅读(110) 评论(0) 推荐(0)
摘要:Ref: [Bash Shortcuts For Maximum Productivity](http://www.skorks.com/2009/09/bash-shortcuts-for-maximum-productivity/) 阅读全文
posted @ 2015-03-19 16:19 n0p 阅读(185) 评论(0) 推荐(0)
摘要:Ref: 阅读全文
posted @ 2015-03-18 21:39 n0p 阅读(160) 评论(0) 推荐(0)
摘要:错误:>npm ERR! at Object.parse (native)npm ERR! at Packer.readRules (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/fstream-npm.js:174... 阅读全文
posted @ 2015-03-18 20:57 n0p 阅读(269) 评论(0) 推荐(0)
摘要:Super=Win键.## Rererence:1. [What are Unity's keyboard and mouse shortcuts?](http://askubuntu.com/questions/28086/what-are-unitys-keyboard-and-mouse-sh... 阅读全文
posted @ 2015-03-18 18:41 n0p 阅读(148) 评论(0) 推荐(0)
摘要:## Install> dpkg --install, -i [deb]> apt-get install [package]> aptitude install [package]## Remove> dpkg --remove, -r [package]> dpkg --purge, -P [p... 阅读全文
posted @ 2015-03-18 01:21 n0p 阅读(330) 评论(0) 推荐(0)
摘要:## Show current machine architecture> dpkg --print-architectureIt's built-in to the currently installed `dpkg` package.## Usageuse 'package:architectu... 阅读全文
posted @ 2015-03-18 00:15 n0p 阅读(188) 评论(0) 推荐(0)
摘要:Download from [搜狗输入法 for Linux](http://pinyin.sogou.com/linux/)> sudo dpkg -i sogoupinyin_1.2.0.0042_amd64.debSet input method in `Fcitx`, - Add inpu... 阅读全文
posted @ 2015-03-17 23:17 n0p 阅读(179) 评论(0) 推荐(0)
摘要:## apt-getUse `apt-get` with the "--print-uris" option to do it. I also add "-qq" so it would be quiet.### Create script:> sudo apt-get >> --print-uri... 阅读全文
posted @ 2015-03-13 06:24 n0p 阅读(489) 评论(0) 推荐(0)
摘要:# Visual demostration![relationship](http://algebraicthunk.net/~dburrows/blog/entry/images/apt-diagram-simple.png)![relationship2](http://algebraicthu... 阅读全文
posted @ 2015-03-13 04:42 n0p 阅读(137) 评论(0) 推荐(0)