gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
<gchristensen> anyone familiar with execline? https://gist.github.com/grahamc/9fd7d3fade30054041efec55298b5836
<gchristensen> it seems -print0 and -0 don't seem to work
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-chat
<infinisil> gchristensen: That does?
<gchristensen> find . -type f -name *.sh -print0 2> /dev/null | xargs -0 -I{} wc -l {} | grep -v virtualbox ... | sort -nr | head -n100
<infinisil> I see, that seems a lot clearer to me :P
<infinisil> But neat
<aanderse> oh my goodness... another person using apacheHttpd on nixos! its like an early christmas present! now there are roughly 6 of us!
<infinisil> Hehe
<ivan> I use it too
<aanderse> 😲 7!
<aanderse> ivan: what is your github handle?
<infinisil> aanderse: What does it have over nginx?
<infinisil> Or why do you use it instead of nginx?
<aanderse> infinisil: don't know, i've never used nginx
<ivan> aanderse: ivan
<infinisil> Ah I see
<infinisil> I guess I'd say the same if somebody asked my why i use nginx and not httpd
<aanderse> before my job required me to be an apache admin apache was the web server i used here and there mostly because nginx wasn't popular yet
<ivan> nginx has more static requests/sec and probably a better configuration language
<ivan> apache has great directory listings :-)
<aanderse> ivan: thanks, pinged you on something
<aanderse> where i work we use apache and that will never change so learning nginx to any detailed level mostly seems like a waste of time for me at this point
<pie_> gchristensen: ask profpatsch about execline
<gchristensen> he's who I learned about it from :)
<gchristensen> I wrote that execline program in order to find medium sized shell scripts to rewrite in execline
<pie_> ah hehe
<pie_> i have a git question
<pie_> is there a tool that will keep databases of git repos in a central place and automatically notice if it already has something
<pie_> i keep cloning nixpkgs all over my disk because im a dummy
<colemickens> yall know much about home automation gear? zigbee vs zwave, etc (I'm not dying to have lots of stuff that wants ext internet access via wifi)
<pie_> I think emilydoes some electronics but idk...
<pie_> * emily
<samueldr> only thing I know is philips hue are good in that regard; they don't require the bridge to have internet access
<samueldr> I never made an account for them to work
<samueldr> and they have sane fail handling since the later updates
<samueldr> they will keep their last on/off state on power loss
<samueldr> unless it's "deliberate" enough, so you can force a light open by flicking the switch
<samueldr> a light on*
<gchristensen> my Hue is on its own vlan without public internet access, can confirm, it is good
<samueldr> though, before that last update, a lengthy enough power failure would blast the lights on on resume
<gchristensen> and its local bridge thing will give you an API key like that too so really can work forever
<samueldr> oh right, forgot about that, its API is documented, and locally accessible
<samueldr> imo, a good example of how to make things IoT-able, while still keeping them sane offline
<gchristensen> +1
<samueldr> I researched every other options available, and they all had bad requirements, like direct bluetooth pairing to an app (ugh)
<samueldr> or per-bulb direct wi-fi access
<gchristensen> extremely yikes
<samueldr> the spectrum is already crowded enough where I live, that per-bulb wi-fi would almost make it a certainty that they'd fail
<samueldr> sometimes my phone drops off of the wi-fi and prefers LTE it's so bad
<colemickens> that's why I'm looking at zwave/zigbee. It seems like across the board they just work with a zwave/zigbee hub (or a RPi4 with a usb-looking radio stick plugged in)
<colemickens> zwave is non 2.4Ghz, but seems less open than zigbee
<samueldr> hue are IIRC zigbee compliant
<gchristensen> yeah I think it is zigbee
<samueldr> you can adope non-hue devices in hue
<samueldr> adopt*
<colemickens> I think so. That and the Tradfi or w/e from Ikea.
<colemickens> I'm DIYing it if I'm doing this stuff. I'm too paranoid and too much of a control freak.
<samueldr> tradfri wasn't available here when I looked so I don't know their state
<colemickens> I've seen people do some very, very impressive things with a few components and Home Assistant. Watched a couple 8 minute videos that walked through using smart meters to get usage data into Grafana. That was inspiring.
<samueldr> at one point I had ambitions
<gchristensen> oh yeah colemickens I do that
<samueldr> the app works well enough to program simple routines for me
<samueldr> the hue bridge can have locally saved routines, which is quite nice
<gchristensen> it is a bit spooky because I also read my neighbor's meeters
<samueldr> no need for a whole cloud infra to manage my routines
<colemickens> I'm hoping it's not a "whole cloud infra" kind of things. the HA stuff looked very yaml drive... oops. maybe it is a whole cloud infra thing ;)
<samueldr> oh, I was subtexting the "smart" bulbs from "smart" "IoT" "vendors"
<samueldr> like those from bestbuy's service that got shutdown
<colemickens> aha yeah
<gchristensen> colemickens: see your PMs :)
<infinisil> I just spent like 10 minutes trying to figure out how to use xmlstarlet or xmllint to extract an attribute from an xpath
<infinisil> Ended up giving up, using ripgrep now
<infinisil> So, if anybody wants to listen to random This Week in Chiptune eps, one of my favorite music podcasts ever, you can do so with `curl http://thisweekinchiptune.libsyn.com/rss | rg 'url="(.?*)"' -or '$1' | mpv --playlist=- --shuffle`
<pie_> am i an idiot or is bash unable to return strings from functions
<pie_> what i ended up doing is passing a temporary file as an argument to the function, and then i read the contents of the file as the result
<gchristensen> bash returns strings via echo
<yorick> pie_: returning strings is most of what bash does :P
<yorick> I mean there might be return types but nobody uses them except to signal errors
<pie_> gchristensen: yeah and thats Messed Up when you have things going to stdout in your function?
<yorick> pie_: no, that's kindof the default way
<yorick> pie_: SOMETHING=$(your_function lol)
<pie_> yeah thats what brok
<infinisil> pie_: Use stderr for logging, stdout for output
drakonis has quit [Quit: WeeChat 2.6]
<pie_> infinisil: thats still sketchy, but iirc you can use other file descriptor numbers
<pie_> but can you use that with $()?
<pie_> ah i misunderstood
<pie_> well i as wondering about using the third option with $()
drakonis has joined #nixos-chat
drakonis1 has joined #nixos-chat
<drakonis> ah shit its today
<drakonis> the talk is in 8 hours and i'm pretty much flying by the seat of my pants now
<drakonis> gonna wing it
drakonis1 has quit [Client Quit]
drakonis has quit [Quit: WeeChat 2.6]
tilpner has joined #nixos-chat
tilpner has quit [Remote host closed the connection]
tilpner has joined #nixos-chat
<MichaelRaskin> Tired: using Prolog in your research. Wired: using Prolog to keep track of what the hell you are researching right now.
rardiol has quit [Ping timeout: 240 seconds]
pie_ has quit [Ping timeout: 268 seconds]
pie_ has joined #nixos-chat
pie_ has quit [Ping timeout: 276 seconds]
pie_ has joined #nixos-chat
rardiol has joined #nixos-chat
ddima has quit [Quit: switching host]
ddima has joined #nixos-chat
Jackneill has joined #nixos-chat
Jackneill has quit [Remote host closed the connection]
endformationage has joined #nixos-chat
pie__ has joined #nixos-chat
pie_ has quit [Ping timeout: 276 seconds]
rawkode has quit [Quit: Connection closed for inactivity]
drakonis has joined #nixos-chat
drakonis1 has joined #nixos-chat
drakonis1 has quit [Ping timeout: 276 seconds]
__monty__ has joined #nixos-chat
mehlon has joined #nixos-chat
drakonis1 has joined #nixos-chat
drakonis1 has quit [Client Quit]
Taneb has quit [Quit: I seem to have stopped.]
kraem has quit [Ping timeout: 252 seconds]
rawkode has joined #nixos-chat
averell has quit [Remote host closed the connection]
mehlon has quit [Ping timeout: 268 seconds]
<pie__> MichaelRaskin: nice