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 слични објави

Пребарај: #madeinsa

当前筛选 #madeinsa清除筛选

🌀💦 South African Invention That Changed Pool Life Did you know the automatic pool cleaner was invented in 🇿🇦 South Africa? 👨‍🔧 In 1974, hydraulics engineer Ferdinand Chauvier (pictured), who had moved from the Belgian Congo to South Africa, came up with a way to take the hassle out of pool cleaning. The result? The legendary Kreepy Krauly — one of the very first automatic pool cleaners, designed and built in Springs, South Africa. 🌍✨ His invention made pools around the world easier to maintain — and became a proudly South African contribution to everyday comfort. 🏊‍♂️ From Johannesburg to Los Angeles, millions of pools have been cleaned thanks to Chauvier’s idea. #Inventions#SouthAfrica#Innovation#KreepyKrauly#History#MadeInSA

🇿🇦Did you know? Pratley Putty, invented by South African engineer George Montague Pratley, is one of the strongest adhesives ever made — and the only South African product to go to the Moon! 🌕 🚀 Used on the Apollo 11 mission, it proved its strength in space and remains a go-to fix for tough jobs worldwide. 💪 📷 Photos #Innovation#SouthAfrica#PratleyPutty#GeorgePratley#Apollo11#SpaceTech#MadeInSA#Engineering