<ashkitten>
is it possible to pause a nix build (like send a sigstop to all builders)?
<cole-h>
ashkitten: With `pkill`, you can use the `-G` flag to send a signal to all members of the group
<cole-h>
Might work, if you specify `-STOP`?
<ashkitten>
ah, huh
<ashkitten>
... okay that's weird, firefox gets super laggy if i have my other firefox window on a non-visible workspace
<ashkitten>
or just not visible
avn has quit [Ping timeout: 265 seconds]
avn has joined #nixos-chat
<cole-h>
> fortune
<{^_^}>
"Life is to you a dashing and bold adventure."
drakonis has quit [Quit: WeeChat 2.7.1]
drakonis has joined #nixos-chat
drakonis1 has joined #nixos-chat
drakonis has quit [Client Quit]
drakonis1 is now known as drakonis
<cole-h>
Anybody here familiar with POSIX sh scripting?
<samueldr>
no, absolutely nobody
<samueldr>
but better ask anyway
<cole-h>
lmao
<cole-h>
Is there a way to "export" a variable from a function?
<samueldr>
they are not local by default, unless you declare them to be, IIRC
<cole-h>
Basically, I have a function that gets called on every shell prompt, and I want to detect if the PWD has changed since the last prompt by using a variable e.g. _MY_PWD="${PWD}"
<cole-h>
This works as expected in `bash`, but in `bash --posix`, `_MY_PWD` never gets set/is otherwise inaccessible in the shell
<__monty__>
waleee-cl: So, if I understand correctly that's a way to get purs and spago but it's not like the haskell infra in that you can get purescript packages using it?
<waleee-cl>
__monty__: you mean as in ghc__.haskellPackages.servant or the like? No
<waleee-cl>
you can get nix-expression as I guess you have seen if you use spago2nix or the other tools
<gchristensen>
woohoo, my Vault proxy is working properly
<gchristensen>
the only problem now is I have to tap it approximately 30 times to start Vault
<andi->
which sounds a bit scary as every press of the button should have a single purpose. It becomes very casual just to hit that button often in your case :)
<gchristensen>
yes
<gchristensen>
I'm going to make it 1 tap to unlock by creating a sort of "sudo" mode, where a process can indicate it is going to run several things, and that process's calls will only need 1 tap
<gchristensen>
andi-: but what I have is not bad for about 2h of work
<andi->
agreed
<gchristensen>
1h of which was figuring out how ta create an HTTPS client with Hyper.
<andi->
reqwest is the answer (usually on SO)
<gchristensen>
I don't want my program to actually examine message bodies
<gchristensen>
so I'm using Hyper to examine the URL being requested, and then connecting upstream and bridging the two connections
<andi->
kernel tls and just connecting them? :)
<andi->
(not sure if that actually works)
<gchristensen>
I do need to examine some of the transfer
<andi->
IIRC that should be possible, I'll read into that later. In a call now.
<gchristensen>
also can't wait for heartbleed, Kernel edition
* andi-
🤣
<drakonis>
what's the goods?
<gchristensen>
hm? :)
<drakonis>
what y'all agreed on yesterday
<drakonis>
and heartbleed kernel edition eh?
<gchristensen>
doing TLS in the kernel just sounds not good
<drakonis>
im sure they cant hear you over the amount of packets being done in kernel
<drakonis>
we'll see whether they'll change that tune once something bad happens
<gchristensen>
heh
veske has quit [Quit: This computer has gone to sleep]
cole-h has joined #nixos-chat
endformationage has joined #nixos-chat
<andi->
gchristensen: IIRC it only does the symmetric part in the kernel
<andi->
aka sendfile to TLS socket
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
{^_^} has quit [Remote host closed the connection]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
wildtrees has joined #nixos-chat
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
neeasade has joined #nixos-chat
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
lovesegfault has joined #nixos-chat
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
<cole-h>
re my POSIX sh question yesterday: solution is to create a tempfile with `export _MY_PWD=.....` and source said file in the function. Hacky, but I think that's the best that can be done in POSIX
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
<__monty__>
cole-h: What was the question?
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
<cole-h>
Pasting: Basically, I have a function that gets called on every shell prompt, and I want to detect if the PWD has changed since the last prompt by using a variable e.g. _MY_PWD="${PWD}"
malSet has joined #nixos-chat
<cole-h>
cont: This works as expected in `bash`, but in `bash --posix`, `_MY_PWD` never gets set/is otherwise inaccessible in the shell
malSet has quit [Read error: Connection reset by peer]
<cole-h>
Basically, making a variable available outside a function scope in POSIX sh
malSet has joined #nixos-chat
malSet has quit [Read error: Connection reset by peer]
malSet has quit [Read error: Connection reset by peer]
<gchristensen>
hrm why didn't my ban work
<cole-h>
👀
<cole-h>
`*!...@...` vs `...!*@...`, maybe?
<cole-h>
s/`...!*@...`/`...!*@*`
<gchristensen>
lol
<cole-h>
Super readable, right?
<cole-h>
x)
<gchristensen>
what is this, perl?
<gchristensen>
s/p/#p/
<samueldr>
nick!ident@host
<samueldr>
ident was intended to be non-spoofable value given by the host
<samueldr>
so you'd know foo!grahamc@some.host would be the grahamc user from that system
<samueldr>
obviously that's not how the internet evolved :)
<gchristensen>
yeah but shoudln't *!malSet@cpe-173-89-212-155.columbus.res.rr.com ban malSet (~malSet@cpe-173-89-212-155.columbus.res.rr.com) ?
<samueldr>
~malSet AFAICT
<samueldr>
you used !malSet@ and not !~malSet@
<__monty__>
cole-h: Is the problem the hook is run in a subshell? Wouldn't storing just the path and then reading the value be slightly safer than sourcing?
<gchristensen>
womp womp
<cole-h>
Why are they getting a temp ban? Because of spammy rejoins?
<cole-h>
__monty__: How would I
<cole-h>
store just the path
<cole-h>
Oh, you mean just echo the path to the file
<cole-h>
__monty__: Great idea, thanks. Do you know of a POSIX way to read a file into a variable? Or do I have to rely on `var="$(cat file)"`?
<gchristensen>
that is pretty much it
<cole-h>
Oh well
<cole-h>
When you fat finger your GPG password 3 times so git wipes out the commit message x)
<gchristensen>
it isn't in .git/COMMIT_MSG or something?
<cole-h>
Well, I re-executed `git commit -v` and it wasn't there :'(
<cole-h>
Yep, I found that too. POSIX sh still requires a `cat` invocation.
<cole-h>
Thanks, though.
<julm>
fyi, depending on what you want to do you can also do something like: while IFS= read line; do [do something with $line]; done <input.file
<julm>
hmm, read -r to avoid backslash escaping
lovesegfault has joined #nixos-chat
<cole-h>
Doesn't appear to work in mrsh (maybe a bug on emersion's end), which is the only reason I didn't go that route
drakonis has quit [Ping timeout: 246 seconds]
<julm>
:\
drakonis has joined #nixos-chat
<eyJhb>
I might just have been the worst IT support ever...
<samueldr>
did you try turning it on and off again?
<eyJhb>
using dvorak... took forever for me
<samueldr>
(deliberataly switched them around)
<eyJhb>
password expired :p
<__monty__>
samueldr: Surely that doesn't solve any problems? : >
<samueldr>
now it's off, so it probably isn't working!
<eyJhb>
I need to put some more time into this. Dvorak just works against me
<gchristensen>
you could not bother :P
<eyJhb>
I think it is worth it in the long run :D
<gchristensen>
(I am not convinced it has useful outcomes)
<infinisil>
I want a keyboard layout that changes a bit every day, without telling you what changed
<infinisil>
Hm wait, I take that back
<gchristensen>
LOL.
<infinisil>
But I want a layout that changes over time to optimize the layout for what I type
<infinisil>
So e.g. it would move ; closer to the home row when it realizes I'm writing more Nix recently
<infinisil>
Things like that, might be neat :P
<cransom>
that sounds like insanity.
<Taneb>
infinisil: you'd also need hands that change to match
<gchristensen>
I love the idea that it'd just screw you up over time
<infinisil>
If it realizes I'm typing slower with the change it would probably revert it
<gchristensen>
the problem with dvorak is typing is not the hard part of our jobs
* infinisil
nods
<aleph->
infinisil: markovkeyboard
<aleph->
shapr in #nixos wrote it
<aleph->
Can probably tweak it some
<__monty__>
It's not the hard part but RSI does affect many of us.
<gchristensen>
yeah that is why I switched to dvorak
<cransom>
i know i type a lot, but it's not 100wpm for 8 hours a day. does anyone have keypress gathering stats tools? seems like it woudl be enlightening (preferably without a keygrabber)
<samueldr>
dang, I must have lost quite a few places since the last time I used whatpulse
<cransom>
hrm. i'm unstoked about needing a log in for this.
<cransom>
what could go wrong with having my keypress data go directly to the cloud...
<samueldr>
exactly
<cransom>
i could try flipping back to the ergodox. i bet i could have a firmware change to do some background monitoring on press rate without being key specific.
nckx has quit [Ping timeout: 264 seconds]
nckx has joined #nixos-chat
{^_^} has joined #nixos-chat
Jackneill has quit [Ping timeout: 250 seconds]
<colemickens>
unprompted 2FA code = get to change some passwords today. joyous.
<gchristensen>
where at, colemickens?
<colemickens>
The 2fa prompt came from Uber, but it's definitely one of my 2nd-tier, likely-to-be-typed-on-randpm-phone type of password that is probably used in a few other places.
<colemickens>
Gaming services and ride share apps, I get logged out frequently and they seem low enough on the totem that I use my old school "secure" password before letting them all be random :P
<__monty__>
You could try diceware phrases for those. As long as you come up with a hook they're pretty memorable.
<gchristensen>
and use at least 6 words ...
<infinisil>
I have a nice PW generator, let me know if you need one, I'll PM you the result ;)
<cole-h>
LOL
<__monty__>
Well that's up to them, if they're not important services...
<cole-h>
I like diceware passwords. I have 5 die sitting on my desk for that exact reason
<__monty__>
I once got a set of 30 for free. Consider it a sign that I was meant to use diceware. : )
<cole-h>
I'm sure I have more I can use, but I don't think any wordlists use more than 5 digits
<cole-h>
And if they do, I just roll one of my previously-rolled die :P
<__monty__>
30 = 6 x 5
<cole-h>
Oh, I see. You roll all your words at once