what is better in terms of speed with four disks?

#raid #linux #poll #boost

I made a to view all the group memberships on a system:

cut -d: -f1 /etc/passwd | xargs -n 1 -I '{}' sh -c 'echo "$(groups {})"' - {}

If you use or other operating systems that use as package manager, oyu can use this oneliner to upgrade all available packages:

opkg list-upgradable | awk -F' - ' '{print $1}' | tr '\n' ' ' | xargs sh -c 'opkg upgrade $*'

Tested on OpenWRT/LEDE Reboot 17.01.4

Having to navigate three context menus to "paste special (unformatted text)" in Open/Libre Office makes it a real pain to use.

Does anyone know a shortcut for this on ?

If you need a list of installed package names to quickly copy and paste into "apt":

apt list --installed | xargs -n 1 | grep / | awk -F'/' '{print $1}' | xargs

(There might be more efficient solutions)

You have a huuge .img/.iso (or other) file and want it to be smaller because it's mostly "empty"?

fallocate -d <file>

(Works only on some file systems)


How can encrypting my hard drive prevent or (or all of them, idk) from detecting the second battery in my laptop?

I already tried all the CMDLINE args, etc. The only thing that works is installing on a non encrypted drive.

So it seems like will detect my second battery only when having a non encrypted hd. What the flying frick?

`docker run -it centos:centos6` -> bash segfault

`docker run -it centos:centos7` -> works


Wow, since the latest update, DisplayLinkManager needs 105% CPU when I move a composited terminal window around. Without compton it's 60%...

I hate that stupid piece of garbage. How can Windows use two 8K displays without lag but Linux can't even handle a 2K one?


comm.network is a {vaporwave, seapunk, pastelwave}-themed Mastodon instance.