[-] [email protected] 8 points 1 week ago

For doing stuff in a directory, I use a replacement for cd command.

For aliases:

alias +='git add'
alias +p='git add -p'
alias +u='git add -u'
alias -- -='cd -'
alias @='for i in'
alias c='cargo'
alias date='LANG=C date'
alias diff='cdiff'
alias gg='git grep -n'
alias grep='grep --color=auto'
alias ll='ls -o'
alias ls='ls -vFT0 --si --color=auto --time-style=long-iso'
alias rmd='rmdir'

I also have various small scripts and functions:

  • a for package management (think apt but has simplified arguments which makes it faster to use in usual cases),
  • e for opening file in Emacs,
  • g for git,
  • s for sudo.

And here’s ,:

$ cat ~/.local/bin/,
#!/bin/sh

if [ $# -eq 0 ]; then
	paste -sd,
else
	printf '%s\n' "$@" | paste -sd,
fi
[-] [email protected] 5 points 2 weeks ago

Most user won’t notice.

[-] [email protected] 8 points 3 weeks ago

It was in fact a microscopic deal. Linus overreacted. Lemmy and Reddit milked the drama.

[-] [email protected] 8 points 1 month ago* (last edited 1 month ago)

As root:

cd /filesystem/in/question
chown myuser:media -R /filesystem/in/question
find -exec chacl -B -- {} +
find -exec chmod 644 -- {} +
find -type d -exec chmod 755 -- {} +
[-] [email protected] 7 points 1 month ago* (last edited 1 month ago)

He made an edgy/abhorrent¹ joke years ago for which he apologised and Lemmy is even worse than Reddit so people still lach onto that.

¹ Whether it was just edgy or much worse than that I leave to the reader to decide. The joke was that he paid some guys in Africa to make a sign saying ‘Hitler did nothing wrong’ or something to that effect. This one of the things that likely contributed to adpocalypse on YouTube.

[-] [email protected] 5 points 2 months ago

If this was easy, then people would’ve done this a long time ago.

People have done it. It’s called Edge, Opera, Vivaldi etc. And looking at it historically, Safari is a branch from the same tree as well.

[-] [email protected] 6 points 3 months ago

What others wrote except don’t use dd. Use rsync or make a backup with tar. dd will waste time reading unallocated regions of the disk.

[-] [email protected] 8 points 3 months ago

Yes. So is Ctrl+J actually. Ctrl+J corresponds to line feed (LF) and Ctrl+M corresponds to carriage return (CR) ASCII characters. They are typically treated the same way.

[-] [email protected] 6 points 3 months ago
  • Short, single sentence paragraphs.
  • Ends article with ‘Sad’ as its own paragraph.

What kind of BS website is this?

[-] [email protected] 5 points 3 months ago

The thread linked by the OP is Jarkko Sakkinen (kernel maintainer) seemingly saying “show your work, your patch is full of nonsense” in a patch submitted for review to the Linux kernel.

That’s not what he’s saying. He’s saying: ‘You’re using terms which aren’t that familiar to everyone. Could you explain them?’

[-] [email protected] 10 points 3 months ago* (last edited 3 months ago)

If you have an SVG image you can either embed it directly on the website, or link it using img tag. Whatever the case, there’s no need to export it to PNG.

And yes, that will likely result in a smaller website and furthermore images which can scale smoothly.

view more: ‹ prev next ›

mina86

0 post score
0 comment score
joined 3 months ago