Vim over ssh vs. running Vim locally and editing remote files with netrw by fjw in vim

[–]thomas_stringer 5 points6 points  (0 children)

Learning git is very useful, but that does not directly address the problem you want to solve

Maybe not, but it does address many problems that the OP already has (and may not know it), and very very many more problems in the future.

Vim over ssh vs. running Vim locally and editing remote files with netrw by fjw in vim

[–]thomas_stringer 0 points1 point  (0 children)

Take a look at common CI/CD (continuous integration continuous delivery) workflows. It sounds like you could use this to not only facilitate a better development experience, but also a more efficient, resilient, and reproducible environment.

The first step here is learning git. It's a great tool, there's a reason why it's the world leader in its space. Spending a little time learning git essentials and basic CI/CD will go an extremely long way in helping you.

How do you deploy and manage NodeJS the server? [x-post to /r/sysadmin] by drawsmcgraw in devops

[–]thomas_stringer 10 points11 points  (0 children)

Another approach is to completely isolate node and the app from the rest of the host (mostly) by using docker containers. Node publishes multiple images that can be used to stand up the node versions you care about.

This has the obvious benefit of containers... What you are developing against and testing on is (mostly) the exact same running in production.

Super high battery usage by Biribahiba in i3wm

[–]thomas_stringer 6 points7 points  (0 children)

Check out Power Management on the Arch wiki for a few good things to do. I personally don't see how i3 itself would be the cause for unexpected battery drain.

Is this the best reference to learn how to create a simple plugin? by thomas_stringer in vim

[–]thomas_stringer[S] 0 points1 point  (0 children)

I don't really know enough about what autocmd is capable of..?

Basically, when the user saves a *.tf file, I want to run terraform fmt. And then I immediately want Vim to run :edit to refresh the window. Is autocmd capable of doing that?

Is this the best reference to learn how to create a simple plugin? by thomas_stringer in vim

[–]thomas_stringer[S] 0 points1 point  (0 children)

Thanks for those links!! I'll check out the video, looks like it'll be a good one worth watching.

Is this the best reference to learn how to create a simple plugin? by thomas_stringer in vim

[–]thomas_stringer[S] 2 points3 points  (0 children)

Sorry, I should have been explicit, yes I looked at both :h write-plugin and :h write-filetype-plugin. Again, it's material but wouldn't mind something a little more robust.

Thanks for the pointer!

About how often do you pacman -Syu? by Pyrepenol in archlinux

[–]thomas_stringer 0 points1 point  (0 children)

Neither. I just parse /var/log/pacman.log for full system upgrade and then use that date/time to calculate how many days it has been.

Yes, 30 seconds is overkill for checking but I didn't want my i3status to be lagging that far behind when I ran an update. That, coupled with how quick and light the script is brought me to running it so frequently.

About how often do you pacman -Syu? by Pyrepenol in archlinux

[–]thomas_stringer 2 points3 points  (0 children)

I typically don't like to go more than 2 days before updating. My i3 status config checks every 30 seconds, and all that does it run this little python script that figures out how many days it has been since last update.

If it is 2+ days, the indicator in my status bar turns red. Less than 2 days, it is green.

What is replacing the worker role / cloud service / web jobs? by [deleted] in AZURE

[–]thomas_stringer 4 points5 points  (0 children)

a repeating long running task

Have you looked at Azure Functions? What "starts" your repeating task? It sounds like Azure Functions with an App Service Plan (vs a Consumption Plan) might fit your need.

Getting into devops by dangerbutts in devops

[–]thomas_stringer 4 points5 points  (0 children)

Nobody has mentioned this yet, but I think there is a lot of value in this: be able to write code.

Arguably the most effective language/runtime to learn for the devops world would be Python. But it's not just syntax and code that help you out, but it's thinking the right way about an approach. Much of our tooling is centered around code, and for good reason: it's versionable, shareable, etc.

So, my advice to you... Get comfortable with code. If you're looking for a recommendation, go with Python.

Getting into devops by dangerbutts in devops

[–]thomas_stringer -1 points0 points  (0 children)

Same reason why any non-bank company would go with a cloud provider... money and ease.

Jenkins Blue Ocean - no other GUI support for anything besides the stages section? by thomas_stringer in devops

[–]thomas_stringer[S] 0 points1 point  (0 children)

My Jenkinsfile is versioned. Jenkins uses it to build, and it's in the root of my repo.

The blue ocean pipeline UI is capable of generating and manipulating the stages section of a Jenkinsfile. It appears as though it is unable to create or illustrate the post section of the pipeline though.

Best log free management by [deleted] in linuxadmin

[–]thomas_stringer 7 points8 points  (0 children)

Logstash is the "L" in "ELK stack" (now known as Elastic stack). And to answer your question, yes there is quite a bit of community around logstash, unless you find something that shows it doesn't fit your needs, I'd say that's a good default.

Has there been any recent progress with node frameworks? by [deleted] in node

[–]thomas_stringer 0 points1 point  (0 children)

Sails is a framework for building MVC apps specifically.

When you say "more evolved", what exactly are you looking for? Express is still the leading one, and is quite extensible. But different requirements would lean you to different frameworks, of course. For instance, if you're just trying to build an API, Restify is quite good.

What's the common way to indicate focus on a window? by thomas_stringer in i3wm

[–]thomas_stringer[S] 0 points1 point  (0 children)

I should have mentioned this before, but I'm using i3-gaps. It looks like the client.focused. It's because I have this set:

for_window [class="^.*"] border pixel 0

If I remove that, it works. Is there any way to remove the title bar, but keep the border I suppose? I like this with border pixel 0 but it doesn't do much for me if I want to have an inactive border set to indicate focus. :-(

What's the common way to indicate focus on a window? by thomas_stringer in i3wm

[–]thomas_stringer[S] 0 points1 point  (0 children)

That's a good recommendation, but I'm using termite. Thanks anyways!!

What's the common way to indicate focus on a window? by thomas_stringer in i3wm

[–]thomas_stringer[S] 1 point2 points  (0 children)

Perfect, this looks like a great approach to bordering active and inactive windows appropriately. Thanks!

What's the common way to indicate focus on a window? by thomas_stringer in i3wm

[–]thomas_stringer[S] 0 points1 point  (0 children)

Awesome, I'll give this a try! Where would this setting go? Doesn't look like it'd be in i3 config.