gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
<infinisil> Oh my god, did you see the recent Go thing with contracts?
<infinisil> Hold on I'll read a bit more thoroughly
<infinisil> As far as I understand it, this proposal means you can write "contracts" that are basically Go code (but they're not), that go type checks, and all types that type check in that way will be part of the contract
<infinisil> I don't write Go and am no type theorist, but that sounds like a bad idea
<elvishjerricco> Hm. I can't seem to get `stress-ng --cpu N` to use N cores... It just uses one.
<elvishjerricco> Huh. It is spawning N tasks... It's just that they all run on the same core?
lassulus_ has joined #nixos-chat
lassulus has quit [Ping timeout: 246 seconds]
lassulus_ is now known as lassulus
<infinisil> (spreading the bots features)
<infinisil> > fortune
<{^_^}> "An exotic journey in downtown Newark is in your future."
sir_guy_carleton has joined #nixos-chat
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<andi-> infinisil: is the bots code somewhere public?
kisik21 has joined #nixos-chat
tertl3 has quit [Quit: Connection closed for inactivity]
<etu> Woha, my rpi complained about input/output error on /boot/extlinux :D
<etu> But I've copied all other files, did a fsck, didn't help, made a new filesystem in there, copied the files back and ran a rebuild. Now it's "fine" :)
<etu> It still complaints about some dirty bit and fsck.vfat doesn't get rid of it. Maybe I need a new SD-Card
<infinisil> ,whomademe andi-
<{^_^}> andi-: #<prnumber>, ',command' and '> nix' are implemented in infinisil's backend https://github.com/infinisil/nixbot utilizing gchristensen {^_^} frontend https://github.com/NixOS/ofborg/tree/released/ircbot . The rest of the features are done by other people's backends
<andi-> infinisil: thanks :)
<infinisil> Not everything my bot does is fully reproducible though, i have stuff i set up manually, need to fix that sometime
<infinisil> And better docs too..
<andi-> I was mostly interested in the nix expression testing. Seeing it uses hnix answers that :)
<infinisil> andi-: Um..
<infinisil> It doesn't actually use hnix lol
<infinisil> It's only there because i wanted to use it once and had lots of trouble to get it compiling
<andi-> I was hopeing (silly me!) that you'd be using libnix or whatever the native library bindings are called. I was thinking of using that for one of my projects :)
<infinisil> Yeah, not happening currently, I'm just calling nix-instantiate
<infinisil> I will eventually want to use hnix
<sphalerite> andi-: it's split into multiple libs for the different parts of nix
<andi-> I know
<sphalerite> I'm not sure anyone really uses those tbh :p nix-repl used it
<sphalerite> but other than that...
<andi-> should go into #nixos-security but for the sake of entertainment: https://nvd.nist.gov/vuln/detail/CVE-2018-16550
<andi-> read the linked twitter thread..
<sphalerite> wait that also exists?
<sphalerite> We have too many channels :p
<andi-> it is rather low-traffic and I often feel like I am an old grumpy guy writing there ^^
<sphalerite> lol nice vuln
<andi-> They fixed something that isn't even publicly listed yet. I wonder if it is the same issue but a different identifier.. CVE-2018-143333
rain1 is now known as rain2
sir_guy_carleton has joined #nixos-chat
__monty__ has joined #nixos-chat
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos-chat
pie___ has joined #nixos-chat
pie__ has quit [Ping timeout: 246 seconds]
<sphalerite> LnL: ???
<LnL> versioned urls that all point to the same mutable content
<LnL> oh, did you want to reproduce your old build? too bad
<gchristensen> hah!
<samueldr> that's terrible
<gchristensen> I had to write a bunch of code for my install matrix to explicitly fetch everything and then turn off update checking, because even though I had prefetched everything I'd get banned from the servers and unable to run vagrant even though I _had my box already_.
<samueldr> that's horrible
* samueldr needs to find new *rribles
<LnL> gchristensen: funny thing is that hashicorp does keep an entire history of the versions on the website
<gchristensen> also yeah!
<sphalerite> oooooh right
<srhb> samueldr: Conundrrible
ma27 has quit [Quit: WeeChat 2.1]
ma27 has joined #nixos-chat
ma27 has quit [Quit: WeeChat 2.1]
ma27 has joined #nixos-chat
Guanin has joined #nixos-chat
<joepie91> samueldr: merrible?>
<samueldr> the trouble with tribbles
Guanin has quit [Ping timeout: 246 seconds]
Guanin has joined #nixos-chat
<samueldr> everything is easier when using the amazon method of 100% up uptime
<joepie91> lol
<samueldr> this is especially through when seeing the legend
ldlework has joined #nixos-chat
<samueldr> is this the via one that's a documented engineering feature, that *should* be disabled by integrators, but apparently wasn't?
pie___ has quit [Ping timeout: 245 seconds]
<sphalerite> Does anyone know a decent alternative to `python -m SimpleHTTPServer` (serve up the cwd via HTTP) which performs a bit better and can handle multiple common requests?
<sphalerite> s/common/concurrent/
<samueldr> sphalerite: no, but here's a list I know https://gist.github.com/willurd/5720255
<ldlework> sphalerite: nixos comes with a nice webserver service
<gchristensen> samueldr: use case?
<sphalerite> ldlework: I want something I can run to transfer files from A to B without any fuss or installing any extra software on B
<samueldr> ^ sphalerite
<gchristensen> do you have netcat?
<gchristensen> or ssh?
<sphalerite> gchristensen: yes but that doesn't work nicely with windows
<sphalerite> AFAIK
<ldlework> oh
<samueldr> delete windows^W^W
<gchristensen> use python -m SimpleHTTPServer + zip
<sphalerite> Yes, that is my preferred approach :D
<ldlework> why doesn't netcat work on windows?
<ldlework> pretty sure i did it
<samueldr> netcat isn't concurrent?
<sphalerite> gchristensen: the data is already compressed, main issue is the low performance and lack of concurrency (it won't accept a new connection until it's finished handling the current request)
<gchristensen> sphalerite: exactly, so make it one connection
<ivan> sphalerite: I use rsync and openssh server in cygwin on Windows
<sphalerite> low performance as in it tops off at about 1MB/s even on a link that's much faster
<ldlework> ivan: that sounds better
<sphalerite> ivan: breaks the "no extra software on B" requirement :(
<gchristensen> how much data?
<ivan> sphalerite: maybe a samba server? Windows can connect to it
<sphalerite> gchristensen: 5GB this time, but it's a problem I have more often
<gchristensen> setup samba
<gchristensen> or ftp
<sphalerite> ivan: I don't want to set anything up, just run a command, have a server for the cwd, and stop it with ctrl-C when I'm done
<gchristensen> ok, I think we might need more context in to exactly what the problem is
<samueldr> windows has `ftp`, or at least had it
<sphalerite> I could just as well set up nginx if I'm going to fiddle with my system config
<sphalerite> but I want a throwaway thing, like SimpleHTTPServer
<ldlework> having nginx setup on nixos seems like a good idea anyway
<gchristensen> you could make a nginx wrapper script to do it
<ldlework> how else are you gonna share sweet gifs
<ivan> sphalerite: I would pick the `twistd -n web -p 8000 --path .` on that list
<sphalerite> ivan: ooooh that sounds good
<ldlework> why
<ivan> or maybe that python3 `python -m http.server` performs better than your python2? I don't know
pie_ has joined #nixos-chat
<sphalerite> thanks for the input folks!
kisik21 has quit [Ping timeout: 246 seconds]
<__monty__> sphalerite: Does a torrent client count as extra software?
<sphalerite> __monty__: yes
__monty__ has quit [Quit: leaving]
ma27 has quit [Quit: WeeChat 2.2]
ma27 has joined #nixos-chat
<gchristensen> for everybody who is grumpy that Nix isn't written in a functional programming language https://screenshotscdn.firefoxusercontent.com/images/37d52b1c-ca76-4728-b47b-5abad37b39a4.png ;)
<ldlework> lol