HackerTrans
TopNewTrendsCommentsPastAskShowJobs

hoshsadiq

no profile record

comments

hoshsadiq
·4 года назад·discuss
> I was looking at this just last night and the story with Ubuntu is horrible. That's essentially going to be stuck on v3.4 for ten years because it's "a lot of work" to get into that distribution.

They used to provide relatively recent builds in their kubic repos. Unfortunately, for some reason, they decided to discontinue it[0]. They mentioned some CVEs or something in some issues raised around this, but to me that means pushing a new version/build and not discontinuing it.

Anyway, one of the members of the Containers org provides unstable kubic repos[1][2] for non RH systems. Unfortunately, this includes RCs, and non-stable versions, which is fine to get bleeding edge, but I'd rather just have the stable versions.

Due to the above, I've written some scripts to build deb packages for all the latest stable versions. So hopefully you can simply download the deb from GH releases[3] and then `dpkg -i *.deb && apt-get install -f`.

[0] https://podman.io/blogs/2022/04/05/ubuntu-2204-lts-kubic.htm...

[1] https://github.com/containers/podman/issues/14302#issuecomme...

[2] https://build.opensuse.org/project/show/devel:kubic:libconta...

[3] https://github.com/hoshsadiq/podman-deb/releases
hoshsadiq
·5 лет назад·discuss
Not particularly. I don't use a Mac, but I'd be happy to separate out the function into it's own script so it can be downloaded and put in your $PATH. I personally use zinit to manage individual files from random repos.
hoshsadiq
·5 лет назад·discuss
It only uses the FZF's preview. The suggestions is completely empty. I tried to find an alternative as FZF has no way of disabling the selector window, but I was unable to find anything that was good enough for this.

I considered forking jid/jiq and using gojq as a library, but I ended up not going down that route because of reasons that I cannot remember. I also considered using a tui or something but FZF has so much already implemented and has a lot of it right, and I didn't particularly feel like re-inventing the wheel.
hoshsadiq
·5 лет назад·discuss
I tend to use jq a lot. As others have said, sometimes jq can be hard to grasp. Often it requires multiple attempts to get the correct answer. To make it a little easier for me, I've written a helper function[0] that combines it with fzf[1] to run jq as a REPL on any json. It allows to incrementally alter your DSL without having to continually call jq. This is similar to jid/jiq but a little more powerful. It includes functions to change the preview to output raw, compact (or not), and some other things.

It is essentially similar to jqplay but local.

I didn't use jid/jiq because jid uses go-simplejson, which is nowhere near as powerful as jq, and jiq seemed very buggy when I used it and it felt like it was hacked together. Plus there was no where to change jq's arguments while running it.

I'm sure this function can be improved on, but this has been good enough for me so far.

Also, I run gojq[2] instead of jq. It is a drop-in replacement for jq but is written in Go, and has some improvements over jq such as bug fixes, support for yaml input, and it also provides more helpful error messages.

[0] https://github.com/hoshsadiq/dot_files/blob/master/zshrc.d/m...

[1] https://github.com/junegunn/fzf

[2] https://github.com/itchyny/gojq/
hoshsadiq
·5 лет назад·discuss
I got tired of having to download loads of different apps to convert data formats, so I built an all in one[0]. The plan is to add more formats, I just haven't had time yet. I've also had a thought of making it a bit more Swiss army knife like, in that it includes things like encoding/decode, encrypt/decrypt and others similar to cyberchef[1] but on the command line.

[0] https://github.com/hoshsadiq/big-fat-converter/

[1] https://gchq.github.io/CyberChef/