Live data from Hacker News

Love systemd timers

blog.tjll.net

51–60 of 309 posts

Re: Love systemd timers

#51

I have a Canon printer, I actually can't trust that their print nozzle won't get jammed up after sitting idle for a while. So I had claude setup a systemd script to print a picture of my dog every week, I ensure it has enough CMYK spectrum to stress the printer. Its a nice surprise every monday as I sit on my desk to see a sudden picture pop up from the printer :)

Laser printers are your friend. The savings on consumables alone will make it pay for itself.

Re: Love systemd timers

#52
post #42

Earlier quoted context omitted.

I wish printers could have a mode like this to print random images from an album, or a calendar, rather than wastefully draining ink into a sponge every few days. If nothing else, maybe it could be some kid's high school science fair project idea.

How about printing a QR code for a randomly generated private key for Satoshi Nakamoto's Bitcoin wallet, then every few days you get a tiny moment of excitement, hope, and then disappointment. It's still wasteful, but it could pay off big time?

Or if you have a printer/scanner combo, you can turn it into a pen pal!

Re: Love systemd timers

#53

I have a Canon printer, I actually can't trust that their print nozzle won't get jammed up after sitting idle for a while. So I had claude setup a systemd script to print a picture of my dog every week, I ensure it has enough CMYK spectrum to stress the printer. Its a nice surprise every monday as I sit on my desk to see a sudden picture pop up from the printer :)

Laser printers are your friend. The savings on consumables alone will make it pay for itself.

Not to mention more water resistant, when printing things like envelopes.

Re: Love systemd timers

#54

I have a Canon printer, I actually can't trust that their print nozzle won't get jammed up after sitting idle for a while. So I had claude setup a systemd script to print a picture of my dog every week, I ensure it has enough CMYK spectrum to stress the printer. Its a nice surprise every monday as I sit on my desk to see a sudden picture pop up from the printer :)

Laser printers are your friend. The savings on consumables alone will make it pay for itself.

Epson Ecotank. I’ve been using mine for years and I only had to buy new ink once.

And I printed a lot of photos, notes, documents, etc

Re: Love systemd timers

#55
post #32

Earlier quoted context omitted.

What? You absolutely can have spaces; most of mine look more like [Service] Type = oneshot WorkingDirectory = %h/current/ Environment = RAILS_ENV=production ExecStart = /bin/sh -lc "bin/db-backup --verbose"

Friend, you have changed my life

Is this one of those cases where at one point you had an error in the file and you figured it was down to spaces? You fixed that issue, it still didn't work but from that point you never thought to question the assumption.

I find myself doing this sort of thing all the time..

Re: Love systemd timers

#56

systemd is complex on first view, but after using it you didn't want to use anything else. It's handy to manage everything using systemctl

This is such a modern view. People used to HATE systemd when it first came out, but I always liked it and knew people would eventually come around and its nice to see they finally did!

Re: Love systemd timers

#57
I haven't used systemd timers enough to disagree, but

> Ambiguous $PATH settings make cron script execution difficult to predict.

What makes you say that? You can set the PATH right in the crontab. Is that harder to "predict" than it being set in /etc/bashrc, ~/.bashrc, ~/.profile, ~/.bash_profile, /etc/systemd/…, or wherever else?

> You might feel cool knowing the scheduling grammar by heart

I've used Linux since 1994 and I don't know it by heart. But luckily it's pre-printed in the crontab as comments:

    # For more information see the manual pages of crontab(5) and cron(8)
    # 
    # m h  dom mon dow   command
You just put numbers aligned with the titles.

The rest of the complaints, sure. Next time I need a cronjob, I'll try it out.

Re: Love systemd timers

#59

Earlier quoted context omitted.

Laser printers are your friend. The savings on consumables alone will make it pay for itself.

Epson Ecotank. I’ve been using mine for years and I only had to buy new ink once. And I printed a lot of photos, notes, documents, etc

Those will still get their nozzles clogged if you don't run them.

Re: Love systemd timers

#60
Is there a way yet to force-trigger a timer? There wasn't the last time I used them, which I found to be super annoying for testing them.
Post reply on HN