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

Резултати

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

Пребарај: #cygnus

当前筛选 #cygnus清除筛选
Universe Mysteries 🪐

@cosmomyst · Post #3 · 29.07.2025 г., 14:41

🌎 Deep within the constellation Cygnus, the black hole V404 Cygni occasionally unleashes powerful outbursts, ejecting matter at near light-speed in opposing jets. These rare events are so energetic that the black hole briefly outshines its entire host galaxy, offering a fleeting glimpse into the turbulent ballet around stellar remnants. ✨ #blackhole⚡#cygnus⚡#jets 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #279 · 16.09.2025 г., 03:11

🪐 The black hole Cygnus X-1, in the constellation Cygnus, is famous for its powerful X-ray emissions and was one of the first strong black hole candidates ever discovered. Cygnus X-1 pulls material from a massive companion star, creating a swirling disk of superheated gas called an accretion disk, which emits intense X-rays as matter spirals inward toward the point of no return. ✨ #blackholes⚡#accretiondisks⚡#cygnus⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​