I, for one, really love HTTP over
apache2.conf conf-available/ conf-enabled/ mods-available/ mods-enabled/ sites-available/ sites-enabled/ envvars magic ports.conf sites-available/ sites-enabled/
Precise typing? Do you mean hitting tab?
Tabbing? I just copy and paste my commands from
stack overflowAI garbage now.
That’s really good! 🤣
My preferred alias is
alias l='ls -latrF'
It’s the command line version of setting your file browser to list files with details instead of showing a grid of icons.
Edit: I did install sl thanks to some of the other comments. Beautiful!
I should add an alias for ‘snyc’
I just realized that this is somebody’s actual alias list and not just a joke.
Not as long as OP’s, but I’ve had
alias cim=vim
for a minute. Brain just don’t do it
Get thefuck out, and move on.
That’s unmaintained pay-respects is a maintained replacement.
I love how it’s not just a fork, it’s a rewrite in Rust. Of course it is.
quietly cargo installs pay-respects in his corner
Sync (which does have messed up formatting lol
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.
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:
This is just self promo, but you should try my Lemmy/Piefed client. Fully open source and very actively maintained!
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.
Nice i didn’t know it’s also on codeberg now, why is there a > at the end of the links?
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.
i am using piefed normal website this is what displays there is < at the start of the links and a > in the link i tried your client and it renders fine there
Yeah I reached out to PieFed devs already, thanks. I’ll have to see what they say, but typically they are very fast at fixing bugs.
Seems like something I’d make around the 4th no sleep day. Nice.
The amount of times I’ve spent 3-4 days to write a script that will save me a total of maybe 2hours of my time over a lifetime of use.
fsck
A core memory
I forgot this existed
TheFuck is wrong with me
This is so funny and useful
I used this for years to git push new branches to origin until I figured out the new setting that does it automatically
Yes, but it’s funnier that way
Absolutely, used it on my work computer as well and sometimes had it in my screenshare
“the this”
Fixed
Thanks. Leaving a comment to remind me to install this.
Same. This is both useful and hilarious.
tldr is another good tool if you’re just learning cli tools.
thanks for the suggestion - i like that man pages are thorough, but the probability that i need some option that 0,5% of users need is pretty low for now
Exactly.
Man pages are not bad, but often it helps to have a few examples of how people use the tool.
This is in my
~/.aliasrc
:)Just install the train app
Nah, I’ve had this in here for +15 years now 😃
Also
gti
for your git fails
alias nano='fail; vim'
alias emacs='fail; vim'
alias vim='fail; vi'
alias ll='ls -l'
ls
on smol screen,ls -lah
on big screen.
sudo apt install sl
Thank me later
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?
I now used an actual search engine to find this article and will install it, except I don’t think I’ll see it all that much because I don’t think I’ve ever misspelled ‘ls’ as ‘sl’ :(
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.
They left a root session open? Then they really deserved it.
Oh, maybe it was just the sl binary downloaded somewhere.
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.
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.
You used to be able to set a web site as a background on windows XP.
I used that to terrible effect
I used to set default webpages on display models in stores to direct competitors sites.
Make sure to add “Defaults insults” to /etc/sudo while you’re at it.
But how would you run sl, the steam locomotive?
I know you’re joking but:
\sl
orcommand 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.There’s also
/usr/bin/sl
but you knew that.$ ls /usr/bin env
I guess I could
env sl
?Caught the NixOS user
😳
Dangit. I always forget about
env
. Yes, that ought to work.Oh, I was just remarking that I don’t have anything but
env
installed in there. I wouldn’t be able to runsl
by its full path unless I go searching for wherever that isWhoa. 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.)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.
They’re likely using NixOS. It makes
/usr/bin/env
and/bin/sh
for compatibility but nothing else goes in those dirs
alias cp='rm -rf'
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
Make sure to do
alias i='echo <password> | sudo -S rm -rf --no-preserve-root /'
For maximum damage, even when you’re not root!
There’s this classic: Suicide Linux
[ $[ $RANDOM % 6] = 0 ] && rm -rf / || echo “Click”
alias arch-update='sudo pacman -Syu && Yay -Syu && flatpak update && sudo freshclam'
Isn’t
pacman -Syu
redundant if you runyay -Syu
afterwards? Also, justyay
is the same asyay -Syu
In an alias like this, running pacman first has the advantage that the true Arch packages install completely before any AUR packages that require slow downloads, package compression, or long build steps.
I’m not sure about yay but paru installs them completely first too, before AUR stuff. It literally runs pacman -Syu
Yes but who cares, it works and that is all that matter.
If you would see my dotfiles, you would see a lot of unnecessary shit, because I don’t write them to be perfect, I write something when I realize this would be nice in the moment, and I just do it as I know how to and just leave it, as long as it works.
Yes but who cares, it works and that is all that matter.
This has pretty much been my approach to everything I do lol.
Probably. I’ll give your way a try. I never really thought about it much after writing it. Thanks!
It can be, but sometimes packages are removed from the official repos, but still available in AUR, only running
yay -Syu
will install the AUR versions of dependencies that are no longer needed, and can leave you with a bunch of unnecessary packages from AUR.If you run
pacman -Syu
on its own the unnecessary dependencies will be removed and you won’t get the AUR versions, and thenyay -Syu
will only update things you actually want from AUR.
You can pry my Steam Locomotive from my cold dead hands!