What software have you made to improve your workflow or rice? - Desktop Customization & Workflow

Users browsing this thread: 2 Guest(s)
z3bra
Grey Hair Nixers
(23-08-2019, 04:02 PM)jkl Wrote: I do not "improve my rice".
Glad to know! What about your workflow then? :)

I'm not much into ricing either (not anymore at least!), but still write stuff for my workflow:
  • safe - secret keeper that doesn't need gpg
  • pm - stupid but extremely efficient package manager
  • human - convert numbers between units (Mib, Gib, ...)
  • so many scripts I stopped counting...

safe was my answer to my inability to correctly keep/share/maintain a GPG key for use with pass, a CLI password manager. Mine works using a single master password that is defined when storing the first secret, and is used to safely encrypt your secrets. It is shipped with an agent that can remember the key derived from the password so you don't have to input your password for every operation, just like gpg-agent or ssh-agent.
I've been using it for weeks now, and I'm pretty happy with it!

pm is my solution to the complexity of any package building process. My main distro is crux, one of the most simple linux distro out there when it comes to package management. It uses a port tree with really simple build scripts, and there are multiple composable tools to handle the packages. This is the most simple out there, yet I still found it too complex: you had to write a build script (albeit a short one!), then compile and install your software.
pm(1) is stupid: packages are tarballs, and when installing it, pm will list the installed files so you can remove them later. I couple that with a script of mine called "pack" that is basically it:
Code:
n=$(basename $PWD)
v=$(git tag|tail -n1)
[ -f configure ] && ./configure --prefix= --mandir=/man
make DESTDIR=$PWD/.rootdir PREFIX= MANPREFIX=/man install
tar -C .rootdir -cj . > $n@$v.tbz
pm -a $n@$v.tbz
The real script is a bit more complex with more checks and default values, but you get it! Thanks to it, when I want to install a software, all I do is fetch the source, then run "pack" inside it and it gets installed! This is a slightly improved "make; make install" version because it keeps track of installed files so it doesn't accidentally clutter my file tree, and also I can install to $HOME easily!
This is good for softwares using a compile time configuration, and any software because you don't need to write a single line of codw to have it packaged!

human grew out of the frustration that not all tools have a --human-readable flag to convert numbers like 47273726 into 47.3M. Nothing fancy, but extremely useful!

Finally, all my tiny little script (not shared online yet) to help me with all the stuff I do.everyday, like build a list of all the hosts in my /etc/hosts,
ssh/known_hosts, .ssh/config, pipe it into a fuzzy searcher for me to pick, and fire up ssh (I manage a list of 1000+ hosts at work, so you can guess how useful it is). I also have some scripts to fetch passwords from an online vault-like password keeper via API, setup a remote socks.proxy for testing acces from the outside world, select a password from safe(1) with dmenu and store it in the clipboard, tidy my mailbox based on a set of rules, open whatever is in the clipboard based on mimetype OR url+Content-type (like "plumb" on plan9), and so on and so forth :)
There is also this one that looks like black magic to my coworkers that is called like this:
Code:
$ mpcon '.*-dc[0-9]prd1.*'
It will fireup a dvtm instamce controlled via a socket, use the regex to extract a list of hosts (again from /etc/hosts, .ssh/config, ...) and open and create a new window in the dvtm with an ssh connection to this host. In one command, I connect to a few dozen hosts and can multiplex what I type in one window to all others, thus making me the great lord of the servs for administration!

If you're interested, I can share some if my scripts, but they might not be.if any use to you in the current state (lot of hardcoded stuff because it is not meant for wide distribution).



Sometimes I think it would be hyper interesting to sit next to someone and watch them actually use their computer for a day, just to see how they do it, and the tricks they use everyday.
Maybe we should do another screencast video session here at nixers, with real job done! Like pick a task from a random list, and screen yourself while doing it.


Messages In This Thread
RE: What software have you made to improve your workflow or rice? - by z3bra - 25-08-2019, 06:32 AM