@mattcen@aus.social
@mattcen@aus.social avatar

mattcen

@mattcen@aus.social

๐Ÿณ๏ธโ€๐ŸŒˆ๐Ÿ‡ฆ๐Ÿ‡บ:they_them:
#Linux #SysAdmin, #FOSS advocate, #Scouts Victoria leader, #Bisexual, #Polyamorous, #Autistic, #ADHD geek. they/them/theirs
๐Ÿ“ป VK3MCN

Currently Seeking Work! โ€‹
#GetFediHired #FediHired #JobSearch
Check this post for more information: https://aus.social/@mattcen/111716981322402868/

Please fill out your bio and post some stuff before requesting to follow me.
No unsolicited advice, please.

#nobot #nobots #nobridge

Banner ๐Ÿ“ท credit: https://mastodon.au/@xrobau

This profile is from a federated server and may be incomplete. Browse more on the original instance.

phs, to linux
@phs@aus.social avatar

Is there a #linux command that can do timezone conversion on timestamps? Ideally through a pipe?

I want to convert syslogs in UTC to localtime (based on $TZ env).

cat /var/log/syslog | tz2local

mattcen,
@mattcen@aus.social avatar

@phs You don't happen to also use journald, do you? Because if so, it should be as simple as sudo TZ=Australia/Melbourne journalctl . Otherwise, yes, I'd write a short helper script in Python or similar.

mattcen,
@mattcen@aus.social avatar

@phs I know @cafuego gave a gawk solution, but if you'd like a python one too:

#!/usr/bin/env python  
import datetime, zoneinfo, os, sys  
for line in sys.stdin:  
 line=line.strip().split(' ')  
 print(datetime.datetime.fromisoformat(line[0]).astimezone(tz=zoneinfo.ZoneInfo(os.environ.get("TZ"))), ' '.join(line[1:]))  

(Requires Python 3.9 minimum for zoneinfo module)

mattcen,
@mattcen@aus.social avatar

@cafuego @phs I considered that Perl would probably be shorter as a one-liner, but my Perl-fu is far too weak.

mattcen,
@mattcen@aus.social avatar

@cafuego @phs It would be trivial to do in bash using date(1) , but all those execs would be painfully slow.

mattcen,
@mattcen@aus.social avatar

@phs @cafuego Here you go, python 3.8 compatible:

#!/usr/bin/env python  
import datetime, os, sys  
for line in sys.stdin:  
 line=line.strip().split(' ')  
 print(datetime.datetime.fromisoformat('.'.join(line[0:2])).astimezone(), ' '.join(line[2:]))  
mattcen,
@mattcen@aus.social avatar

@phs @cafuego Oh yeah, [0] would be sufficient; I had changed it because the ISO format I was using separated the space with a space rather than T.

mattcen,
@mattcen@aus.social avatar

@phs @cafuego Here ya go:

#!/usr/bin/env python  
import datetime, os, sys  
for line in sys.stdin:  
 line=line.strip().split(' ')  
 print(datetime.datetime.fromisoformat(line[0]).astimezone(), ' '.join(line[1:]))  
nnye, to random
@nnye@aus.social avatar

For various reasons I have 8 calendars across 4 hosts that I aggregate to work out if I am free or busy. Itโ€™s a pain.

Ideal world I think is either:

  • A calendar that shows my โ€œfreeโ€ blocks only as event chunks. (Like one of the booking services such as simplymeet, but with an ics feed of the availability spots)
  • a free/busy view of my calendars but with the individual events glommed together where they are adjacent. (So instead of 4 blocks of 15 minute events, it just shows a single busy block of 1 hour)
  • an โ€œinvertedโ€ view mode of a calendar. Huge events, show empty spots only.
  • something else I havenโ€™t thought of.

Printing, calendars, time zones. Problems that are complicated.

mattcen,
@mattcen@aus.social avatar

