摘要: macOs high sierra 去掉了ftp, telnet等命令 可以使用: brew install inetutils 安装 阅读全文
posted @ 2017-11-01 20:52 紫——瞳 阅读(723) 评论(0) 推荐(0) 编辑
摘要: for i in `find . -name "*.apk"`; do rm -rf toriko_apk; java -jar apktool.jar d -f $i -o toriko_apk; keytool -printcert -file ./toriko_apk/original/META-INF/CERT.RSA >> 1.log; done; 阅读全文
posted @ 2017-09-27 13:50 紫——瞳 阅读(263) 评论(0) 推荐(0) 编辑
摘要: android NDK cpu 架构宏定义 __arm__ armeabi __arm__ armeabi-v7 __aarch64__ arm64-v8a __i386__ x86 __x86_64__ x86_64 阅读全文
posted @ 2017-06-09 15:34 紫——瞳 阅读(1222) 评论(0) 推荐(0) 编辑
摘要: 从boost的官方网站下载最新版本的boost源代码 https://dl.bintray.com/boostorg/release/ 下载成功后解压,然后使用终端进入到boost目录 这样boost库就在mac上安装成功了,默认情况下安装库文件目录在/user/local/lib/下,头文件目录在 阅读全文
posted @ 2017-05-14 21:40 紫——瞳 阅读(1221) 评论(0) 推荐(0) 编辑
摘要: 统计代码中所有的颜色值,并按出现次数排序 阅读全文
posted @ 2016-11-24 20:49 紫——瞳 阅读(142) 评论(0) 推荐(0) 编辑
摘要: find . -iname *.jpg -o -iname *.png | xargs identify | awk -F " " '{print($1,$3)}'|awk '{split($2,ta, "x"); w=ta[1]; h=ta[2]; if(w>1024 || h>1024) pri 阅读全文
posted @ 2016-06-27 19:39 紫——瞳 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Unix网络API1.字节序函数#include uint16_t htons(uint16_t host16bitvalue);uint32_t htonl(uint32_t host32bitvalue);返回:网络字节序值uint16_t ntohs(uint16_t net16bitvalu... 阅读全文
posted @ 2015-12-01 09:47 紫——瞳 阅读(4565) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include int main() { struct sockaddr_in addr; addr.sin_add... 阅读全文
posted @ 2015-11-19 20:48 紫——瞳 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include /* 标准输入的文件描述符数值 */ #define STDIN 0int main() { struct timeval tv; fd_set readfds; ... 阅读全文
posted @ 2015-11-18 14:02 紫——瞳 阅读(946) 评论(0) 推荐(0) 编辑
摘要: git自动完成和显示当前分支1.从github.com/git/git 下载git源代码2.拷贝git-master/contrib/completion下git-completion.bashgit-prompt.sh这两个文件到用户目录~/下3.在.bash_profile 里面添加一下内容. ... 阅读全文
posted @ 2015-10-26 15:54 紫——瞳 阅读(127) 评论(0) 推荐(0) 编辑