z3rOR0ne

joined 3 years ago
[–] z3rOR0ne@lemmy.ml 5 points 1 year ago (1 children)

Linode Cloud Services (now owned by Akamai). Heard about them on multiple Linux youtubers channels. Been hosting multiple apps and websites with them for a couple years now on their lowest plan and it works well. I'm sure people have their criticisms of them, but I've yet to have any issues.

[–] z3rOR0ne@lemmy.ml 8 points 1 year ago* (last edited 1 year ago)

I have about 25 or so shell scripts I use somewhat regularly and well over 300 aliases. I actually specifically don't wrap package manager related scripts for no reason in particular, but many often do.

My rule for an alias is if the amount of custom flags gets lengthy, and I use it often, yeah it gets an alias. Here's an example of using yt-dlp:

alias ytdl='yt-dlp --sponsorblock-remove all --write-auto-sub -f "bestvideo\*+bestaudio[ext=m4a]/best" -f mp4'

For shell scripts, my rule goes that it should probably have multiple features related around a single idea, that way you can use getopts to create custom flags. For example, I have a script that wraps very basic, but commonly used, git commands, chaining the classic add, commit -m, and push behind a series of read prompts, it has -h flags for help -l for a minimal log output, -i to initialize a new repository (even using github api token to remotely create the repo if you want to use github), and -r to revert back changes to a specified commit.

Generally speaking aliases will get you what you need most of the time in a pinch, but shell scripting is more powerful, versatile, but potentially more time consuming.

Others have rightly pointed out that these abstractions can sometimes negatively impact muscle memory, but IMHO this only really applies if you work as devops or sysadmin, where you are often responsible for running many different Linux servers, but usually this isn't an issue if you have access to the internet and can see your saved aliases and/or scripts (but yeah, instant recall of native commands trumps notes every time).

Additionally, another mentioned using git to keep track of your aliases, which I totally agree with. Whatever you do, back up your aliases and shell scripts, ideally with a git repo of some kind. This not only allows you to take your new scripts/aliases with you wherever you go, but also reference them later in case it's not possible to use them on not your machine.

Hope this helps. Bash can be crazy powerful if you take the time to learn it, and aliases are a great entry point to recognizing that potential. Here's one of my favorites that combines mkdir with cd:

alias mkcd='{ IFS= read -r d && mkdir "$d" && cd "$d"; } <<<' 

Good luck, and have fun.

[–] z3rOR0ne@lemmy.ml 5 points 1 year ago (1 children)

Oh yeah. I forgot about that...well more antifascist Star Wars please...or more specifically more scathing criticism of American fascism and American imperialism in Star Wars please.

[–] z3rOR0ne@lemmy.ml 11 points 1 year ago (5 children)

Disney just needs to pump more money into Andor, but something tells me it's Antifascist themes caused some commotion behind closed doors, so they're trying to capture the same revenue with more tame attempts like Acolyte. It's not working.

[–] z3rOR0ne@lemmy.ml 8 points 1 year ago* (last edited 1 year ago) (1 children)

Its not about letting anyone kill me. I'm just realistic. I run my mouth a lot when it comes to Nazis, and I'm not a fighter. It stands to reason one day my rhetoric will piss off the wrong person, and it stands to reason that'll be what kills me. Depending on how sadistic said person can get, there are worse ways to go.

[–] z3rOR0ne@lemmy.ml 4 points 1 year ago (1 children)

I'm an astoundingly selfish person, and unapologetic about it. Makes for having relationships, romantic or otherwise, pretty much impossible.

I'm middle aged, dated, had relationships in the past, etc., and honestly just don't have the drive to make relationships work. I do the bare minimum to keep my professional relationships in tact, which honestly is exhausting enough, and otherwise just keep to myself. It's so much easier than when I was trying so hard to pretend I was interested in where another person was coming from or what they were going through. Now at least that effort ends after I clock out for the day, and there's less socializing where I work, so there's less of those kinds of social expectations overall.

[–] z3rOR0ne@lemmy.ml 22 points 1 year ago* (last edited 1 year ago) (3 children)

Probably just continue to talk shit to Nazis until one of them kills me.

Y'know, a life well lived.

[–] z3rOR0ne@lemmy.ml 1 points 1 year ago (1 children)

This kind of happened with the xz hack already. I didn't look into it heavily, so this is anecdotal, but accordingly the xz hack relied on systemd to execute the backdoor, so if you didn't have systemd on your machine, the backdoor was essentially inert.

[–] z3rOR0ne@lemmy.ml 5 points 1 year ago* (last edited 1 year ago) (1 children)

I use the AUR all the time, the only thing I have to do is look for systemd as a dependency and avoid that.

The Artix team generally provides init scripts for commonly used packages that rely on init. So for example, if you want to install openvpn, you'd have to install it alongside its script so:

sudo pacman -S openvpn openvpn-runit

Installs the runit init script. It does let you know that (for runit) to initialize it you have to create a soft link to the service directory so after installation:

sudo ln -s /etc/runit/sv/openvpn /run/runit/service/

And then initialize using runit's service manager, sv:

sudo sv start openvpn

Anyways, that's just one instance. I have only had one issue where I had to heavily troubleshoot for an obscure piece of software that relied on systemd as a dependency and there wasn't any alternative...so I simply modified the source code, recompiled the binary and did it myself. But I've been using Artix for nearly 5 years and that is one out of thousands of packages.

[–] z3rOR0ne@lemmy.ml 20 points 1 year ago* (last edited 1 year ago) (9 children)

Artix Linux. Basically Arch without systemd. It has four options for alternative init systems, so you get to see how it compared to systemd (ultimately it shows how a more minimal init approach is all you need in place of systemd, and where systemd has stepped outside of init into what should be part of the OS space, like elogind, etc.)

The Artix team have done an amazing job of writing various init scripts to keep the distro comparable with Arch, have written alternatives to systemd modules, like replacing elogind with their own implementation, seatd, and IMHO is the defacto standard for how you implement a non systemd distro.

Working without systemd, even if you like it from a sys admin standpoint, teaches you what you lose without systemd, which for the average user isn't much. I game, code, administer web servers, etc., all without missing a beat on Artix Linux, and it honestly has taught me so much about Linux after I switched from Arch.

I would consider jumping to Gentoo or Void out of curiosity, but Artix is where I'll be staying for the foreseeable future.

[–] z3rOR0ne@lemmy.ml 3 points 1 year ago (1 children)

Sounds like the intial pitch probably went something like this, except they weren't realistic about the timeline.

[–] z3rOR0ne@lemmy.ml 1 points 1 year ago (1 children)

On Android, from FDroid you can install an app called Seal, which is a minimal frontend for yt-dlp. I discovered it while trying to circumvent issues Newpipe was having with some update to the YouTube API.

Unlike Newpipe forks, which can use the sponsor block API but not when downloading the video directly to your device, Seal allows you to input the custom flags available from the yt-dlp cli, so you can automatically skip annoying sponsor mentions even on your downloaded videos.

view more: ‹ prev next ›