Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dualbus
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
dualbus
3mo ago
> [...] you don't actually need to verify agains a user's secret immediately, you simply need to check that the token is valid using the app secret. The subset of valid tokens that you need to check is much smaller than the uni
2.
▲
by
dualbus
7mo ago
Apologies for being dense. Could you spell out how you went from Paragon Solutions to the Signal Protocol?
3.
▲
by
dualbus
1y ago
On DJT: Donald John Trump.
4.
▲
by
dualbus
1y ago
Yes, I got a "Reset password instructions" email from support@bugcrowd.com at roughly 11:13 PM UTC. There is no information in the email nor the linked page about why it is necessary. How am I supposed to trust this...
5.
▲
by
dualbus
2y ago
Bash accepts both variants of the equality operator. So it is not a bug.
6.
▲
by
dualbus
2y ago
> I literally can't make heads or tails of the risk here. All I see is the very alarming and scary words "backdoor" and "ssh server" in the same sentence. From what I've read, there is still lots of unknowns
7.
▲
by
dualbus
8y ago
You mean like Ksh's discipline functions? dualbus@system76-pc:~$ ksh -c 'date=; date.get() { .sh.value=$(date +%s); }; echo $date; sleep 5; echo $date' 1546926637 1546926642 See: https://docs.oracle.com&
8.
▲
by
dualbus
8y ago
Awesome, thank you! This is super useful. I stand corrected.
9.
▲
by
dualbus
8y ago
I tried python, bash and even C, none of them update /proc/self/comm when argv[0] is updated: dualbus@system76-pc:~$ cat argv0.c #include <stdio.h> #include <string.h> int main(int argc, char **argv) {
10.
▲
by
dualbus
8y ago
Can you show an example of how this would work with BASH_ARGV0?
11.
▲
by
dualbus
8y ago
The built-in replacements run in the same process as the Bash shell, and thus, avoid the fork/exec system calls. It's a minor performance optimization that might be useful if you're doing thousands of rm's or stat's
12.
▲
by
dualbus
8y ago
I would like to understand how this would work. argv is a buffer in Bash's process memory space. This is AFAIK, not shared in any way with the kernel. How would the kernel know that a process wrote to the memory location of argv[0] and
13.
▲
by
dualbus
8y ago
I don't think changing argv[0] in the current process will have any effect in the /proc file system. And to do what you describe, there's `exec -a NAME' already: $ (exec -a NOT-BASH bash -c 'echo $0; ps -p $BASH
14.
▲
by
dualbus
8y ago
Chet Ramey. He is the maintainer of the GNU Bash shell and of the GNU Readline line-editing library. * https://tiswww.case.edu/php/chet/ * https://www.red-gate.com/simple-talk/opinion/gee
15.
▲
by
dualbus
8y ago
> [1]: "${foo} bar baz" v.s. "$foo"" bar baz" Why would you quote the second option like that? You can just write: "$foo bar baz"
16.
▲
by
dualbus
8y ago
> will be surprised that [[ "foo" == "f*" ]] does pattern matching It will not do pattern matching, because you quoted the right-hand side.
17.
▲
by
dualbus
9y ago
I recently bought an HP laptop which has a AMD A10-8700P APU and was very surprised to find out that basic display functionality is very glitchy under Linux (backlight would flicker, or in some cases it wouldn't work at all). I tried w
18.
▲
by
dualbus
11y ago
x[:4].lower() = 'test' ?