DeltaWingDragon

joined 10 months ago
[–] DeltaWingDragon 3 points 1 month ago

Everything here reminds everyone of that.

[–] DeltaWingDragon 1 points 2 months ago

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.

[–] DeltaWingDragon 4 points 2 months ago

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

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

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

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.

[–] DeltaWingDragon 2 points 2 months ago

Damn Taskbar is gold

[–] DeltaWingDragon 1 points 2 months ago (1 children)

What is unclutter?

[–] DeltaWingDragon 2 points 2 months ago (1 children)

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

[–] DeltaWingDragon 0 points 2 months ago (2 children)

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

[–] DeltaWingDragon 0 points 2 months ago

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

[–] DeltaWingDragon 0 points 2 months ago (1 children)

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.

[–] DeltaWingDragon -1 points 2 months ago (1 children)

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.

[–] DeltaWingDragon 2 points 2 months ago

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)

[–] DeltaWingDragon 1 points 2 months ago

That is a cool app.

view more: ‹ prev next ›