Search
10 results for “softlandinglinuxsystem”
-
https://github.com/sjaturner/cutex
I wrote a small Bash wrapper for cut.
I like cut and use it a lot. However, for lines with lots of fields I spend a while guessing and missing the field numbers which I actually want.
Typical workflow:
"Oh, that looks like field 12, doh! field 15, no ... 14 ..." and so on. Irritating and it sort of breaks the flow while building a pipeline.
The cut extension, cutex, allows you to place a solitary -f flag on the end of your command line. That will enumerate all the fields in a list running down the screen. Pick the fields and ranges you want, add those after the -f flag and carry on.
This also works for columns, with a -c at the end of the line - but I find I use that mode less.
Since the extension uses cut to generate the enumerated list, it should get that right. Also, the overhead should be small as it maps straight to cut when you supply the fields.
-
https://gist.github.com/sjaturner/787e94646949e266109f264d0e370893
#linux #x11 #graphics #xterm #commandline
At work, I ssh to remote machines and use tmux. Debian Trixie now has Sixel support enabled in tmux, so you can have graphics in the terminal 😃
It's often useful to have a quick look at some data without copying it elsewhere - or relying on X11 graphics.
There are lots more possibilities with img2sixel, of course.
The Gist shows how to set things up for Octave plotting in an Xterm. A lot of more modern terminals support Sixel, too.
-
Poor Bertie, at the vets and just about to have a pedicure. He's not happy about it ... #cats #photo #polydactylcats #whiskerswednesday
-
I wrote a simple C function wrapper generator. I've made a few notes about the background to this, here:
https://github.com/sjaturner/wrap/blob/main/BACKGROUND.md
If your code contains a C function with simple stdint or string parameters, like this:
int first_function(int64_t foo, uint64_t bar);
You can wrap it and then call it by interpreting a string like this:
"first_function 12 34"
There's a bit more detail in the README.md, visible here: https://github.com/sjaturner/wrap
I'm aware of several alternative approaches (some of which I mentioned in BACKGROUND.md) but am interested to hear about other tools for this 🙂
-
This is the best spot in the house on a sunny morning. #caturday #polydactylcats #photo
-
Bertie's on the table again. He's not meant to be on the table but rules are for other cats.
-
#Caturday #Polydactyl #polydactylcat #photo Bertie in one of his favorite warm spots in the house. He's on a fleece blanket right next to a radiator ... Thumbs up!
-
#Caturday #photo #polydactylcats #polydactylcat
Monochrome photo of Bertie perched in a comfortable spot in the study.
-
I keep all of my shell history in flat text files, forever. While looking for something else, I found this monstrosity:
https://gist.github.com/sjaturner/a74545308944d578c1a477e9eeeed0fe
I used it to rotate photos in an old Picassa archive. Essentially, Picassa never rotated the pictures, it kept an .ini file which described the operations to perform on each file.
This is not an example of a good command line, more of an illustration of how you can build up complex operations with pipes, a stage at a time.
-
Bertie in the sun. #Caturday #photo #Polydactyl