Francisco Gómez is a user on mstdn.io. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

GNOME life hack: ever wanted to set a region locale for dates and numbers that wasn't available on your settings menu? Use this:

gsettings set org.gnome.system.locale region [locale]

For instance, if you want to use Esperanto dates and numbers, it'd be:

gsettings set org.gnome.system.locale region eo.UTF-8

I'm making a thread of my , starting up there, then filling up with this:

mstdn.io/@espectalll/994567334

I wish I could do this as a moment tho. I should make one in Twitter for sure.

:voidlinux: XBPS small life hack: to check how many packages do you have, do

xbps-query -l | wc -l

YET ANOTHER MORE ! Woo! :blobreach:

If you have installed, you probably also have a media player as well. It's called `ffplay` and it supports piping and weird stuff!

Nautilus/Caja/GNOME :gnome: Thumbnail ! Annoyed by a missing thumbnail? Just do this:

rm -r ~/.cache/thumbnails/fail

Hey there! Want to get 'd? Here's one weird :linux: one!

Do you know REISUB? It uses the magic SysRq thing in Linux to force to reboot/shutdown if possible. en.wikipedia.org/wiki/Magic_Sy

...it turns out, many keyboards won't let you do the final "B" combo, or any other of them. You have to press Alt, press SysRq, release SysRq, press the letter, and then release everything. :rainbowthink: github.com/torvalds/linux/blob

You got 'd!

OK, time! This one is for Git: do you want to use GPG signing with GnuPG 2, but have no idea how to set it up? Well, here it is!

git config --global gpg.program gpg2

Make sure you have installed all of the pinentry packages you may need as well!

stackoverflow.com/a/41054093/1

Every source code file should have a header with, at the absolute very least, a :vim: modeline. Very preferably an :emacs: one as well.

More info:
👉 vimdoc.sourceforge.net/htmldoc
👉 vim.wikia.com/wiki/Modeline_ma
👉 gnu.org/software/emacs/manual/

I can't believe how undocumented and hard to find this is, because it's an amazing little tool that saves programmer lives.

This looks like a way better option, comes preinstalled on GNOME Builder, IntelliJ, Github, Gogs, available for almost every editor. Very worth taking a look at. editorconfig.org/

A guide on how to apply the CC0, the best non-GNU license wiki.creativecommons.org/wiki/

(keep in mind this license does not grant any rights to use trademarks or patents)

: use TOML instead of YAML. Why? Well, why does Cargo (Rust) use it? users.rust-lang.org/t/why-does

It's also a good alternative to INI and JSON for configuration. Take a look at github.com/toml-lang/toml

BTW, YAML has stuff like implicit typing, which is absolute garbage. I've considered StrictYAML, but that's Python-specific (hitchdev.com/strictyaml/why/tu)

OK, so I still didn't go to bed, and I have a to share. Want to get head/tail or init/last on your bourne shell script's parameters? Welp, take a look at this - it's pretty cool, check the screenshot to understand what's going on.

Head: ${@:1:1}
Tail: "${@:2}"
Init: "${@:1:$#-1}"
Last: ${@:$#}

Hey, here's a surprise bonus , everyone! 🎉

Ever wanted to shut down, reboot, etc. from a script without root permissions or dealing with your init? This should work at the very least with GNOME :nombread:

askubuntu.com/a/454077/45926

e.g. shut down the computer with this:

dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.PowerOff" boolean:true

Back to the lifestyle! 😎

Have you ever noticed font rendering sucks on :voidlinux: ? No problem, just do this:

mkdir -p ~/.config/fontconfig/conf.d
ln -s /usr/share/fontconfig/conf.avail/{10-sub-pixel-rgb.conf,70-no-bitmaps.conf} ~/.config/fontconfig/conf.d/

Based on info at blog.brunomiguel.net/geekices/

Hi everyone! Xerzthony Xerztano here, the busiest nerd on the Internet, and today we have a guide on how to to not do shitty encoding with ffmpeg for the most popular codecs.

tl;dr: Read the wrap-up, then check the commands and understand them. The most important part is probably CRF, attached as the second picture on this toot.

And it's time for another , yay~ I missed those...

Actually, they're two, both related to :gnu: Bash! First one you may have read before on my :twitter: or :gnusocial: and it's nice, because it lets you invoke your aliases with `sudo`:

alias sudo='sudo '

This works because aliases on bourne shells, by default, only subsitute the first word of a command by the associated string, BUT if you use a space as the last character of that string, then it looks for aliases for the next word.

You may have also found out that your Bash history sucks, because every single time you write something it ends up there, even if you're just repeating a command over and over. How do you avoid this? Well, you use the HISTCONTROL variable, of course!

export HISTCONTROL=ignoreboth:erasedups

Check the `man` for more info on that. There's also a HISTIGNORE, in which you can set a list of patterns for... ignoring!

Oh, and here you can see how to clean your current history unix.stackexchange.com/a/48716

Today we have a whole new for a lovely piece of bloat – I'm talking, of course, about Firefox! :firefox:

You want better privacy protection? Enable first party isolation by changing this at about:config

privacy.firstparty.isolate = true

This works on both desktop and mobile Firefox! More info here: ghacks.net/2017/11/22/how-to-e

(also read privacytools.io/#about_config if you haven't yet)

Here's a I'm adding into here only because nobody seems to have done it before for some reason lmao :woah:

I'm trying to backup a Linux USB on Windows, thus I need something like dd for copying. All I can find is this Stack Overflow (superuser.com/questions/839502) filled with shitty answers. Most people replying don't even seem to know how to read.

The solution? Well, it turns out I already have Cygwin installed, so:

1) `cat /proc/partitions` to see which device it is
2) Use dd like usual

Hey, everyone! Your favorite show is BACK! That's right, welcome again to the :rainbowdance: :rainbowdance: lifestyle!

Today we have a special one for (U)EFI! Did you know that you can boot straight into Linux, without any bootloader at all? Use `efibootmgr` to create a boot entry that will get you straight into the kernel with whichever options you want.

This is too hardcore for a simple toot so please check Arch and Gentoo's wikis:

wiki.archlinux.org/index.php/E
wiki.gentoo.org/wiki/Efibootmg

Hey there, welcome to our first ever on a Mastodon May (First)! :woah:

While the guys at Mozilla are still figuring out how to Firefox, the best way to use containers is to combine two addons: "Temporary Containers" (addons.mozilla.org/firefox/add) lets you get a... temporary... container (wow) each time you open a tab, while "Multi-Account Containers" (addons.mozilla.org/firefox/add) lets you keep logged in where you need to.

Francisco Gómez @espectalll

Heyyyyyyyyyyyyy surprise! is back, everyone! ikorite :woah:

This one is ffmpeg-related: now that HDR is starting to become more relevant, there's this nice thingie where you can convert it into SDR so it doesn't look like shit on older displays: stevens.li/guides/video/conver

· Web · 0 · 1

And yes, I looked it up because the XZ2 records in 4K HDR and I just can't asdhlashfkljfdhsklfsklfnhkenwkenfksdnbfklsjbzklgjshnzjshrels

Oh hey there, how's it going guys? SURPRISE, the legend, the myth, the unique, is BACK! :conga_parrot: :conga_parrot: :conga_parrot: :conga_parrot: :conga_parrot: :conga_parrot:

Enough celebrating... ever wanted to install :debian: but you just couldn't because the installer didn't have the firmware for your network card? Well... have some non-free images with non-free firmware! (warning: non-free)

cdimage.debian.org/cdimage/uno

BONUS hack: live images! cdimage.debian.org/cdimage/uno