Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Tuesday, 13-Mar-2018 17:37:25 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]

    #lifeHack: use TOML instead of YAML. Why? Well, why does Cargo (Rust) use it? https://users.rust-lang.org/t/why-does-cargo-use-toml/3577/17

    It's also a good alternative to INI and JSON for configuration. Take a look at https://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 (http://hitchdev.com/strictyaml/why/turing-complete-schema)

    In conversation Tuesday, 13-Mar-2018 17:37:25 UTC from mstdn.io permalink

    Attachments


    1. https://mstdn.io/system/media_attachments/files/001/419/137/original/4bbd01b6c1cfbd38.png
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Sunday, 18-Mar-2018 00:12:14 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      OK, so I still didn't go to bed, and I have a #lifeHack 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: ${@:$#}

      In conversation Sunday, 18-Mar-2018 00:12:14 UTC permalink

      Attachments


      1. https://mstdn.io/system/media_attachments/files/001/441/619/original/55060b570d78bda1.png
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Sunday, 18-Mar-2018 00:19:45 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      Hey, here's a surprise bonus #lifeHack, 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:

      https://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

      In conversation Sunday, 18-Mar-2018 00:19:45 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Sunday, 18-Mar-2018 18:19:18 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      Do I count this as a #lifeHack? I guess so?

      Use KDE Connect with GNOME: https://extensions.gnome.org/extension/1319/gsconnect

      In conversation Sunday, 18-Mar-2018 18:19:18 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Wednesday, 21-Mar-2018 10:46:04 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      Back to the #lifeHack 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 http://blog.brunomiguel.net/geekices/how-to-get-good-font-rendering-in-void-linux

      In conversation Wednesday, 21-Mar-2018 10:46:04 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Saturday, 24-Mar-2018 13:35:14 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      Hi everyone! Xerzthony Xerztano here, the busiest #lifeHack nerd on the Internet, and today we have a guide on how to to not do shitty encding 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.

      http://slhck.info/video/2017/03/01/rate-control.html

      In conversation Saturday, 24-Mar-2018 13:35:14 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Saturday, 24-Mar-2018 13:36:31 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      Hi everyone! Xerzthony Xerztano here, the busiest #lifeHack 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.

      In conversation Saturday, 24-Mar-2018 13:36:31 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Saturday, 24-Mar-2018 13:38:02 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      Forgot the link, sorry: http://slhck.info/video/2017/03/01/rate-control.html

      In conversation Saturday, 24-Mar-2018 13:38:02 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Thursday, 05-Apr-2018 07:33:09 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      And it's time for another #lifeHack, 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.

      In conversation Thursday, 05-Apr-2018 07:33:09 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Thursday, 05-Apr-2018 07:38:03 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      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 https://unix.stackexchange.com/a/48716/218415

      In conversation Thursday, 05-Apr-2018 07:38:03 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Monday, 09-Apr-2018 11:03:18 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      Today we have a whole new #lifeHack 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: https://www.ghacks.net/2017/11/22/how-to-enable-first-party-isolation-in-firefox/

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

      In conversation Monday, 09-Apr-2018 11:03:18 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Saturday, 14-Apr-2018 18:08:27 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      Here's a #lifeHack 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 (https://superuser.com/questions/839502/windows-equivalent-for-dd) 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

      In conversation Saturday, 14-Apr-2018 18:08:27 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Saturday, 14-Apr-2018 18:11:43 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      OK, so yes, someone else tried out... and got this error. lol. https://superuser.com/questions/580968/how-to-use-cygwin-to-copy-an-image-from-an-sd-memory-card

      Just run the Cygwin terminal as admin.

      In conversation Saturday, 14-Apr-2018 18:11:43 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Saturday, 14-Apr-2018 18:48:12 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      Contributed my own reply, hopefully it'll be helpful to someone https://superuser.com/a/1314103/359767

      In conversation Saturday, 14-Apr-2018 18:48:12 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Thursday, 26-Apr-2018 13:06:38 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      Hey, everyone! Your favorite show is BACK! That's right, welcome again to the :rainbowdance: #lifeHack :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:

      https://wiki.archlinux.org/index.php/EFISTUB#Using_UEFI_directly
      https://wiki.gentoo.org/wiki/Efibootmgr#Creating_a_boot_entry

      In conversation Thursday, 26-Apr-2018 13:06:38 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Thursday, 26-Apr-2018 13:07:26 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      Hey, everyone! Your favorite show is BACK! That's right, welcome again to the :rainbowdance: #lifeHack :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:

      https://wiki.archlinux.org/index.php/EFISTUB#Using_UEFI_directly
      https://wiki.gentoo.org/wiki/Efibootmgr#Creating_a_boot_entry

      In conversation Thursday, 26-Apr-2018 13:07:26 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Friday, 27-Apr-2018 09:27:20 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      Small Void #lifehack: clean your kernels, just keep the newest one

      sudo vkpurge rm `vkpurge list | sed -n '$!p'`

      In conversation Friday, 27-Apr-2018 09:27:20 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Friday, 27-Apr-2018 09:28:14 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      w8 it doesn't work completely fine...

      In conversation Friday, 27-Apr-2018 09:28:14 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Tuesday, 01-May-2018 18:19:04 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

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

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

      In conversation Tuesday, 01-May-2018 18:19:04 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Tuesday, 01-May-2018 18:19:41 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      Hey there, welcome to our first #lifeHack 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" (https://addons.mozilla.org/firefox/addon/temporary-containers/) lets you get a... temporary... container (wow) each time you open a tab, while "Multi-Account Containers" (https://addons.mozilla.org/firefox/addon/multi-account-containers/) lets you keep logged in where you need to.

      In conversation Tuesday, 01-May-2018 18:19:41 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Monday, 28-May-2018 14:08:23 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

      Heyyyyyyyyyyyyy surprise! #lifeHack 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: https://stevens.li/guides/video/converting-hdr-to-sdr-with-ffmpeg/

      In conversation Monday, 28-May-2018 14:08:23 UTC permalink
    • Xerz 💗 [UNMOVED] (espectalll@mstdn.io)'s status on Monday, 28-May-2018 14:09:00 UTC Xerz 💗 [UNMOVED] Xerz 💗 [UNMOVED]
      in reply to

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

      In conversation Monday, 28-May-2018 14:09:00 UTC permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.