摘要:
macOs high sierra 去掉了ftp, telnet等命令 可以使用: brew install inetutils 安装 阅读全文
摘要:
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; 阅读全文
摘要:
android NDK cpu 架构宏定义 __arm__ armeabi __arm__ armeabi-v7 __aarch64__ arm64-v8a __i386__ x86 __x86_64__ x86_64 阅读全文
摘要:
从boost的官方网站下载最新版本的boost源代码 https://dl.bintray.com/boostorg/release/ 下载成功后解压,然后使用终端进入到boost目录 这样boost库就在mac上安装成功了,默认情况下安装库文件目录在/user/local/lib/下,头文件目录在 阅读全文
摘要:
统计代码中所有的颜色值,并按出现次数排序 阅读全文
摘要:
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 阅读全文
摘要:
Unix网络API1.字节序函数#include uint16_t htons(uint16_t host16bitvalue);uint32_t htonl(uint32_t host32bitvalue);返回:网络字节序值uint16_t ntohs(uint16_t net16bitvalu... 阅读全文
摘要:
#include #include #include #include #include #include #include #include #include #include int main() { struct sockaddr_in addr; addr.sin_add... 阅读全文
摘要:
#include #include #include #include #include #include #include /* 标准输入的文件描述符数值 */ #define STDIN 0int main() { struct timeval tv; fd_set readfds; ... 阅读全文
摘要:
git自动完成和显示当前分支1.从github.com/git/git 下载git源代码2.拷贝git-master/contrib/completion下git-completion.bashgit-prompt.sh这两个文件到用户目录~/下3.在.bash_profile 里面添加一下内容. ... 阅读全文