Who has two thumbs and definitely remembers to use their tools?
Well, the first half of that question would be me. But since I just thought to myself, "Hey, I should use git on this collection of files," and discovered that I did in fact already initialize git for this thing. All the way back in January of 2016 and then promptly forgot to commit changes after March of 2016... Oops? I did at least get around to adding a README file so I can more easily remind myself, "Hey, Fluff, you set up Python invoke to simplify working with this thing. Seriously, here are the two tasks, use them!"
Anyway, if you use python and you have something that you regularly run one or more sets of commands on, but with just enough time between each run that you're prone to forgetting the commands? Take a look at Invoke. The thing I'm using it with here is simple enough it could be a simple shell script, but with Invoke get easy help text for each task by adding a simple docstring. If you're a Ruby person then yeah, it's kind of like Rake. And if you're a C person it's kind of like Make but without the near half century of pent up hatred at its own existence taken out on those who use it.
Anyway, if you use python and you have something that you regularly run one or more sets of commands on, but with just enough time between each run that you're prone to forgetting the commands? Take a look at Invoke. The thing I'm using it with here is simple enough it could be a simple shell script, but with Invoke get easy help text for each task by adding a simple docstring. If you're a Ruby person then yeah, it's kind of like Rake. And if you're a C person it's kind of like Make but without the near half century of pent up hatred at its own existence taken out on those who use it.
no subject
I want it mainly for simple version control. I used a source control system, but it was standalone and back in the '90s. It was called Sourcerer's Apprentice and it integrated beautifully with the BRIEF editor, which I loved dearly but it was killed by GUIs.
The bit that might be a little tricky is I work on both Mac and a PC platforms, mainly Macs. I'm putting my source code on a OneDrive share that's common to my (currently) three computers. I use Microsoft's Visual Studio Code editor so that I have a common editor between the two platforms.
Any suggestion would be wonderful!
no subject
Regarding onedrive, I vaguely recalled hearing warnings about keeping git (and subversion, mercurial, etc) repositories on dropbox and checking now apparently things folder syncing services do to try and be more efficient can result in corrupted code repositories. Googling found a git plugin to sidestep those issues with dropbox and I suspect there are probably tools for other services, but they may be more useful locations for archived snapshots rather than live repos.
While you can set up a github like fancy repository host, you don't need github, gitea, etc. You can point git at any bit of storage you can access by ssh using the style, "git clone ssh://[user@]server/project.git" (quoted from the book linked to above). If you want more than just access via ssh, but still less overhead than one of the web gui tools there's Gitolite, which piggybacks on top of ssh to give something that has fine grained access control or the ability to create new repositories from the command line or get a listing of all the git repos you've created/have access to. It's lightweight enough that for a while back before Covid and spending almost two years working from home I had one running on a micro server (a VPS with only 128MB of memory, a single shared processor core, and a couple GBs of disk) and whenever I would look at the account dashboard barely any of the memory of available cpu cycles were in use. I've had some thoughts of setting it up again, but I'll probably just use straight up git and ssh unless I get really bored and decide to burn a half hour installing it again.
no subject
Thanks! I'll download these and look 'em over. I have some web site hosting that I could probably deploy something on if I wanted: I really need to get ahold of them and resolve two of my sites being dow.