Jemy's Documents


  • Home

  • Categories

  • Archives

  • Search

cmake中link_directories无效

Posted on 2016-10-14
1
2
3
4
add_executable(debug ${SOURCE_FILES})
link_directories(libxxx/lib)
target_link_libraries(debug
xxxx)

一直提示找不到xxx库, 解决方法很简单, 就是把add_executable放到link_directories后面就可以了-_-!

Read more »

Use password to protect a tgz file

Posted on 2016-09-30 | In Linux
1
2
3
4
# encrypt
gpg -o documents.tgz.gpg --symmetric documents.tgz
# decrypt
gpg documents.tgz.gpg
Read more »

tcpdump for android

Posted on 2016-09-29

tcpdump for android[1]

1
/data/local/tcpdump -p -vv -s 0 -w /sdcard/capture.pcap
Read more »

Compact vbox disk

Posted on 2016-09-29

Compact vbox disk

  • run defrag in the guest (Windows)

  • nullify free space:
    With Linux guest run this:

    1
    2
    sudo dd if=/dev/zero of=/bigemptyfile bs=4096k
    sudo rm -rf /bigemptyfile

    With Windows guest, download SysinternalsSuite and run this:

    1
    sdelete –z
Read more »

查看线程

Posted on 2016-09-29
查看线程 1awk '{print $1,$2,$14,$15}' /proc/2907/task/*/stat
Read more »

apt-get upgrade排除软件包

Posted on 2016-09-29
apt-get upgrade排除软件包 1sudo apt-mark hold xxx
Read more »

install the latest node js in ubuntu

Posted on 2016-09-15

install the latest node js in ubuntu:

1
2
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
Read more »

Xfce设置代理Proxy

Posted on 2016-09-10

¶proxyon.sh

Read more »

N1 root attemps

Posted on 2016-09-10

¶compile

1
2
export PATH=/opt/android-ndk-r12b:$PATH
ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk NDK_APPLICATION_MK=./Application.mk
Read more »

Get Call stacks

Posted on 2016-09-10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
get_stack() {
STACK=""
# to avoid noise we start with 1 to skip get_stack caller
local i
local stack_size=${#FUNCNAME[@]}
for (( i=1; i<$stack_size ; i++ )); do
local func="${FUNCNAME[$i]}"
[ x$func = x ] && func=MAIN
local linen="${BASH_LINENO[(( i - 1 ))]}"
local src="${BASH_SOURCE[$i]}"
[ x"$src" = x ] && src=non_file_source

STACK+=$'\n'" "$func" "$src" "$linen
done
}
Read more »
1234
jemyzhang

jemyzhang

40 posts
2 categories
54 tags
© 2018 jemyzhang
Powered by Hexo
|
Theme — NexT.Mist v6.0.6