DeltaWingDragon

@DeltaWingDragon@sh.itjust.works
4 Post – 29 Comments
Joined 11 months ago

OK, got it

1 more...

Null\0bytes?\0This\0is\0big\0brain\0time.

as opposed to chrome?

Debian or OpenSUSE. Can't go wrong.

Here's a few of the micro-hacks that I've hacked up in the past.

::: spoiler A 2-line script to chroot into Debian when logging in as a certain user on FreeBSD.

#!/bin/sh  

clear  
doas chroot /linux /bin/login

:::

::: spoiler I didn't have an IDE, so I just made a script called ide which runs Vim, and then compiles the code and makes it executable.

#!/bin/sh
#Works only for C
vim $1.c && cc -O3 -Wall -Werror -Wno-unused-result $1.c -o $1
#MODE=`stat -f "%OLp" $1`
if ("stat -f "%OLp" $1 | grep -e 6 -e 4 -e 2") then
	chmod +x $1
fi

:::

::: spoiler This thing, called demoronize, which does what it says in the comments

#!/bin/sh

#dos2unix -O -e -s $1 | sed 's/    /	/g' | sed 's/“/"/g' | sed 's/”/"/g'
cat $1 | sed 's/    /	/g' | sed 's/“/"/g' | sed 's/”/"/g'
#Convert DOS line endings to Unix ones and add a final newline if there isn't one,
#replace sequence of 4 spaces with tab,
#and replace "smart" quotes with normal ones

:::

I just keep those ones for historical value, but there's one hack I use every day. My keyboard doesn't have a function key (Fn), so I use the Super/Windows key instead.
I have xdotool keyup Super_L keyup Super_R keyup F4 key XF86Sleep bound to a custom keyboard shortcut. It unpresses the keys used for the shortcut (Super + F4), then presses the sleep key.

Everything here reminds everyone of that.

Today on "Was this caused by stupidity or malice"...

Microsoft said earlier this month it would apply “a Secure Boot Advanced Targeting (SBAT) update to block vulnerable Linux boot loaders that could have an impact on Windows security,”

(emphasis mine)

Linux Mint has Xpad for sticky notes.

Damn Taskbar is gold

And your first pet's name, and your social security number

You mean general dynamics?

1 more...

That is a cool app.

X pronounced the way it is in Chinese.

I need the exact location of the trash so I can specify it in the excludes for my backup tool. If it changes with the DE, then I have to change the excludes. But it doesn't.

Wait, they're closed-sourcing Ubuntu? Doesn't the GPL say that any fork or derivative of any GPL'd product has to have the GPL? It's supposed to propagate.

1 more...

That explains... some

  • Started on a Windows Vista machine, but I dual-booted Mint on it when it started to run slow.
  • The software broke or got corrupted, so I installed Lubuntu.
  • Lubuntu started to freeze, so I installed Mint again.

The hardware was really outdated at this point, so I got a new machine. Windows 8.1.

Got a different new computer with Windows 10. Started trying out lots of distros of VMs.

  • Switched out the drive and installed... OpenSUSE, I think?
  • Catastrophic system error during an update, left the system corrupted. I installed Debian.
  • Another system error (which may have been caused by me) led me to install FreeBSD.
  • FreeBSD was usable, but not super usable. I installed OpenSUSE Tumbleweed.
  • Catastrophic system error during an update, left the system corrupted. I installed Debian (again).

tldr: Windows Vista -> Mint -> Lubuntu -> Mint again -> Windows 8.1 (new computer) -> Windows 10 (new computer) -> OpenSUSE Leap -> Debian -> FreeBSD -> OpenSUSE Tumbleweed -> Debian again

Vista on one machine, 10 on another.

Vista was actually good, it just started running slow because the computer was old. Switched to Mint and Lubuntu, those ran faster.

I got a new computer, and went, gasp... BACK TO WINDOWS! Kept planning the switch to Linux for years, because I liked the operating system, then got an SSD and just did it. Installed OpenSUSE, currently on Debian.

It wasn't anything big that caused me to switch. It was just a general feeling of "oh, maybe I'll switch" and annoyance at Windows, and then I got a new SSD.

Now I'm on Cinnamon. I am using QRedshift. It works, and I can set the time manually.

Lesson: Don't use redshift-gtk, use QRedshift!

Mousepad? The standard text editor on XFCE?

What is unclutter?

Upvoted solely for the last line

Got it on this instance!

!thomastheplankengine@lemmy.blahaj.zone

What if I'm on another minimal distro, like Artix, that doesn't use systemd? Journald is a systemd thing, and I'm not going to install systemd on top of a perfectly good init system.

Mounting /var/log in RAM just seems like more trouble than it's worth.

Not really trying to accomplish much, just trying to save a few seconds in the manual installation process.

1 more...

Got a source about Adguard? I use it on my phone, and I don't get any ads.

What if I'm on another minimal distro, like Artix, that doesn't use systemd? Journald is a systemd thing, and I'm not going to install systemd on top of a perfectly good init system.