@Valso@lemmy.ml cover

This profile is from a federated server and may be incomplete. View on remote instance

I've collected all my useful bash scripts and command aliases into one CLI, but I want more! ( github.com )

So I'm sure we've all spent time writing scripts or figuring out CLIs for that one project we're working on, and then kind of go on to forget what we did. Then, when another project comes along later, you wish you had that script again so you could see how you did that thing you did. ...

Valso , (edited )
@Valso@lemmy.ml avatar

If you want more, I can offer you cases: https://github.com/rado84-github/case-scripts This is just an explanation how they work and how to use them, but once you know the principle, you can do whatever you want with the cases, there's literally no limit to what you can do. You could even put a script file inside the case script file.
I suppose I could build them into a binary file but I prefer to keep them as script files, so that they're truly open source and nothing is hidden, like with a binary file.

Valso ,
@Valso@lemmy.ml avatar
Valso ,
@Valso@lemmy.ml avatar

Hahahahahahaha, you're a... tech "miracle"! For the 10 years with Linux I've never uninstalled the DE by accident or otherwise, or any of the other problems you mentioned.
I have fucked up my computer only once but I did it on purpose - to see what will happen. I had already created a clonezilla backup of a working system, so I was free to experiment and... I decided to uninstall both kernels (rolling and LTS) and reboot. There was no kernel panic because there was no kernel to begin with. 😆

Valso OP ,
@Valso@lemmy.ml avatar

No. That's the brainwashing talking. By keeping you scared about your security, all browser developers keep you under their complete control. And with that they impose their views on what your browser should look like/behave like. But most of the time they simply remove or change options - some are visibly removed/changed, others are either hidden or in about:config and are locked, so that you can't use them or are just rendered inoperable. Security updates are just the excuse to impose their will on you. I had it enough of Mozilla's constant chopping the browser off, so I moved to Waterfox which brings back all options Mozilla ever removed and then some. But by the time you remember that the browser is supposed to serve you, not the other way around, it will be too late.

Valso OP ,
@Valso@lemmy.ml avatar

I've seen those messages but I've always ignored them. I restart whenever I decide, not when Mozilla wants me to. 😆

Valso OP ,
@Valso@lemmy.ml avatar

They provide a vital function, unlike the churches. Still, it's pointless to take pictures of them. The same way I don't understand the logic behind travelling a thousand miles (or more, cuz some of these tourists are Americans) and the only thing they do is take pictures of the brainwashing factories.

Valso OP ,
@Valso@lemmy.ml avatar

Doubtful. Last year the most of them were Americans, this year the tourists are mostly French and Italian. I pretty sure there are churches in all 3 of these countries, especially in Italy, where sits the pedophile HQ - in Rome.

Valso OP ,
@Valso@lemmy.ml avatar

The route they usually take is quite short. I can walk it in 10 minutes without rushing. I did follow them once, out of boredom and saw what they took pictures of - the rocket (some call it a mosque) and the 3 christian churches in the near area. I also asked their guid and she confirmed it. No matter what nation they're from, they always take pictures of churches only. I suppose I can understand taking pictures of one specific church bc it's underground and the reason for that is historical, but the rest...
When it comes to churches and/or bibles, I prefer to do what they show on "Lords of Chaos". :D

Valso OP ,
@Valso@lemmy.ml avatar

Yeah. The majority of the churches in Sofia (Bulgaria) are 300 yo, some are 500+ yo. I think one that is underground is 500+. There are the ruins of an even older than that church but they don't take pictures of that. Go figure...