@nnye @michael Have you looked into Morgen yet (https://www.fastmail.com/blog/smart-scheduling-for-your-fastmail-calendar/)? I haven't tried it, but it sounded like it might do stuff like this.
I also have been considering writing a tool to aggregate all my calendars into one, butโ€ฆ that sounds a lot like work. ๐Ÿ˜†

NanoRaptor, to random
@NanoRaptor@bitbang.social avatar

20,000 followers! I would like to thank everyone for helping make this dream come true, I've wanted 20,000 followers on mastodon since I was six years old.

You're all gems.

mattcen,
@mattcen@aus.social avatar

@NanoRaptor TFW I realise I'm not following you and have just been seeing your content prolifically boosted by friends! ๐Ÿ˜‚

mattcen, to random
@mattcen@aus.social avatar

This isn't how dating profiles are supposed to work. Either you're bisexual or you aren't, but don't use your own age and gender but then list your partner's sexuality. You know Feeld let's you link multiple profiles together, right? ๐Ÿคฆ๐Ÿป

mattcen,
@mattcen@aus.social avatar

@trenchworms It was actually pretty balanced I think! And yeah, it's a lot like that. As a bi masc-presenting person it just frustrates me to no end that a m/f couple is often looking to explore bisexuality with a third, but that 98% of time they're looking for a femme person (but often don't make that explicit)! I want to play with different-gender couples too, folx! ๐Ÿ˜ก

xahteiwi, to random
@xahteiwi@mastodon.social avatar

The sprung wooden clothes peg is an amazing feat of engineering: a solid improvement over its predecessor (the dolly peg), extremely practical, industrial mass production capable, sustainable, biodegradable, UV-stable, with a useful life measured in decades.

Almost all those advantages go out the window if we make the damn things out of plastic.

https://en.wikipedia.org/wiki/File%3AClothespin-0157e3.jpg

mattcen,
@mattcen@aus.social avatar

@xahteiwi I'm certainly finding the ones I bought a few years ago are losing spring integrity and as such keep falling apart; dunno if I just bought a batch with cheap springs. I do prefer them to their plastic counterparts though.

Unixbigot, to random
@Unixbigot@aus.social avatar

Dear my apple watch wants me to enter my itunes password. But my password is long and strong and I have been unable to do it on the stupid fingerpainting interface for months. Is there an alternative?

mattcen,
@mattcen@aus.social avatar

@Unixbigot I also wonder if clipboard sharing works to the Watch in the same way as it does on other Apple devices?

mattcen,
@mattcen@aus.social avatar
xahteiwi, to random
@xahteiwi@mastodon.social avatar

Serious question: why is it that so many people apparently have real problems adopting ISO 8601 dates and UTC, in a professional context?

As in, are those somehow fundamentally incompatible with human nature? Or do people just completely lack the cultural awareness to understand that some of their colleagues are used to a different date format than they are, or live in a different timezone, or don't use daylight saving time?

Related:
https://xahteiwi.eu/blog/2023/02/10/brown-mms/

mattcen,
@mattcen@aus.social avatar

@xahteiwi I've always assumed, rather uncharitably that people don't bother to learn ISO8601 (or RFC3339) and UTC due to one or more of ignorance, entitlement, or laziness. Either they don't realise how not doing this could impact others, they don't care, or can't be bothered enough to do anything about it.
I see this in the same way as I see other accessibility and inclusion accommodations.

geordie, to random
@geordie@aus.social avatar

Can anyone give me pointers as to why embedding PDFs or linking to them or otherwise acknowledging their existence is impossible in Hugo?

mattcen,
@mattcen@aus.social avatar

@geordie So I dunno exactly what you're trying to do but I set up this shortcode (https://bugdrivendevelopment.net/pdf-reader-hugo-sites/) a while back and it does exactly what I want, which is to embed a PDF (in this case, one I've stored in my static files) in a web page. Does that help?

phocks, to random
@phocks@bne.social avatar

I still don't think is ready for mainstream use yet .. but it's getting there. Follow my account over at @jb if ya want.

mattcen,
@mattcen@aus.social avatar

@phocks @jb What does "ready for mainstream use" mean to you? Would you use it as your daily Fedi account, or do you think it has insufficient features for regular use currently? (I've not tried it, but have often considered self-hosting a Fedi service and would like something lightweight, so I'd be thinking about GoToSocial or Takahฤ“)

ash, to random
@ash@bne.social avatar

I was going to go to IKEA and ride home this arvo, but this wind! Might shelve that one and go to Bunnings instead. Still exercise, but it's not as far.

mattcen,
@mattcen@aus.social avatar

@ash Hehe. Shelve.

girlonthenet, (edited ) to random
@girlonthenet@mastodon.social avatar

Iโ€™ve only just noticed (after over a decade of having it) that my avatar is off centre. Does this bother you?

mattcen,
@mattcen@aus.social avatar

@ifixcoinops @girlonthenet Hear, hear! ๐Ÿ˜…

mattcen, to random
@mattcen@aus.social avatar

This isn't going to get confusing at all.

/CC @glasnt

mattcen, to random
@mattcen@aus.social avatar

That feel when you go out of your way to supply somebody with a high quality GeoPDF map for a hike they're planning, and they send out another PDF document with poor-quality screenshots of your map with digital scribbles all over it. ๐Ÿ˜ญ

mattcen,
@mattcen@aus.social avatar

And the PDF doc also has a crappy bitmap logo on it that was designed in the mid-90s, despite me having regenerated a new vector version a couple of years ago. There's just no helping some people.

cadey, to random
@cadey@pony.social avatar

While working on a video project, I saw something that I had forgotten to upload to my website, so I've done that! It's how to use Ollama on @flydotio GPUs with auto-shutdown on idle enabled:

https://xeiaso.net/talks/2024/ollama-fly-gpu/

mattcen,
@mattcen@aus.social avatar

@cadey That was a very entertaining lightning talk; thank you! ๐Ÿ˜†

amy, to random
@amy@spookygirl.boo avatar

Amazing to meet @damienlux, and Riley for coffee today. Really hit it off and can't wait to hang out with them again!!

mattcen,
@mattcen@aus.social avatar

@amy @damienlux OMG this photo is hella cute!

18+ mattcen, to random
@mattcen@aus.social avatar

Image CW: Shirtless selfie (upper chest and above) with eye contact

I was taking some selfies earlier and I feel very called out by this error message my phone camera gave me. Double entendre, much?

mattcen,
@mattcen@aus.social avatar

@shaedrich Haha! Asking the important questions!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • โ€ข
  • provamag3
  • kavyap
  • DreamBathrooms
  • osvaldo12
  • magazineikmin
  • InstantRegret
  • everett
  • Youngstown
  • ngwrru68w68
  • slotface
  • rosin
  • GTA5RPClips
  • tester
  • PowerRangers
  • anitta
  • thenastyranch
  • mdbf
  • ethstaker
  • cisconetworking
  • Durango
  • vwfavf
  • normalnudes
  • tacticalgear
  • khanakhh
  • modclub
  • cubers
  • Leos
  • megavids
  • All magazines