#swatchbeats — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #swatchbeats, aggregated by home.social.
-
I often make directories during the day named things like, "temp", "test" or "deleteme". This can get annoying when I forget to cleanup and then find myself reissuing mkdir and trying to make "temp2", "test13", etc. … or I end up just smashing the keyboard to create directories named like "jhjkdsh". 😆
Anyway I have now fixed this for myself in the nerdiest way possible!
I create directories named with a timestamp that includes the current "decibeat" 🤓
https://gist.github.com/ruario/9ff920e1e5a89036463d418e1c7bb470
-
I often make directories during the day named things like, "temp", "test" or "deleteme". This can get annoying when I forget to cleanup and then find myself reissuing mkdir and trying to make "temp2", "test13", etc. … or I end up just smashing the keyboard to create directories named like "jhjkdsh". 😆
Anyway I have now fixed this for myself in the nerdiest way possible!
I create directories named with a timestamp that includes the current "decibeat" 🤓
https://gist.github.com/ruario/9ff920e1e5a89036463d418e1c7bb470
-
I often make directories during the day named things like, "temp", "test" or "deleteme". This can get annoying when I forget to cleanup and then find myself reissuing mkdir and trying to make "temp2", "test13", etc. … or I end up just smashing the keyboard to create directories named like "jhjkdsh". 😆
Anyway I have now fixed this for myself in the nerdiest way possible!
I create directories named with a timestamp that includes the current "decibeat" 🤓
https://gist.github.com/ruario/9ff920e1e5a89036463d418e1c7bb470
-
I often make directories during the day named things like, "temp", "test" or "deleteme". This can get annoying when I forget to cleanup and then find myself reissuing mkdir and trying to make "temp2", "test13", etc. … or I end up just smashing the keyboard to create directories named like "jhjkdsh". 😆
Anyway I have now fixed this for myself in the nerdiest way possible!
I create directories named with a timestamp that includes the current "decibeat" 🤓
https://gist.github.com/ruario/9ff920e1e5a89036463d418e1c7bb470
-
I often make directories during the day named things like, "temp", "test" or "deleteme". This can get annoying when I forget to cleanup and then find myself reissuing mkdir and trying to make "temp2", "test13", etc. … or I end up just smashing the keyboard to create directories named like "jhjkdsh". 😆
Anyway I have now fixed this for myself in the nerdiest way possible!
I create directories named with a timestamp that includes the current "decibeat" 🤓
https://gist.github.com/ruario/9ff920e1e5a89036463d418e1c7bb470
-
In front a terminal prompt on Linux, macOS or other *nix? Want to know the current time in Swatch .beats?
$ echo -n @; TZ=UTC-1 date "+((%H*60+%M)*60+%S)/86.4" | bc
I already have my own short shell script for this but just stumbled over this post where the core logic was compacted down to one-liner, which is pretty sweet.
https://mstdn.social/@lpbkdotnet/110196869649648886
Their full version is fancier still using figlet and watch to monitor (check it out).
-
In front a terminal prompt on Linux, macOS or other *nix? Want to know the current time in Swatch .beats?
$ echo -n @; TZ=UTC-1 date "+((%H*60+%M)*60+%S)/86.4" | bc
I already have my own short shell script for this but just stumbled over this post where the core logic was compacted down to one-liner, which is pretty sweet.
https://mstdn.social/@lpbkdotnet/110196869649648886
Their full version is fancier still using figlet and watch to monitor (check it out).
-
In front a terminal prompt on Linux, macOS or other *nix? Want to know the current time in Swatch .beats?
$ echo -n @; TZ=UTC-1 date "+((%H*60+%M)*60+%S)/86.4" | bc
I already have my own short shell script for this but just stumbled over this post where the core logic was compacted down to one-liner, which is pretty sweet.
https://mstdn.social/@lpbkdotnet/110196869649648886
Their full version is fancier still using figlet and watch to monitor (check it out).
-
In front a terminal prompt on Linux, macOS or other *nix? Want to know the current time in Swatch .beats?
$ echo -n @; TZ=UTC-1 date "+((%H*60+%M)*60+%S)/86.4" | bc
I already have my own short shell script for this but just stumbled over this post where the core logic was compacted down to one-liner, which is pretty sweet.
https://mstdn.social/@lpbkdotnet/110196869649648886
Their full version is fancier still using figlet and watch to monitor (check it out).
-
In front a terminal prompt on Linux, macOS or other *nix? Want to know the current time in Swatch .beats?
$ echo -n @; TZ=UTC-1 date "+((%H*60+%M)*60+%S)/86.4" | bc
I already have my own short shell script for this but just stumbled over this post where the core logic was compacted down to one-liner, which is pretty sweet.
https://mstdn.social/@lpbkdotnet/110196869649648886
Their full version is fancier still using figlet and watch to monitor (check it out).