gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
wildtrees has quit [Quit: Leaving]
<gchristensen> I'd like to run a sed replacement across every diff in a series, is there an easy thing for this?
<drakonis> pipe diff output through sed?
<drakonis> doesnt look like there an immediate way to do that
<gchristensen> oops, diff -> like a `git rebase` but where I change the patch too :P
<drakonis> oh
<jtojnar> gchristensen I sometimes do git format-patch -<number of commits>; sed; git am
<jtojnar> but it is limited to working on diffs, not the source code itself
<jtojnar> there is also git rerere but I do not trust it
<drakonis> git rerere?
<gchristensen> nice
<drakonis> that's the first time i've heard that one
<drakonis> impressive
<drakonis> "git-rerere - Reuse recorded resolution of conflicted merges"
<jtojnar> yeah, I am just not sure how reliable it is
<jtojnar> it is too magical for me
<jtojnar> and git does not have good support for working with the patch graph – diffing diffs of two different branches is a mess
<gchristensen> yup :(
<jtojnar> and when you have comitted patch files, you get madness
<jtojnar> diffing diffs of diffs
<gchristensen> help
<drakonis> host nixpkgs on pijul when
<gchristensen> step 0 is pijul being able to import nixpkgs
* gchristensen builds the latest to see if it can do that
<gchristensen> not yet
<samueldr> wasn't an import successful recently?
<gchristensen> I ... think so
<cole-h> Is the $TTY env var standard?
<gchristensen> I don't have it ... what kind of "standard"? :)
<cole-h> No idea. It was in a shell script I saw recently, so I was wondering if it was just me
<samueldr> 270 meters, that's a weird way to report speed
wildtrees has joined #nixos-chat
<gchristensen> lol
wildtrees has quit [Remote host closed the connection]
ottidmes has quit [Ping timeout: 264 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
andi- has quit [Ping timeout: 246 seconds]
andi- has joined #nixos-chat
<pie_[bnc]> ive said i before and ill say it again, i want higher order git xD <jtojnar> and git does not have good support for working with the patch graph – diffing diffs of two different branches is a mess
<thefloweringash> there was that "range-diff" thing added in git 2.19
lovesegfault has quit [Ping timeout: 246 seconds]
<pie_[bnc]> i would like to siderant about the fact that git apply does not do what i want (at least insofar as i tried) and git diff doesnt work in a bunch of cases, but its better than normal diff :(
cole-h has quit [Quit: Goodbye]
rardiol_ has quit [Ping timeout: 250 seconds]
drakonis has quit [Ping timeout: 246 seconds]
vesper11 has quit [Ping timeout: 258 seconds]
vesper has joined #nixos-chat
neeasade has quit [Ping timeout: 246 seconds]
<MichaelRaskin> You do not want a higher order git, you want a DVCS that actually allows you to _also_ store what you really care about (and some scripts around it, sure)
rardiol has joined #nixos-chat
<elvishjerricco> Hm. Playing around with more ZFS shenanigans. Tried `zfs send -R foo@bar | zfs receive foo/baz` and deadlocked ZFS. Everything else worked by any attempt to use any zpool would uninterruptibly sleep the process. Meanwhile the receive command was in the R+ state and pinned to 100% cpu. I'm guessing using `send -R` and receiving to its own child is probably a bad plan :P
<elvishjerricco> s/by/but/
<ar> hue
__monty__ has joined #nixos-chat
Jackneill has joined #nixos-chat
ottidmes has joined #nixos-chat
avn has joined #nixos-chat
<MichaelRaskin> Level of storage redudancy: used HPE SAS SSDs without upgrading firmware and with no data loss.
<gchristensen> lol.
<gchristensen> that is a deep cut, MichaelRaskin
<MichaelRaskin> I mean, second time in a row on the same model? Come on!
<MichaelRaskin> (fortunately, I do not need to do anything where SAS drives are my problem)
<MichaelRaskin> (But it is funny when people discuss FS reliability for consumer HDDs as if consumer HDD are not horribly unreliable regardless of FS)
<srk> oh this sucks environment.DISCOURSE_API_KEY = cfg.mail.apiKey
<MichaelRaskin> Oh fun. So, to make Firefox work with websockets through proxy I needed wss_proxy environment variable. Actually, makes sense…
neeasade has joined #nixos-chat
waleee-cl has joined #nixos-chat
<srk> yes!! alias :r='nixos-rebuild switch'
rardiol_ has joined #nixos-chat
rardiol has quit [Ping timeout: 256 seconds]
cole-h has joined #nixos-chat
ottidmes has quit [Ping timeout: 250 seconds]
ottidmes has joined #nixos-chat
wildtrees has joined #nixos-chat
drakonis has joined #nixos-chat
lassulus_ has joined #nixos-chat
lassulus has quit [Ping timeout: 250 seconds]
lassulus_ is now known as lassulus
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
endformationage has joined #nixos-chat
evanjs has joined #nixos-chat
cjpbirkbeck has joined #nixos-chat
Irenes[m] has quit [Ping timeout: 240 seconds]
arcnmx has quit [Ping timeout: 240 seconds]
atopuzov[m] has quit [Ping timeout: 240 seconds]
ky0ko has quit [Ping timeout: 256 seconds]
worldofpeace has quit [Ping timeout: 240 seconds]
thefloweringash has quit [Ping timeout: 256 seconds]
vaibhavsagar has quit [Ping timeout: 256 seconds]
worldofpeace has joined #nixos-chat
Irenes[m] has joined #nixos-chat
<ashkitten> hmmm i should probably install lineageos on a phone and put my sim card in it
<ashkitten> so i'll have a phone
thefloweringash has joined #nixos-chat
vaibhavsagar has joined #nixos-chat
arcnmx has joined #nixos-chat
atopuzov[m] has joined #nixos-chat
dtz has joined #nixos-chat
<aminechikhaoui> Any Git experts around ? :) I'm looking at how to do this: I want to have git use a local script for doing diffs if I call an alias `git custom-diff`, otherwise git diff should work like regular diff. Right now I can add under diff config section external = /path/to/script but that ends up being used by default by git diff
<aminechikhaoui> I'm sure it's an obvious config not even requiring an expert :D
<samueldr> you know about how git-"something" works, aminechikhaoui?
<samueldr> not sure it will help in your situation
<aminechikhaoui> you need to add an alias for that right ?
<aminechikhaoui> but I want the alias to know it's for diff to pass the right arguments when invoked
<samueldr> but e.g. I have a git-vacuum-branches script, which does some cleanups in branches that are fully merged, no configuration in git's config, and I can just call `git vacuum-branches`
<samueldr> yeah, I don't know about "knowing it's for diff" though
<aminechikhaoui> oh I guess if you add git-something to PATH git will pick it up ?
<samueldr> yes
<aminechikhaoui> cool
<samueldr> not sure if it's called with any special environment rather than directly calling it though
spacekookie has quit [Quit: No Ping reply in 60 seconds.]
spacekookie has joined #nixos-chat
ottidmes has quit [Ping timeout: 265 seconds]
<viric> I prepared a new version of 'filegive' http://viric.name/cgi-bin/filegive
<viric> I used to announce versions in freshmeat... where does people announce versions today?
<viric> or any new software
<gchristensen> lobste.rs i guess?
<viric> 1st time I hear about that
<cole-h> You need a "sponsor" to get an account there
<gchristensen> hackernews
* cole-h presses face against the window, observing lobste.rs, unable to participate
<viric> very horizontal
<viric> l33t sites
<drakonis> i have accounts...
<drakonis> there's a lobsters irc channel
<drakonis> and so do some of us here have accounts there
<danderson> same, been meaning to find someone to give me a lobsters account, but then again I never seem to miss it
<drakonis> i can provide in this time of need
<viric> drakonis: ok I take one to try, if you accept
<drakonis> apparently freshmeat is freecode now and it is somehow still active
<viric> freecode was readonly, isn't it?
<drakonis> ah, wrong, its last update was 6 years ago
<viric> :)
<danderson> "Effective 2014-06-18 Freecode is no longer being updated (content may be stale)."
<gchristensen> "may"
<viric> freecode was good
<drakonis> very stale
<danderson> basically, "nobody cared so I stopped caring too"
<drakonis> rotten even
<viric> freshmeat, all that
lopsided98 has quit [Quit: Disconnected]
lopsided98 has joined #nixos-chat
<colemickens> gchristensen: not sure if you saw: https://github.com/obsproject/obs-studio/issues/2568
<{^_^}> obsproject/obs-studio#2568 (by tobi, 16 hours ago, open): [Bounty] Implement virtual camera cross platform
<gchristensen> wow :D
<cole-h> Wow indeed
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #nixos-chat
<viric> what is the wow of that?
<gchristensen> $10k
<viric> ah
rardiol_ has quit [Ping timeout: 256 seconds]
rardiol has joined #nixos-chat
<drakonis> ah yes, emails required for invites anyways
CRTified has quit [Ping timeout: 240 seconds]
lovesegfault has joined #nixos-chat
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #nixos-chat
wildtrees has quit [Max SendQ exceeded]
<danderson> and money has already attracted idiots to the bug :(
<danderson> ah well
neeasade has quit [Ping timeout: 260 seconds]
<drakonis> y'all who want invites should pm emails
<colemickens> Was planning to try to stand up Jit.si on kubernetes later this week, but now seeing Pion... https://news.ycombinator.com/item?id=22686802
<colemickens> This project looks very impressive. webrtc-cli to stream gstreamer (audio) to webrtc
<__monty__> inb4 turns out it's the decimal comma.
<infinisil> > let result = { ${if result ? a then null else "a"} = 10; }; in result
<{^_^}> { a = 10; }
<infinisil> ... why ...
<tilpner> > let result = { ${if result ? a then "a" else null} = 10; }; in result
<{^_^}> { }
* gchristensen blinks
<tilpner> Is this "result doesn't have 'a' at time of check, then gets 'a'"?
<tilpner> Please don't use this feature in nixpkgs, and we can never talk about it again c.c
<infinisil> Something like this probably, but really, this almost seems like a bug
<tilpner> infinisil: Do you understand mine?
<tilpner> > { null = 10; }
<{^_^}> { null = 10; }
<infinisil> Yeah, yours is the non-paradoxical case :P
<tilpner> null as a key is clearly valid, why does the key-value pair vanish entirely?
<infinisil> > { ${null} = 10; }
<{^_^}> { }
<tilpner> Uhh
<tilpner> Is it trying to coerce null to a string, to arrive at a key?
<tilpner> I won't be able to sleep without knowing now
<infinisil> It's a feature that you can use null as an attribute name, and it remove the attribute
<infinisil> remose*
<infinisil> removes*
<tilpner> Oh, right
<tilpner> My null above wasn't null, but "null"
<infinisil> Yeah
<infinisil> So this is why my example above should make no sense :P
<infinisil> Because if it has "a", then it shouldn't have it, and if it doesn't have it, then it should have it
<tilpner> That's a feature I didn't know I never needed
<infinisil> Aha
<infinisil> > let result = { ${result.a} = "a"; ${result.b} = "b"; }; in result
<{^_^}> attribute 'a' missing, at (string):292:18
<infinisil> > let result = { ${result.b} = "b"; ${result.a} = "a"; }; in result
<{^_^}> attribute 'b' missing, at (string):292:18
<infinisil> It's processed from left to right..
<infinisil> > let result = { a = "b"; ${result.a} = "c"; ${result.b} = "d"; }; in result
<{^_^}> { a = "b"; b = "c"; c = "d"; }
<infinisil> Makes my head spin!
<srk> lol!
<infinisil> > let exists = _: if result ? key then "exists" else "doesn't"; result = { ${exists 0} = null; ${"key" + ""} = null; ${exists 0} = null; }; in result
<{^_^}> { doesn't = null; exists = null; key = null; }
<infinisil> Whoops, exists 0 != exists 0
<infinisil> I'm sure puck will love this in #nix-lang :)
ZaraChimera has joined #nixos-chat
wildtrees has joined #nixos-chat
lovesegfault has quit [Quit: WeeChat 2.7.1]
wildtrees has quit [Max SendQ exceeded]
lovesegfault has joined #nixos-chat
wildtrees has joined #nixos-chat
__monty__ has quit [Quit: leaving]
cjpbirkbeck has quit [Quit: cjpbirkbeck]
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
Jackneill has quit [Ping timeout: 250 seconds]
evanjs has joined #nixos-chat
wildtrees has quit [Quit: Leaving]