🚀 Công cụ mới **in‑cli**: CLI Bash nhẹ, không phụ thuộc, giúp chạy lệnh đồng thời trên nhiều thư mục nhanh hơn find/xargs, hỗ trợ thực thi song song. Thử ngay, star repo, đóng góp! #opensource #cli #bash #tool #linux #phần_mềm_mã_nguồn #công_cụ #lập_trình

https://www.reddit.com/r/opensource/comments/1qrncqt/incli_simpler_than_findxargs/

[B̲̅A̲̅S̲̅H̲̅]

⚠️ WARNING: insane hacking the FBI will probably knock on my door by the time you read this

never been a fan of a numeric keypad ー but i decided to use the numlock's LED as a notification system when i get mail ー using xdotool allows you to turn it on and off

~y apt install xdotool

> while sleep 0.6180;do
> xdotool key Num_Lock
> done

#GNU #Linux #Bash #sh #BSD #Debian

Current weather for Marienburg SR / SA with the power of wttr.in curl {ba{c{k{z{sh}}}}} and lolcat

Photograph shot with DSLR Nikon using FL Circular Polarizer 81A warming and love

#weather #curl #wttr #bash #csh #ksh #zsh #lolcat #technology #OpenSource #SR #SA #Marienburg #Commewijne

@fbfortune Great tip!

In #ksh / #ksh93, you can just type ‘r + Enter’ and it also immediately pulls up the last command and runs it. It’s an alias for ‘hist - s’ or ‘fc -s’

In #bash or #zsh, if ‘!! + Enter’ is only expanding the previous command but not executing, it’s because histverify is on. To turn it off, add this to your ~/.bashrc:

shopt -u histverify

——————

shopt = shell options command
-u = unset

#FreeBSD #OpenBSD #NetBSD #UNIX #Linux #Shell #Terminal #CLI #Commandline

 #bash
Vous connaissez la blague du mec qui met "set -o errexit" au début de son script et qui cherche pendant 20 minutes pourquoi il n'arrive pas à récupérer le code de sortie de ffmpeg quand il fait une erreur ?

Архивируй жизнь как бэкапы: персональная история и документы в формате git

В какой-то момент я понял, что живу в режиме вечного поиска. Договор аренды — где-то в почте, чеки на технику — в телеге, настройки ноутбука — в заметках, список задач — в пяти разных приложениях, а важные решения — в голове. Я попробовал собрать это как проект: git, структура папок, метаданные, шифрование, хуки, генерация коротких сводок и нормальные бэкапы. Рассказываю, как я это сделал, где облажался и какие куски кода реально помогают поддерживать порядок.

https://habr.com/ru/articles/991080/

#git #бэкапы #шифрование #автоматизация #bash #python #git_hooks #контроль_целостности #хранение_документов

Архивируй жизнь как бэкапы: персональная история и документы в формате git

В какой-то момент я понял, что живу в режиме вечного поиска. Договор аренды — где-то в почте, чеки на технику — в телеге, настройки ноутбука — в заметках, список задач — в пяти разных приложениях, а...

Хабр
currently writing a lot of #bash for work
it's fun
How I know I formed shell-programming habits a long time ago:

Co-worker was trying to put together some OS-level provisioning-automation for a task he was working on. He was asking how to do some things and I was having to go from memory as I didn't have a suitable Linux host to test command-suggestions on. Guy I was talking to said, "it's ok, I can ask Gemini". He took the results of his search and asked me to look. The code was functional, but far from optimal.

First thing I took issue with was "you're piping
grep to awk: if you stick with a piped-grep for what you're doing, you should use cut instead of awk; if you want awk, then you can drop the grep completely". My further plug for cut was that it's much faster, given that it's 1/15th the size of awk.

He tried my suggestion and was like "yeah, that was much faster". I reminded him that
awk is basically a mini language while cut is a very simple tool. And that, for his use-case, while awk will do the trick, it was massive overkill.

Score one for the elderly SA versus Gemini!

#linux
#automation
#scripting
#bash
#grep
#awk
#cut
How I know I formed shell-programming habits a long time ago:

Co-worker was trying to put together some OS-level provisioning-automation for a task he was working on. He was asking how to do some things and I was having to go from memory as I didn't have a suitable Linux host to test command-suggestions on. Guy I was talking to said, "it's ok, I can ask Gemini". He took the results of his search and asked me to look. The code was functional, but far from optimal.

First thing I took issue with was "you're piping
grep to awk: if you stick with a piped-grep for what you're doing, you should use cut instead of awk; if you want awk, then you can drop the grep completely". My further plug for cut was that it's much faster, given that it's 1/15th the size of awk.

He tried my suggestion and was like "yeah, that was much faster". I reminded him that
awk is basically a mini language while cut is a very simple tool. And that, for his use-case, while awk will do the trick, it was massive overkill.

Score one for the elderly SA versus Gemini!

#linux
#automation
#scripting
#bash
#grep
#awk
#cutde
How I know I formed shell-programming habits a long time ago:

Co-worker was trying to put together some OS-level provisioning-automation for a task he was working on. He was asking how to do some things and I was having to go from memory as I didn't have a suitable Linux host to test command-suggestions on. Guy I was talking to said, "it's ok, I can ask Gemini". He took the results of his search and asked me to look. The code was functional, but far from optimal.

First thing I took issue with was "you're piping
grep to awk: if you stick with a piped-grep for what you're doing, you should use cut instead of awk; if you want awk, then you can drop the grep completely". My further plug for cut was that it's much faster, given that it's 1/15th the size of awk.

He tried my suggestion and was like "yeah, that was much faster". I reminded him that
awk is basically a mini language while cut is a very simple tool. And that, for his use-case, while awk will do the trick, it was massive overkill.

Score one for the elderly SA versus Gemini!

#linux
#automation
#scripting
#bash
#grep
#awk
#cut