TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #9 · 7 јан.

Иногда бывает ситуация когда dev-сервер по какой-либо причине не закрылся и висит в процессах, занимая порт. Это может быть из-за падения IDE или просто сам забыл погасить и закрыл терминал. Для таких случаев я набросал простую функцию с командой: kill_on_port() { port=$(lsof -t -i:$1) echo "KILL PROCESS:" $port sudo kill -9 $port } alias killonport="kill_on_port $@" Код поместить в ~/.bashrc и рестартнуть систему. Если во время старта dev-сервера получаете ошибку что порт уже занят, просто выполните команду, подставив свой порт. Bash kill_on_port 8000 Скорее всего бесполезно, если другой процесс назначен на перезапуск вашего dev-сервера в случае падения. Имя команды можете изменить на любое другое. #linux

Hashtags

Резултати

Пронајдени 2 слични објави

Пребарај: #buddha

当前筛选 #buddha清除筛选
Self-Immolation

@SelfImmolation · Post #908 · 18.07.2022 г., 17:31

How to react if someone is angry with you? One time Brahmin Akkosaka got angry at Buddha, because a man from his clan had become a Bhikkhu. Akkosaka was yelling and insulting the Buddha. Buddha: “What do you think, Akkosaka? Do your friends, relatives, and guests sometimes come to visit you?” Akkosaka: "Sometimes they do, Master Gotama.” Buddha: "Do you then serve them with a variety of food and drinks?” Akkosaka: "Sometimes I do.” Buddha: “But if they don’t accept it, who do those food and drinks belong to?” Akkosaka: “In that case Master Gotama, they still belong to me.” Buddha: “In the same way, Akkosaka, when you abuse, harass, and attack me, who does not abuse, harass, and attack, I don’t accept your insults. They still belong to you, Akkosaka, they still belong to you!" - SN 7.2 Akkosaka Sutta#anger#Buddha