• 0 Posts
  • 9 Comments
Joined 3 months ago
cake
Cake day: August 11th, 2024

help-circle
  • I’m with you. Another perk is a sense of where you are on the planet. If I get up with the sunrise at 22:00 somewhere, then travel somewhere the sun rises around 18:00, it’s obvious the sun is hitting this part of the planet sooner.

    If UTC were widely adopted, it’d be interesting to see what employers near time zones would do. EG start work at 19:00 or 20:00? 19:30? Flex-time with mandatory core hours from 22:00 to 02:00? Maybe I’m over optimistic, but it seems like it would encourage more flexible work hours.



  • pemptago@lemmy.mltoComic Strips@lemmy.worldAds
    link
    fedilink
    English
    arrow-up
    43
    arrow-down
    1
    ·
    2 months ago

    But if you pay for YouTube premium you won’t have ads… for the first couple of years until they corner the market, and change the terms of services several times to maximize profits. uBlock and donating to open source FTW. shout out to yt-dlp







  • I went a little overboard and wrote a one-liner to accurately answer this question

    history|cut -d " " -f 5|sort|uniq -c|sort -nr|head -5
    

    Note: history displays like this for me 20622 2023-02-18 16:41:23 ls I don’t know if that’s because I set HISTTIMEFORMAT='%F %T ' in .bashrc, or if it’s like that for everyone. If it’s different for you change -f 5 to target the command. Use -f 5-7 to include flags and arguments.

    My top 5 (since last install)

       2002 ls
       1296 cd
        455 hx
        427 g
        316 find
    

    g is an alias for gitui. When I include flags and arguments most of the top commands are aliases, often shortcuts to a project directory.

    Not to ramble, but after doing this I figured I should alias the longest, most-used commands (even aliasing ls to l could have saved 2002 keystrokes :P) So I wrote another one-liner to check for available single characters to alias with:

    for c in a b c d e f g h i j k l m n o p q r s t u v w x y z; do [[ ! $(command -v $c) ]] && echo $c; done
    

    In .bash_aliases I’ve added alias b='hx ${HOME}/.bash_aliases' to quickly edit aliases and alias r='source ${HOME}/.bashrc' to reload them.