581 reputation
29
bio website dmitry.cheryasov.in
location
age
visits member for 3 years, 3 months
seen Apr 11 at 14:14

I constantly try to expand the little I know about programming.

google profile


Feb
19
revised using SUID bit to drop privileges
typo in title
Feb
19
suggested suggested edit on using SUID bit to drop privileges
Jan
1
comment Ctrl-C with two simultaneous commands in bash
@lain: certainly. I missed the point about the running from a script.
Jan
1
comment Ctrl-C with two simultaneous commands in bash
You can also use %n syntax to kill specific background jobs in this shell. Usually you issue kill %1 to kill the latest and the only background process. With more background processes, use jobs to see the list first.
Dec
31
comment xmodmap for key combination
Usually <kbd>Fn</kbd> works on keyboard's hardware level. Hopefully keycodes, as opposed to keysyms, of F-keys still differ when it is not pressed. Can you please run xev once more and paste the output for two different F-keys?
Dec
27
awarded  Custodian
Dec
19
accepted Copy files via a complex ssh connection?
Dec
18
asked Copy files via a complex ssh connection?
Nov
11
comment In shell script, execute a command only if the source is newer than the target
It helped me to remember that /bin/[ actually exists, so the syntax should be process-oriented, not expression-oriented.
Nov
11
comment In shell script, execute a command only if the source is newer than the target
BTW what is the problem with &&? It seems supported in dash, so [ -f targetfile ] && [ targetfile -ot sourcefile ] || echo "Already up to date" should work. It actually does in my dash.
Nov
11
comment Let remote ssh session know about tmux?
@EliasProbst: thanks; I have already figured how to detect tmux locally. But a remote ssh session does not know about it, it just sees it as a regular xterm.
Nov
11
asked Let remote ssh session know about tmux?
Sep
23
answered Keep running program requiring X server after logging off of ssh session
Sep
4
comment How to figure out where a link gets redirected
What's important is that your problem is hopefully solved by the concerted effort :)
Sep
3
comment How to figure out where a link gets redirected
Thanks @brianstone, I'm giving you proper credit :) I still wish you did not amend my answer but added a comment below it, so we could discuss if the amendment is appropriate. See, the original post says the the tool does not need to follow redirects, but instead allow to pick a certain Location header.
Sep
3
revised How to figure out where a link gets redirected
Updated the -L description
Sep
3
comment How to figure out where a link gets redirected
/* Dear readers, if you want to use -L instead of -I above, please write a comment explaining the benefits of doing so. Just editing my answer is not a good idea. Thanks. */
Sep
3
revised How to figure out where a link gets redirected
No, -L is _not_ a correct flag to use, and the example still works _despite_ it, not due to it.
Sep
3
awarded  Custodian
Sep
3
reviewed Reject suggested edit on How to figure out where a link gets redirected