gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos-chat
cole-h has joined #nixos-chat
<samueldr> again, foiled by software that fails silently
red[evilred] has joined #nixos-chat
<red[evilred]> Looks like ovh have removed the prohibition on port scanning?
<abathur> anyone aware of a simple way to create always-up-to-date terminal recordings / screencasts from CI running a test suite?
<samueldr> abathur: part of it could be outputting in the format for what garbas conjured for the nixos site
<samueldr> it doesn't create the recordings, but it ingests a custom format
waleee-cl has quit [Quit: Connection closed for inactivity]
<abathur> hmm
<abathur> for many years I've just wanted this sort of thing to be an svg
<abathur> though it's not clear to me... I guess it's just recording the file contents and not actually re-generating if in a way that would be up-to-date if you're recording the execution of a stable set of commands after your program has changed
<samueldr> yeah, it's made to output a hand-written scenario into the format the asciinema player uses
<samueldr> thought it could be helpful
<samueldr> as a step, so you only need to figure out how to automatically generate the output
<abathur> true
<samueldr> neat
<abathur> poor SVG
<abathur> charlie brown of image formats?
<samueldr> hm?
<abathur> every time I try to use it for something cool there's one little hitch somewhere that screws it all up
<samueldr> you're not alone
endformationage has quit [Quit: WeeChat 2.9]
lunc has quit [Ping timeout: 265 seconds]
Jackneill has quit [Ping timeout: 258 seconds]
Jackneill has joined #nixos-chat
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
ixxie has joined #nixos-chat
cole-h has quit [Ping timeout: 265 seconds]
<sphalerite> I wonder how many custom formats with custom parsing code JSON has obsoleted. It's probably pretty good for security.
<srk> samueldr: I wrote similar thingie that can also interact with programs https://asciinema.org/a/343380
FRidh has joined #nixos-chat
<viric> I ping'ed a nixos in my lan by name.... and name resolution worked, with ipv6
<viric> What makes that work? is there some avahi underlying? Some systemd default?
<srk> .lan is default local domain for openwrt
<srk> when I ping machine by name .lan is added and it pings over v6
<srk> avahi uses .local
<viric> ah it's the openwrt resolving based on dhcp provided name
<viric> I wish I had known that years ago
lunc has joined #nixos-chat
<viric> thank you srk
risson has quit [Ping timeout: 272 seconds]
risson has joined #nixos-chat
lunc has quit [Ping timeout: 246 seconds]
__monty__ has joined #nixos-chat
ixxie has quit [Remote host closed the connection]
crazazy[m] has quit [Ping timeout: 260 seconds]
<viric> How can I "grep --color ... | less" and see the colour?
crazazy[m] has joined #nixos-chat
<JJJollyjim> grep --color=force | less -R
FRidh has quit [Ping timeout: 240 seconds]
FRidh has joined #nixos-chat
<viric> ahhh the force.
<__monty__> Use the force, viric.
<viric> perforce.
red[evilred] has joined #nixos-chat
<red[evilred]> Thank you __monty__ (IRC) for not avoiding what I was itching to do and saving me from myself ;-)
<__monty__> Welcome you are, :sly_laugh/grumble:
<viric> there is something strange in the recent git...
<viric> somehow it lists me "new file: flake.lock" in the list of "changes not staged"
<viric> why does it consider it "new file", instead of "untracked files"?
<__monty__> Did you check it in?
waleee-cl has joined #nixos-chat
<viric> never
<viric> In #git they told me: git add --intent-to-add
<infinisil> Another spacex launch soon! https://www.youtube.com/watch?v=COraGXFb1lo
<srhb> infinisil: Thanks :)
<siraben> i heard a joke regarding the first time SpaceX sent humans to the ISS last year, "Linux made it to orbit before it made it to the desktop"
<siraben> since the onboard computers were running Linux and the control interface was written in... javascript!
<siraben> which passed JSON data to the engine control
<hexa-> wild
<hexa-> the javascript part
<siraben> let me see if I can find the source for this or if it's just heresy
<siraben> "They do use some interesting software on Dragon 2. They use Chromium and JavaScript for the Dragon 2 flight interface. The actual flight computers still run on C++."
<siraben> "SpaceX uses an Actor-Judge system to provide triple redundancy to its rockets and spacecraft. The Falcon 9 has 3 dual core x86 processors running an instance of linux on each core. The flight software is written in C/C++ and runs in the x86 environment. For each calculation/decision, the "flight string" compares the results from both cores. If there is a inconsistency, the string is bad and doesn't send any commands. If
<siraben> both cores return the same response, the string sends the command to the various microcontrollers on the rocket that control things like the engines and grid fins. "
<infinisil> Nice
<siraben> Waiting on NixOS in space, obviously.
srk has quit [Remote host closed the connection]
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
srk has joined #nixos-chat
hax404 has quit [Remote host closed the connection]
hax404 has joined #nixos-chat
hax404 has quit [Client Quit]
hax404 has joined #nixos-chat
<infinisil> ,launch in 13 minutes! https://www.youtube.com/watch?v=COraGXFb1lo
<{^_^}> in 13 minutes! https://www.youtube.com/watch?v=COraGXFb1lo: Ping for space stuff (edit this command to add yourself, see ",help"): infinisil Taneb ldlework etu philipp[m] eyJhb gchristensen __red__ red red[evilred]
<philipp[m]> Nice!
<infinisil> T-2 minutes!
<infinisil> Vrooooooom
lunc has joined #nixos-chat
kalbasit has joined #nixos-chat
<srhb> Fake, they just replaced the droneship imagery!
endformationage has joined #nixos-chat
FRidh has quit [Ping timeout: 260 seconds]
FRidh has joined #nixos-chat
rajivr has quit [Quit: Connection closed for inactivity]
<infinisil> PHew just finished aoc day 13, that was pretty tricky
<__monty__> I'm still stuck.
endformationage has quit [Ping timeout: 246 seconds]
<infinisil> __monty__: Want some pointers?
<__monty__> I think so. Should we hop into query to avoid spoiling others?
<infinisil> __monty__: +1
endformationage has joined #nixos-chat
<eyJhb> Damn it!
<eyJhb> So so late
<infinisil> eyJhb: Regarding the vrooom?
vesper11 has quit [Ping timeout: 256 seconds]
<eyJhb> Yeah, missed the vrooom.. :(
FRidh has quit [Ping timeout: 246 seconds]
FRidh has joined #nixos-chat
FRidh has quit [Ping timeout: 264 seconds]
ixxie has joined #nixos-chat
lunc has quit [Ping timeout: 272 seconds]
ixxie has quit [Remote host closed the connection]
<viric> doesn't nixos have something to create chroots?
<viric> some nixos services have a chroot paramete
<viric> r
kalbasit has quit [Ping timeout: 240 seconds]
srk has quit [Ping timeout: 240 seconds]
srk has joined #nixos-chat
tokudan has quit [Remote host closed the connection]
tokudan has joined #nixos-chat
tokudan has quit [Remote host closed the connection]
<infinisil> viric: Probably better fit for #nixos
tokudan has joined #nixos-chat
<viric> infinisil: I asked here as 2nd try :)
<ashkitten> https://i.imgur.com/jodhQHB.png my gh notifs
<gchristensen> given [ { foo: { ...}, { bar: { ... } ] how can I get { foo: ..., bar: ... } with jq?
<gchristensen> I need some sort of jq cookbook
rajivr has joined #nixos-chat
<infinisil> gchristensen: mismatched curly brackets
<colemickens> is that just `.[0]` gchristensen ?
<gchristensen> oops :) {foo: { ... }, bar: { ...} }
<gchristensen> just want to merge a list of objects in to a single object
<JJJollyjim> uh the correction makes less sense
<infinisil> Do you mean `[ { foo: ... } { bar: ... } ] => { foo: ..., bar: ... }`?
<gchristensen> yes
<infinisil> I think that would be a reduce with *
<JJJollyjim> echo '[{"x": 56}, {"y": 78}]' | jq 'reduce .[] as $x ({}; . + $x)'
<JJJollyjim> (+ for replace-on-duplicate, * for recursive merge)
<JJJollyjim> or if it's actually just two, jq '.[0] + .[1]'
<infinisil> Nice
<gchristensen> nice! thank you :D
<adisbladis> jq based web framework when?
<gchristensen> ugh
<samueldr> adisbladis: I dare you
__monty__ has quit [Quit: leaving]
<JJJollyjim> HMMM
<infinisil> I wonder if jq too has undocumented builtins that could be (ab)used
<JJJollyjim> i dont think we need anything undocumented
<JJJollyjim> -R -s to take stdin as a big string, plus $ENV, you've got yourself a cgi script :D