Reputation
5,198
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
7 23 49
Impact
~469k people reached

4h
answered Where to find the downloaded file after dragging a FTP URL to the terminal?
Aug
27
comment Nginx wildcard subdomain redirect keeping query string
Instead of the if directive, you can also use $is_args as in return 301 $scheme://domain.com/categories/$1$is_args$args;
Aug
27
answered Nginx wildcard subdomain redirect keeping query string
Aug
24
revised How can I filter the contents of a tar file, producing another tar file in the pipe?
not root
Aug
23
answered How can I filter the contents of a tar file, producing another tar file in the pipe?
Aug
23
accepted How can I filter the contents of a tar file, producing another tar file in the pipe?
Aug
23
comment How can I filter the contents of a tar file, producing another tar file in the pipe?
Without root this will lose all ownership/group information which I explicitly want to keep.
Aug
23
comment How can I filter the contents of a tar file, producing another tar file in the pipe?
The task was to extract data from a firmware image, so ownership/group membership are indeed important. The python approach could work though.
Aug
23
comment How can I filter the contents of a tar file, producing another tar file in the pipe?
Excellent, did not know that this @original.tar approach was possible with bsdtar. Seems to work with extended attributes and compression as well, </var/cache/pacman/pkg/libuv-1.7.0-1-x86_64.pkg.tar.xz bsdtar -czf - --include='usr/share/*' @- | tar tvz (and for some reason an empty selection produces a series of zero bytes, but that is no major problem for me).
Aug
22
asked How can I filter the contents of a tar file, producing another tar file in the pipe?
Aug
22
comment What is the meaning of the mode mask names from stat(2) and chmod(2)?
Thanks, this "SaVed TeXt" meaning seems also documented in the file permissions info page: For regular files on some older systems, save the program’s text image on the swap device so it will load more quickly when run; this is called the "sticky bit". Got any idea about the meaning/origin of the I letter?
Aug
21
asked What is the meaning of the mode mask names from stat(2) and chmod(2)?
Aug
16
awarded  Famous Question
Aug
8
comment How to let Qemu autoselect a listening port for Spice?
I noticed that libvirt has an "auto" option for SPICE. It turns out that libvirt has a legacy option which treats "-1" as a special value for allocating a free port number using its internal port allocator. This functionality is similar to testing netstat yourself.
Aug
7
answered How to let Qemu autoselect a listening port for Spice?
Aug
7
comment how to pass Ctrl-C in qemu
To override Ctrl-Z (backgrounding) too, there is stty susp ^]. For Ctrl-\ (quit), use stty quit ^]. With multiple definitions for a single char, this is the order of precedence: intr quit susp.
Aug
4
comment How to passively capture from Unix domain sockets (AF_UNIX socket monitoring)?
By the way, if you have read kristrev.github.io/2013/07/26/… and saw instructions to watch for link up notifications via netlink and wondered whether the diagnostics can provide packet sniffing, the answer is still no. These diagnostics provide statistics via polling, not realtime.
Aug
3
answered How to passively capture from Unix domain sockets (AF_UNIX socket monitoring)?
Aug
3
comment How to passively capture from Unix domain sockets (AF_UNIX socket monitoring)?
systemtap almost looks like a GDB hack, but then at kernel level. Don't know about audit, I only found a LSM hook that checked whether you are allowed to read/write. (I am currently digging in the Linux kernel source code)
Aug
3
comment How to passively capture from Unix domain sockets (AF_UNIX socket monitoring)?
@StéphaneChazelas Thanks, but since Xorg was started with -nolisten tcp, there is no TCP socket. If all fails, then I will probably revert to using xscope or your neat strace+text2pcap trick. I would still be interested in a generic Unix socket capture though (for just data, not side-channel data).