Aug 16 13:59
If it must be more safe: /usr/bin/env -i -- APP_USERNAME='user' /bin/php './opt/script.php';
Aug 16 13:56
E.g. APP_USERNAME='user1' /use/bin/php /opt/script.php;
Aug 16 13:54
If it's rather simple, and the environment and project itself is generally safe (e.g. does not pass the credentials to other unknown processes), passing secrets to the process via environment variables is an option, too.
Aug 16 13:53
If it's something to be more complex, indeed HashiCorp's Vault is an option: vaultproject.io
Aug 16 13:52
@Maartenw dotenv.org are files which are being read using conventional (not standard) utilities like dotenv language libraries or github.com/dotenvx/dotenvx (i.e. those normally must be stored at the desired environment file-system).
Aug 16 13:45
Is passing the secrets the issue or storing them?
Aug 16 13:45
DotEnv is another option if safe storage is available.
Aug 16 13:44
@Maartenw if process environment variables is an option, then what's the issue? Just be aware that these will be copied at exec or fork process if not stated otherwise.
Aug 16 13:11
@Maartenw how secure should it be? RAM is safe for the user of the process only but not safe from user root. Any user who can read /proc/${pid}/environ files could see the environment variables, too. Stracing and shell XTracing is another option to see the data flows. Not to mention cases with rooted processes like Docker service, etc.
Aug 16 13:04
@MoriKuldip so, why not just tee all output streams to a file, or use the script command from util-linux package, as mentioned previously, and upload it somewhere?
Aug 12 17:22
I miss it...
Aug 12 17:14
I had no such issues at Freenode... and was banned there only once in Freenode for a reason I don't even recall now. Today, at Libera, I got banned so multiple times in various channels I don't freaking know the unknown reason of. It's heartbreaking actually since I loved the place... Regardless, maybe you will get a better experience in the still ineffably magnificent network with an infinite of purely genius people...
Aug 12 17:12
Aug 12 17:12
For instance, 'just have found a screenshot which has some of the personal custom WeeChat configurations I was used to prior May when they started banning me. It's also sorrowful that soem of the operators on the Libera network have relations I believe, and hence I got banned in multiple channels, including #linux, #php, and operator at #javascript banned me for being "toxic positive"...
Aug 12 16:50
`s/I would with to/I would love to``
Aug 12 16:48
I do recommend the purely awesome channel at Libera, even if I cannot participate in there... And, just in case, I do also recommend WeeChat ( github.com/weechat/weechat ) for an IRC client which is TUI, supports various customization, including scripting, and is ineffably marvelous in general ✨
Aug 12 16:44
I see. Are you joined to the channel `#bash` on IRC at Libera? I've been there since Freenode 2012, but for some still unknown reason some of their operators named `ormaaj` (https://mywiki.wooledge.org/ormaaj) started banning me every single time I join for reason "SockPuppet" (I tried joining 4 times in total once a month or so - got banned 4 times). It started unexpectedly when I probably got a bad day (I don't remember), and I literally have no idea what that means and how that is associated with me even in the first place. It's probably a mistake, but they just don't listen. Considering
Aug 7 16:18
@MoriKuldip , there are an infinite amount of options available I believe. It depends, however, on the access level you have to the machine. For instance, do you have read access to the script process's STDOUT stream interface, or any stream interface? Do you need the custom-generated log only or capture the script interaction to the I/O streams?
Aug 7 16:10
@louigi600 hopefully... May I ask why do you like this chat room? For instance, it does not look like very active if compared to alternative places it seems (am sorry).
Jul 30 11:55
Great warning someone added to the auto-trimmed substitution:

: "$( printf '1\0'; )";
: "$( printf '\01'; )";
Jul 30 11:54
Thanks Bash!
Jul 29 23:09
I haven't used MacOS for more than a few days in all my life being mostly in Linux, so I would also suggest to clarify at communities more into Apple, too.
Jul 29 23:07
Related: apple.stackexchange.com/questions/224511/… (How to use bash as default shell*...)
Jul 29 23:07
> Apple does not supply any software under the GPLv3 license.