[Thread, post or comment was deleted by the moderator]

  • Loading...
  • Valso OP ,
    @Valso@lemmy.ml avatar

    Thanks. This makes things... sort of more clear but not by much. Bc I've joined an atheism community which apparently is on .world and I can comment there just fine. But at the same that post I mentioned opens at .world and says I must login. (scratching my head where it doesn't itch 😂)
    Still, thanks to all three of you for the answers, I wasn't sure if my question will be answered or deleted.

    Valso ,
    @Valso@lemmy.ml avatar

    How exactly do they hope to lock devs in github??? That's absurd, there's no way they can achieve that. I can always take my projects elsewhere and there's nothing they can do to stop me.

    Valso ,
    @Valso@lemmy.ml avatar

    What do you think Ubuntu is? Microsoft's touch in it is so obvious that only a fool would miss it.

    Valso ,
    @Valso@lemmy.ml avatar

    They will, if you change the links and share them with at least your users.

    Valso ,
    @Valso@lemmy.ml avatar

    Fortunately I'm safe from that bc right after I assembled my current PC (even before moving the distro to it; yes, moving, not "installing"), I entered BIOS and disabled secure boot, IPM 2.0 and pretty much everything Spyware related. Only then I booted Clonezilla and extracted from the backup image. Since I had done the same on the old PC in BIOS, that means my Arch was never installed with SB and IPM active.

    On top of that the last update of BIOS nearly broke it, so I flashed it back to the more stable version the motherboard came with. And since I have no intention to update BIOS, I'm safe from all that trouble.

    Valso ,
    @Valso@lemmy.ml avatar

    If not, what do you think “lock-in” actually means?

    That they'll lock you out of your repo without access to manage it, maybe? Or threaten you to make your software inoperable in Windows, if you don't comply? IDK, they can always think of sonething but if they think I don't already have full copies of my projects on my computer, they're deeply mistaken. 😂

    Valso OP ,
    @Valso@lemmy.ml avatar

    Hahahaha, right, because the electric vacuum cleaners are soooooo safe, exploding more often than a gasoline car. 🤣 🤣 🤣

    I can't see comments under my post on reddit. Does anyone know why?

    On the reddit I posted something yesterday and now there are two comments under it but for some reason I can't see them. I tried with a clean profile of two browsers (Waterfox & Firefox), disabled the adblocker to see whether they'll appear (they didn't), deleted cookies for reddit and relogged anew but still no comments. Does ...

    Valso OP ,
    @Valso@lemmy.ml avatar

    Interesting. I didn't know that, thanks.

    I don't use reddit much, but I had to post something about an extension in the firefox subreddit and I was surprised to not see the comments. I used to like reddit back when it was all HTML only, ever since it became JS I mostly abandoned it. :)

    Downloads Sidebar Reborn

    4 years ago was the last update of this extension which was then abandoned by its (now unknown) author and eventually removed from AMO. I used it ever since when recently it started glitching a bit, so I decided to revive it with a small improvement upon the original: you can close it the same way it opens - with a click on its ...

    Valso OP ,
    @Valso@lemmy.ml avatar

    Hehe, thank you! 🙂

    Valso OP ,
    @Valso@lemmy.ml avatar

    Been using Arch since 2019, that has never happened to me. Apparently it's all about the device behind the keyboard, not about pacman. 🤣

    Valso OP ,
    @Valso@lemmy.ml avatar

    I don't see much of a difference between the two. That's why now I'm uninstalling everything I use everyday and put them back as "portable" variants - downloaded as tarballs from their sites, github, or downloaded from Arch's archive. Already did that with Telegram, Pinta and the browser, soon Audacious will meet the same fate cuz for some reason it uses GTK2, not GTK3 as it should. Plus, having them as tarballs means I can have better versions than those in mint's repo.

    Too bad that pacman can't be used on Mint, that would be awesome!

    Valso ,
    @Valso@lemmy.ml avatar

    I have no idea who that is but I do know who deserves to go to hell, if it existed: Mark Suckerberg.

    Valso ,
    @Valso@lemmy.ml avatar

    I don't care what happens to these a55h0les! They could drive themselves into the ground for all I care!

    Valso ,
    @Valso@lemmy.ml avatar

    I've always wondered how to remove the audio button, so I'll use your code - thanks!

    I don't suppose you know of any CSS to permanently disable the picture-in-picture mode for all websites?

    Valso ,
    @Valso@lemmy.ml avatar

    I've disabled it long ago and yet it keeps popping up on FB, YT and all other websites. Clearly "disabled" on Firefox means nothing, so... CSS.

    Valso ,
    @Valso@lemmy.ml avatar

    There are other ways to fight ads, if it comes to that. But I won't say what they are - just in case there are spies in our ranks.

    Valso ,
    @Valso@lemmy.ml avatar

    When the country is run by religious wackoes, what else do you expect? CNN is just the tip of the iceberg.

    Valso ,
    @Valso@lemmy.ml avatar

    Arch. Just dropping the dxvk/vkd3d libs in the game main dir with exe and double click. No need for bottles, crates, kegs and other warehouse ware. 😂 Just plain old simple and highly customized Wine 10.5.

    Imagine getting kicked out of your church (and banned from ever talking to your friends and family again) after divorcing your spouse for fucking a dog

    Some more context - in the 1970s the Watchtower, which is the organization in charge of Jehovah’s Witnesses, made it official policy that married people couldn’t do oral or anal. However - those acts also didn’t count as sex, so if your husband fucked another woman in the ass, or had sex with an animal, it wasn’t ...

    Valso ,
    @Valso@lemmy.ml avatar

    This only proves what kind of ret_ards religious creatures are.

    Valso ,
    @Valso@lemmy.ml avatar

    There are other things that keep me away for the android version, no matter what menu they make.
    Things such as:
    • FFA doesn't have actual dials (like Opera for desktop and for android (OA)). Instead it pins whatever it wants on the so called "home screen" and often pins the same page 5-6 times. Bleh!
    • if you happen to enter a "hole" in the reception, FFA loses connection with the outside world and the only thing that helps to fix it, is to reboot the phone. This used to be a thing with OA but I reported it and they fixed it like 3-4 years ago.
    • doesn't have about:config.
    • doesn't have even basic customization options, like setting up custom wallpaper in the browser, like OA does.
    Generally, Opera devs seem to be more responsive to user suggestions. I suggested about:config for FFA at least a year ago, if not even longer than a year, people supported it but FFA still doesn't have about:config.
    So at this point I'm staying with the desktop version only (+ a fork of it) bc I can customize it in any way I want.

    Valso ,
    @Valso@lemmy.ml avatar

    • The manually pinned literally sink somewhere behind the repeatedly pinned links from other sites, so manually is pointless.
    • If "force stop" and then start FFA were enough, I wouldn't mention phone reboot.
    • Never heard of those but I'll definitely try them. Thanks for the info.
    • If it does, I'never found it in the settings. Or, for whatever reason, it doesn't appear on Xiaomi phones.

    Reading Hadriscus' comment below ours from 2 weeks ago, looks like the reason I abandoned the desktop FF (and went for a fork) has been moved to FFA - enorcing their view on what's best for the user without giving the user the option to revert what they have done. Do I have to say this behavior which famous corp. reminds me of or will Mozilla think of it themselves?

    Valso ,
    @Valso@lemmy.ml avatar

    It doesn't require much of a brain to customize wine.
    I just checked GE and... no wonder nothing ever runs, it has nothing. It's literally a copy-paste of the original wine, only with a changed name. GE/original wine - 1.4-1.5 GB. My Wine - 4.3 GB. :D

    https://lemmy.ml/pictrs/image/6ec25611-426f-4820-9eee-b0ebe8ed85ee.png

    As of today it's against the double standards to say "thank you" on Fascistbook!

    Earlier today I commented another's post and thanked them for their understanding in my native language. The sentence was literally "Thank you for your understanding!" and nothing else. Half an hour later I received a warning that my post has been removed because the post was against their double standards. ...

    Valso OP ,
    @Valso@lemmy.ml avatar

    The final straw to leave and this time for good (bc the platform threatened me with IP and network ban, if I deleted my account - which I did) was after I shared a link to a FF extension (in a Firefox group) I revived and improved (the extension was abandoned 4 years ago). Fascistbook deleted my post with two reasons: "fraudulent content" and "offensive content". I didn't know that uploading an extension on AMO (addons dot mozilla dot org) was considered fraudulent and offensive on Fascistbook. Looks like it's true that now Suckerberg hates Linux (bc I mentioned the extension works on both Windows and Linux versions of Firefox) and deletes/block anything related to it.

    In any case, I'm not going back there ever again. I could use a VPN, if I wanted to get back on FB, but I won't. Like the CEO like the "social" network - garbage. It's gotten so bad there that you can't even share a video of Pussycat Dolls because of the word "Pussy" and the bots think that the band's name is a derogatory term for a woman, therefore it gets instantly removed. 🤦‍♂️🤦‍♂️🤦‍♂️

    Valso ,
    @Valso@lemmy.ml avatar

    I've disabled bash history. Or rather, I made that file immutable. I did that bc I never needed the file and on top of that something (IDK what) was constantly filling it with repeated commands that I have used until the file becomes a few hundred megabytes. And since I use aliases (currently ~280 aliases with ~200 bash scripts), I don't need bash history, so I disabled the file. If I need a repeat of a command, I simply repeat the alias.

    The magical braces sounds interesting and I might start using it. Not sure if it will work in a for loop with several commands inside the loop, but it's worth to try, even if just to see what will happen. :)

    Here's another trick you obviously don't know: the for loop is much more readable and understandable (by anyone reading it after you) if you replace the "i" with an actual word, depending on the context, like this:

    for name in *.flac; do newname=$(echo "$name" | rev | cut -f 2- -d '.' | rev) ffmpeg -i "$name" -vn -ar 44100 -ac 2 -ab 1411k -f wav "$newname".wav; done

    This way, any other person who reads your code will be able to better understand the loop, or if they're like me - will understand in principle what the loop does. Back when I was trying to learn programming, the so called programmers (teachers) were unable to explain where the hell that i comes from and so I was unable to understand how the loop works. I can't use a function which I don't understand how it works and/or what it does. It might sound stupid but that's how my brain works. But once I decided to experiment on my own and instead of "i" I wrote "name" like shown above. And suddenly the for loop became crystal clear about what it does and how it works. An AI helped for the "newname=" contents in the brackets, the rest was me.

    The "touch" file looks more useful for a loop where multiple files with different timestamps must be created. For a single use this is a lot harder to remember than
    command > /path/to/filename.txt

    Finally, I'd appreciate a shortcut to stop the execution of a command because sometimes Ctrl+C works, but sometimes it doesn't and instead Ctrl+Z works in its place. If there's a univeral shortcut to cancel the execution of any command, that would be way more useful, IMO.

    Valso ,
    @Valso@lemmy.ml avatar

    Heh, I like the alias! But what does it do, actually? Cuz "expands the last command" doesn't exactly mean "stop the last command".

    Valso ,
    @Valso@lemmy.ml avatar

    .. does exactly the same. Just two dots, no need of cd.

    @mapto@masto.bg avatar mapto , to Bulgaria - България Bulgarian

    Вече имаме и страница за Lemmy в българската уикипедия

    За мен лично тази платформа е дори по-интересна от Mastodon, а българското присъствие е минимално.
    https://bg.wikipedia.org/wiki/Леми_(социална_мрежа)
    bulgariaeu@lemmy.world icon Bulgaria - България

    Valso ,
    @Valso@lemmy.ml avatar

    Защото всичко живо е във Фашистбук. Ако някой ден му закрият сървърите, тук ще се напълни.

    Valso ,
    @Valso@lemmy.ml avatar

    Какви бъгове? Аз съм забелязал само един, но е незначителен.

    Valso ,
    @Valso@lemmy.ml avatar

    Ее, не знам, аз мастодонта нещо не мога да го разбера, за да го харесам и съответно не го ползвам. :)

    Valso ,
    @Valso@lemmy.ml avatar

    Хахахаха, Фашистбук и "свобода на словото"! Бич, плийз, в Русия имаш повече свобода на словото, отколкото във Фейсбоклук! 🤣