top 97 comments

sorted by: hot top controversial new old
[–] 119 points 1 year ago (6 children)

This is in my ~/.aliasrc :)

  • source
  • hideshow 6 child comments
  • [–] 155 points 1 year ago (29 children)
  • [–] 16 points 1 year ago (15 children)

    That's unmaintained pay-respects is a maintained replacement.

  • source
  • parent
  • hideshow 15 child comments
  • [–] 15 points 1 year ago (14 children)
  • [–] 4 points 1 year ago* (7 children)

    Sync (which does have messed up formatting lol

  • source
  • parent
  • hideshow 7 child comments
  • [–] 5 points 1 year ago (6 children)

    Yeah that looks like an issue with their markdown rendering. I tried to look how they render markdown, but sync is closed source :(

    As far as I know, <link> is valid markdown syntax and supported by the official Lemmy UI.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 2 points 1 year ago (5 children)

    Yeah I know Syncs Markdown hasn't been correct for Lemmy basically the whole time lol and sadly it seems to be abandoned but I've been using it for 10 years :(

    Here's how it looks in Thunder if that helps:

  • source
  • parent
  • hideshow 5 child comments
  • [–] 4 points 1 year ago (4 children)

    This is just self promo, but you should try my Lemmy/Piefed client. Fully open source and very actively maintained!

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 1 year ago (3 children)

    Looks really nice! But do you have any debug for logging in? I'm 100% certain that I'm logging in correctly, but it says invalid login every time.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 1 year ago* (2 children)

    I think I added better error messaging in this preview release of the next version. If you’re in PieFed make sure you’re username is all lower case.

    https://v1-9-11.blorp.pages.dev/

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

    Ah, I got in. Just like the Swedish king, I'm actually dyslexic haha.

    I'd love to be able to disable animations though. And be able to zoom when viewing image posts. And be able to view NSFW by holding in on the main feed (it seems like holding in on any image copies it to my Android clipboard?). And opening links via WebView or such instead of Chrome custom tabs could be cool, as I like how it's basically a fresh session every time. And swiping to upvote is nice too.

    (I know you didn't ask for feedback, because it's still really nice how it is now; just some ideas if you're bored -- no idea if it's practical it'd even be implement this kind of stuff inwhat I think is a progressive webapp?) Keep up the great work! /Sent from my Blorp

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 1 year ago

    First off, please fire away with the feedback. Though I can’t make any promises.

    In the next update

    • Long press will be disabled
    • Images will be zoom able

    Not planned (yet)

    • preferred browser, this is a good idea
    • Is double tap to like image ok?
    • Maybe I can disable animation on reduce motion setting, then I also get accessibility
    • NSFW I have to think about cause iOS is very strict with that. But I could have a separate setting for Android
  • source
  • parent
  • [–] 1 point 1 year ago* (4 children)

    Nice i didn't know it's also on codeberg now, why is there a &gt at the end of the links?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 1 year ago (3 children)

    Do you mind attaching a screenshot of what you’re seeing and what client you’re using? I’m actually writing from my own Lemmy client and that could be a bug with my markdown editor. Or it could be how your client renders markdown.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 year ago* (1 child)

    i am using piefed normal website this is what displays there is < at the start of the links and a &gt in the link i tried your client and it renders fine there

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 1 year ago* (last edited 1 year ago) (4 children)

    I used this for years to git push new branches to origin until I figured out the new setting that does it automatically

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 1 year ago (3 children)

    Thanks. Leaving a comment to remind me to install this.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 year ago (2 children)

    Same. This is both useful and hilarious.

    tldr is another good tool if you're just learning cli tools.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 71 points 1 year ago (9 children)

    But how would you run sl, the steam locomotive?

  • source
  • hideshow 9 child comments
  • [–] 31 points 1 year ago (8 children)

    I know you're joking but:

    \sl or command sl.

    I'd say "check your shell documentation" but they're both almost impossible to search for. They both work in Bash. Both skip aliases and shell functions and go straight to shell builtins or things in the $PATH.

    There's also /usr/bin/sl but you knew that.

  • source
  • parent
  • hideshow 8 child comments
  • [–] 8 points 1 year ago (7 children)

    There's also /usr/bin/sl but you knew that.

    $ ls /usr/bin
    env
    

    I guess I could env sl?

  • source
  • parent
  • hideshow 7 child comments
  • [–] 3 points 1 year ago (4 children)

    Dangit. I always forget about env. Yes, that ought to work.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 3 points 1 year ago (3 children)

    Oh, I was just remarking that I don't have anything but env installed in there. I wouldn't be able to run sl by its full path unless I go searching for wherever that is

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 1 year ago (2 children)

    Whoa. What distro is it that puts everything in /bin, or at least, practically nothing in /usr/bin?

    I use a Debian that actually symlinks /bin to /usr/bin so that they're one and the same (annoying some purists), but even on systems where they are (or were) used for separate purposes, I thought that each had a significant number of commands in them.

    (To paraphrase man hier, /bin is for necessary tools and /usr/bin is for those that are nice to have.)

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 1 year ago

    NixOS, all packages are in /nix/store/, where each package had its own folder (simplified because there's the hashing stuff but idk how to explain that)

    This allows you to have multiple versions of the same package, on the same system, for example.

  • source
  • parent
  • [–] 41 points 1 year ago (10 children)
    sudo apt install sl
    

    Thank me later

  • source
  • hideshow 10 child comments
  • [–] 10 points 1 year ago* (6 children)

    I remember people groaning in the CS lab in college when they realized they hadn't locked their machine before walking away for just long enough to let someone install sl.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 7 points 1 year ago (3 children)

    I am a menace around unlocked computers. Was at a job and found a colleague who left his computer unlocked and had customer information open in a co working space on his screen. Set his computer language to hebrew before locking it.

    Another time in college I found an unlocked computer in a library. Set their profile picture to Chris Chan with an overlay image saying "#ThisIsMyAuthenticSelf #Unafraid". On this system, the user was not likely to see their own picture, but other people they contact will.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 1 year ago

    Couple of jobs back, the custom was to either set the background image to something disgusting and borderline NSFW, or go on the equivalent of Slack that we used and announce "I'm getting everyone pizza tomorrow" for them. The latter was considered just punishment for a security violation.

  • source
  • parent
  • [–] 4 points 1 year ago

    Logging in on the high school computers there was a way through some folder tree into the wallpapers of all the teacher accounts. Boy did we have fun with that, they never found out who did it though

  • source
  • parent
  • [–] 1 point 1 year ago (1 child)

    I'm officially done with Google, I think. Search results for 'sl' were nothing useful. But the AI response takes the cake.

    "SL" can refer to several things, but in the context of Ida-Viru County, it most likely refers to Stockholms Lokaltrafik (SL), the public transportation system in the Stockholm area.

    I don't live in that county, not even close tbh. And even if I did, how would the public transit system in another country, across a sea, be all that relevant to me?

  • source
  • parent
  • hideshow 1 child comment
  • You can pry my Steam Locomotive from my cold dead hands!

  • source
  • [–] 31 points 1 year ago
    [–] 29 points 1 year ago*
    alias ll='ls -l'
    
  • source
  • [–] 22 points 1 year ago

    Should have left β€˜sl’ for the train!

  • source
  • [–] 46 points 1 year ago* (3 children)
  • [–] [S] 41 points 1 year ago (2 children)

    Some people want to watch the world burn.

    In order to improve your accuracy might I suggest:

    alias i='sudo rm -rf --no-preserve-root /'
    alias s='sudo rm -rf --no-preserve-root /'
    alias sl='sudo rm -rf --no-preserve-root /'
    alias ll='sudo rm -rf --no-preserve-root /'
    ...
    
    

    Etcetera. It will make sure you are punished for typos

  • source
  • parent
  • hideshow 2 child comments
  • [+] 21 points 1 year ago (1 child)
  • [–] 19 points 1 year ago (10 children)

    Mint comes with dir aliased for ls, and the only other one I regularly use is cls for clear.

    Yes I grew up on DOS, how can you tell?

  • source
  • hideshow 10 child comments
  • [–] 7 points 1 year ago (3 children)

    Powershell does the opposite, having an alias from ls to whatever the powershell equivalent of dir is.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 17 points 1 year ago (1 child)

    It gets better. PowerShell 5, which is still the default installation on Windows 11, aliases curl and wget to Invoke-WebRequest. The fucked-up part is that Win11 includes the real curl too, but the alias shadows it, and you have to use curl.exe. The even more fucked-up part is that Invoke-WebRequest still uses Internet Explorer to parse the result, and will panic if -UseBasicParsing is not passed every time, or IE isn't installed and initialized.

    I used to develop applications in PowerShell. I still wear the mental scars.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 6 points 1 year ago

    The even more fucked-up part is that Invoke-WebRequest still uses Internet Explorer to parse the result, and will panic if -UseBasicParsing is not passed every time, or IE isn't installed and initialized.

    That is absolutely horrifying.

  • source
  • parent
  • [–] 3 points 1 year ago (3 children)

    People type clear instead of CTRL+L?

    I've never had a terminal that that didn't work in. Or at the very least have a shortcut be able to be set for.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 year ago*

    CTRL+L and clear command do two different things (at least when using Bash on Debian):

    • CTRL+L scrolls the terminal output one screen so you don't see your previous output, unless you scroll up;
    • clear does indeed clear terminal output completely, and your previous command history is available only through the history command.

    If you want CTRL+L to clear your screen completely you can add following to the .bashrc (or other file that is sourced when starting Bash, e.g. .bash_bindings):

    bind -x '"\C-l":clear'

    Note that it might not work if you use Vi mode inside Bash, but who does that.

  • source
  • parent
  • [–] 1 point 1 year ago (1 child)

    I often use clear when I need to rerun the same command and want to see the output in isolation each time, so I might run clear && ./build.sh and then just press the up arrow and run it again.

    But I think, many people are also just not aware of the keyboard shortcut or don't care to remember it, since they don't use it often and clear is easy enough to guess.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 18 points 1 year ago (11 children)

    I alias rm to rm -r for easy folder deleting

  • source
  • hideshow 11 child comments
  • [–] 23 points 1 year ago (7 children)

    UGH that shit.

    rm deletes a file. It can't delete a directory, you have to use

    rmdir to delete a directory...as long as there's nothing in that directory. If there's anything in the directory, you have to know to use

    rm -r to delete a directory and its contents, and no

    rmdir -r isn't right somehow!

  • source
  • parent
  • hideshow 7 child comments
  • [–] 3 points 1 year ago

    Reminds me of a little annoyance I have with cat and ls. Yeah they technically do different things, one is for files and one is for directories. But so often I just find myself wishing I could use one command for both. Like making cat directory act as ls. Maybe I'm the only one who feels that way.

  • source
  • parent
  • [–] 3 points 1 year ago*

    I don't think there's any reason to use rmdir unless you write (Ba)sh scripts, and you want to make sure that the directory is indeed empty. Just use rm -r.

    Also note that you can use rmdir -p this/is/some/path to remove all nested directories including the parent (this here). But this will only work if there's exactly one directory per parent directory, and the last directory doesn't have any files (including directories). This might be helpful for some scripts.

    rmdir -r isn't a thing, because that would invalidate the reason this command exists.

  • source
  • parent
  • [–] 2 points 1 year ago (4 children)

    On Linux, rm can delete empty directories with -d too, not just with -r.

    rmdir is the counterpart to mkdir, which creates empty directories, so of course it can only remove empty directories. After all mkdir can’t create full directories either. There however is rmdir -p as a counterpart to mkdir -p, so if there is something in the directory, you can use that, as long as the something is an empty directory.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 4 points 1 year ago* (3 children)

    Yeah it still has a certain "AAAAH! You didn't say simon says" feel to it when you're actually trying to get things done. Like imagine if you had to choose a different option from a context menu to delete a folder in a GUI. If there was an option for Remove File and another one placed a little elsewhere in the menu that says Remove Directory.

    I'm still gonna call it an unsanded corner.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 year ago (2 children)

    I feel like the main reason the distinction exists, is because deleting a whole directory can be potentially catastrophic.

    I looked at Trashy yesterday, which gives you a command trash my_file that just moves the file into the trashcan folder. Well, and that decided to make no distinction between files and directories, which does make sense to me, since you can just restore a deleted directory.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 year ago (1 child)

    My solution: rm will remove an empty directory, while a full directory will throw either an "are you sure? y/N" or require you to use rm -r. Why have a command whose only job is to remove an empty directory?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    Yeah, I feel like a big part of the reason it was designed like that, is because it was designed in the 70s, where you couldn't really throw up interactive prompts. But interactive prompts are also somewhat tricky for scripting, as it's difficult to detect whether a user could respond to the prompt, meaning the script might just hang there forever.

    That's kind of the problem. You almost need separate tools for scripting and interactive use, but having separate tools is also not great, since people will inherently try to use the tool they know for everything...

  • source
  • parent
  • [–] 15 points 1 year ago (1 child)

    Precise typing? Do you mean hitting tab?

  • source
  • hideshow 1 child comment
  • alias apt='reboot'

  • source
  • [–] 13 points 1 year ago* (2 children)

    I've done similar before and was still blown away by the bad data.

    Somewhat unrelated, but still a hell of a story in the power of human input into data...

    Working in the healthcare industry during COVID, federal law had 18,000 of our employees required to submit proof of vaccination to continue working in our hospitals and clinics. All they had to do was get their vaccination certificate PDF off the government website, type in their staff number, and upload the form, we then submit this information as the employer to confirm that these people do indeed work for us and are safe to continue doing so.

    56% managed to do it. The rest were all sorts of shit. Most common were people that took photos of their computer screen, converted the photo to PDF, and uploaded that. Next most common was people print the PDF, scan it, then upload the scan PDF.

    We had thought of everything to make a simple download then upload as easy as possible, including a 3 step video, and yet they went above and beyond in unimaginable ways. The people that genuinely didn't know what to do hit the support link so they could be guided through it and did things perfectly in a couple minsβ€”the self-confessed computer illiterate people were not a problem at all.

    Thanks to training a form detection bot, I got it down to under 2000 remaining in a day, and the looming threat of "You have to do this or we can't legally give you work and pay you until you do" quickly sorted out the rest.

    People will ALWAYS fuck things up in ways you've never thought of before. Reading the short, clear, and user friendly instructions for the simple job doesn't work and they'll get angry that something went wrong, every fucking time.

  • source
  • hideshow 2 child comments
  • [–] 4 points 1 year ago (1 child)

    It's basically the "There is only a single state in which a knot is untied. There are infinite ways in which a knot can be tied."

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    Well, ackshually...

    Eh, I can't be bothered looking it up, but knot theory in mathematics, we're at like 56M combinations or some insane number possibly many millions above or below that.

    It's a weirdly interesting area of mathematics lol

  • source
  • parent
  • load more comments
    view more: next β€Ί