start new:
tmux
start new with session name:
tmux new -s myname
| /* | |
| * V4L2 video capture example | |
| * | |
| * This program can be used and distributed without restrictions. | |
| * | |
| * This program is provided with the V4L2 API | |
| * see http://linuxtv.org/docs.php for more information | |
| */ | |
| #include <stdio.h> |
| // stack_trace.c | |
| // | |
| // gcc stack_trace.c -ldw -lunwind -g -o stack_trace | |
| #define UNW_LOCAL_ONLY | |
| #include <elfutils/libdwfl.h> | |
| #include <libunwind.h> | |
| #include <stdio.h> |
| #!/bin/sh | |
| # Quick start-stop-daemon example, derived from Debian /etc/init.d/ssh | |
| set -e | |
| # Must be a valid filename | |
| NAME=foo | |
| PIDFILE=/var/run/$NAME.pid | |
| #This is the command to be run, give the full pathname | |
| DAEMON=/usr/local/bin/bar |
Git 比较不同版本文件差异的常用命令格式:
git diff 查看尚未暂存的文件更新了哪些部分
git diff filename 查看尚未暂存的某个文件更新了哪些
git diff –cached 查看已经暂存起来的文件和上次提交的版本之间的差异
git diff –cached filename 查看已经暂存起来的某个文件和上次提交的版本之间的差异
| # install tinc | |
| apt-get update && echo "===> update deps" && | |
| apt-get install -y make libssl-dev zlib1g-dev liblzo2-dev libreadline-dev libncurses5-dev && echo "===> got deps" && | |
| curl http://www.tinc-vpn.org/packages/tinc-1.1pre11.tar.gz | tar xzvf - && echo "===> got tinc src" && | |
| cd tinc-1.1pre11 && | |
| ./configure && echo "===> configured tinc" && | |
| make && | |
| make install && echo "===> installed tinc" && | |
| tinc --version # tinc version 1.1pre11 (built Nov 12 2015 16:25:28, protocol 17.4) |
windows
| command | args | description |
|---|---|---|
| status | [verbose] |
get current WPA/EAPOL/EAP status |
| ifname | get current interface name | |
| ping | pings wpa_supplicant | |
| relog | re-open log-file (allow rolling logs) | |
| note | <text> |
add a note to wpa_supplicant debug log |
| mib | get MIB variables (dot1x, dot11) | |
| help | [command] |
show usage help |
| interface | [ifname] |
show interfaces/select interface |
AnnexB format:
([start code] NALU) | ( [start code] NALU) |
AVCC format:
([extradata]) | ([length] NALU) | ([length] NALU) |