Source: https://apple.stackexchange.com/a/208405/474302
Jul 29 23:05
> ...bash is now licensed under GPLv3 and 3.2.57 is the last version released under GPL2.

Source: https://apple.stackexchange.com/a/238281/474302
Jul 29 22:15
may I ask why you ask someone or in chat instead of searching online firstly? There are thousands and more answers to this question I believe. MacOS does not have Bash as the default since Bash license change, and this is also the reason why modern MacOS has the old Bash v3 installed by default.

Do you have any specific question, and what does "crazy things" mean?
Jul 28 22:24
@shellter just in case, if interested, posted a (hopefully understandable) question here: codereview.stackexchange.com/q/293127/101359
Jul 27 16:52
@shellter thank you for the response! I am sorry, indeed. I will ask a normal question on the codereview.stackexchange.com QA section once ready, and hopefully it will not get flagged being off-topic... I am currently not sure, but well... Please stay tuned!
Jul 26 13:30
How do you prevent conflicts between function and variable names considering the common naming
conventions like https://google.github.io/styleguide/shellguide.html#s7.1-function-names that don't take it into account at all?
 

SOBotics

This room is dedicated to moderating content on Stack Overflow...
Jul 15 19:43
Jul 15 19:43
Interesting that the div#divQuestionFollowFeaturePopover nor the text itself "Get updates on questions and answers" is not found in the source at all:
Jul 15 19:41
@NotTheDr01ds that was the initial idea, but started in the chat hoping someone has the same case.
Jul 15 19:31
I did not investigate the actual cause, but it's the only thing that acts so oddly. Everything else, including user session and even websockets works as a charm.
Jul 15 19:30
The most weird is that it becomes hidden if hid but for a random time. It may eventually re-appear all of a sudden again...
Jul 15 19:29
@Zoe-Savethedatadump I would assume a global SOF cookie or localStorage item. Thank you.
Jul 15 19:24
Jul 15 19:24
Dear StackOverflow,

Sincere and heartfelt gratitude for ineffably marvelous work you do...

I just wanted to clarify, is it possible to make the following to not appear ever again without modifying the CSS or using custom scripts?: https://i.imgur.com/wVTPxKa.png

It's probably the 100th time I close it around the websites... is that an expected behavior of the feature?

Best and kind regards
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Jun 12 21:27
Greetings all! o/
May 17 21:11
o/
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Jul 30, 2023 13:01
Probably like that, yes. So, in the result, some property is filled with both default and custom values in the child.
Jul 30, 2023 12:58
Like: const b = new B({a: {c: 2}}); ~ b.test == {a: {c: 2, d: 3}, b: 1}; // In the case test is the "default" property being merged.
Jul 30, 2023 12:58
More to that, this allows for deep merging and override deeper values if required in the option hierarchy.
Jul 30, 2023 12:57
In the result, the child constructor like "new B({a: 3})l" would result in {a: 3, b: 1} where the b property was in the parent prior merging.
Jul 30, 2023 12:55
You're correct. I wanted to merge some property indeed, so to allow the child have its own custom values and allow it to get pre-defined default values from the extended one.
Jul 30, 2023 12:54
Oh... I shared it here so it would not get removed like above.
Jul 30, 2023 12:53
@JamesBot >:P
Jul 30, 2023 12:52
That's kind a subject you might be interested, too!
Jul 30, 2023 12:50
By "parent" class I meant the one the subclass extends. E.g. class B extends A, where A is the super-class (parent if an instance), and B - sub-class (child if an instance).
 

Trash can

Like the recycle bin, but trashier.
Jul 30, 2023 12:53
Just in case, the above snippet is the following:

```
class A {
#opts = {
a: 1
}

constructor(opts = {}) {
this.opts = {
...this.#opts,
...opts
}
}
}

class B extends A {
#opts = {
b: 2
}

constructor(opts = {}) {
super(opts);
this.opts = {
...this.opts,
...this.#opts,
...opts
}
}
}

console.clear();

const b = new B();
const c = new B({ b: 3 });
console.log(b.opts);
console.log(c.opts);
```