Reputation
3,193
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
11 30
Newest
 Nice Answer
Impact
~255k people reached

Apr
10
suggested approved edit on heartbleed tag wiki
Apr
10
suggested approved edit on heartbleed tag wiki excerpt
Apr
6
comment I accidentally typed password into bash command line
@TNW I got used to typing HISTFILE= instead of unset HISTFILE (which is also a tiny bit longer). There is no specific reason for doing it this way.
Apr
3
comment I accidentally typed password into bash command line
Setting HISTFILE= is enough. From bash(1): If unset, the command history is not saved when a shell exits.
Mar
22
comment sshfs mount without compression or encryption
By default, socat TCP-LISTEN listens on all interfaces. To limit to one specific network interface (e.g., localhost), use the ,bind=127.0.0.1 option. To allow multiple connections to the server, add the ,fork option. Making a read-only server? Add -R to the EXEC command. In the end, it will look like this: socat TCP-LISTEN:7777,fork,bind=127.0.0.1 EXEC:'/usr/lib/sftp-server -R' (on Arch Linux, I had to use /usr/lib/ssh/sftp-server instead).
Mar
20
awarded  Popular Question
Mar
8
awarded  Revival
Feb
16
comment Looking for a tool to inspect HTTP data between a mobile phone and AV receiver
If your phone is rooted, I suggest to run tcpdump on it via ssh/adb. Then use wireshark to open the pcap file with the filter http (this assumes that the communication happens over HTTP, not HTTPS or some other protocol).
Jan
26
comment Linux: How can I delete all files whose file name is more than X characters in length?
@Kitsos I did not say faster, but flexible. If you need to post-process the file list, then external programs may be easier than using a find regex. Your bash answer will fail with newlines. Consider a file name names foo\nbar (with an embedded newline). Then the first iteration will read foo and the second one bar. If you had files named foo or bar, then you will lose them, even if the length of foo\nbar is longer than five (seven). Another useful property find is that the -delete options removes empty directories too.
Jan
16
answered Linux: How can I delete all files whose file name is more than X characters in length?
Jan
16
comment Linux: How can I delete all files whose file name is more than X characters in length?
Forking is expensive, this command does not scale up with thousands of file (yes, I have encountered that). The name=$(basename "$file") can be replace with name=${file##*/} (Bash prefix substitution with nothing).
Jan
14
awarded  Notable Question
Jan
6
revised How to save a web page as MHT in chrome?
replace barely readable image by text, it's text anyway...
Dec
21
answered No wrap when using find toolbar?
Nov
30
comment Limit program's (Viber for Linux) access only to certain directory
Be very careful not to run Viber as root (after chroot, you will be root unless you change user). Since Viber is a presumably a GUI application, it will also have access to all other visisble windows by default. For the "easiest" separation using virtualization software, I would personally use QEMU (KVM), but others like VirtualBox should work fine too. In other cases, I try to use AppArmor.
Nov
28
awarded  Popular Question
Nov
9
comment What is the correct cipher name for RC4 in Chrome?
@gentmatt See iana.org/assignments/tls-parameters/… for a list of all cipher suites. You can ignore the anonymous, export, PSK and KRB5 cipher suites as they are not used. 0xC011 is TLS_ECDHE_RSA_WITH_RC4_128_SHA. Missing RC4 cipher suites in this list are 0xC002,0xC007,0xC00C.
Oct
28
answered How should I prioritize specs for a Linux Kernel development workstation/system?
Oct
21
comment What are the Compile time considerations to reduce the size of binary on Linux?
@nyk_mat Is this about the Linux kernel or a program that is intended to run on Linux? In case of the Linux kernel, use make menuconfig and disable what you do not need. For other programs, check whether you can disable features (for autoconf projects, ./configure --disable-FEATURE --without-PACKAGE where FEATURE and PACKAGE have to be replaced. See ./configure --help)
Oct
16
awarded  Custodian