Иногда бывает ситуация когда 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
Dynamic Music Pill🎵
A sleek GNOME music widget that displays your current track in a dynamic pill-shaped UI with album art, visualizer, smooth animations, and quick playback controls. It supports adaptive colors, customizable layout, and a pop-up player for an enhanced desktop music experience.
👑Features:
🎵 Pill-shaped music controller widget for GNOME
🖥️ Works on Top Panel or Dock (Dash)
📊 Live audio visualizer (wave / beat styles)
🎨 Adaptive colors from album art
⚡ Smooth GPU-accelerated animations (60 FPS)
📝 Scrolling song title & artist text
⏯️ Play / Pause / Next / Previous controls
⏩ Seek bar to jump in the song
🔊 Volume control with mouse scroll
🖱️ Custom mouse actions (left / middle / right click)
📂 Pop-up music player menu
💿 Spinning vinyl album art animation
🔄 Smooth transition between tracks
🌫️ Transparency & UI styling options
📏 Custom size, margins, and position
🎮 Game mode (disable animations in fullscreen apps)
💾 Backup & restore settings (JSON)
🚫 Option to hide default GNOME media controls.
- 📥Installation
- 🖥Preview
- 🧑💻SourceCode
❤️Follow us:@AndroBusket
📨 Tags: #desktop#linux#gnome#extension
👩💻Бесплатный практический курс по Bash.
• Набор встроенных команд bash (и его аналогов sh, zsh, etc) совместим с любым POSIX-совместимым приложением в #Linux, что позволяет встроить в ваш bash-скрипт любое совместимое приложение. Это дает очень большой набор возможностей в сфере автоматизации рутинных задач администрирования систем Linux, деплоя и сборки приложений, различных пакетных обработок, в том числе аудио и видео.
• Суть bash-скриптов — записать все ваши действия в один файл и выполнять их по необходимости. Благодаря этому курсу Вы освоите написание bash-скриптов с нуля и получите представление, какую пользу можно из них извлечь:
• Start Learning Bash;
• Create and Run Your First Bash Shell Script;
• Understanding Variables in Bash Shell Scripting;
• Passing Arguments to Bash Scripts;
• Using Arrays in Bash;
• Using Arithmetic Operators in Bash Scripting;
• String Operations in Bash;
• Decision Making With If Else and Case Statements;
• Loops in Bash;
• Using Functions in Bash;
• Automation With Bash.
#bash#Курс
👩💻 Oracle Linux Monitoring and Logging.
• Оказывается, что у Oracle есть плейлист с короткими видео для начинающих, которые освещают различные утилиты для мониторинга информации о состоянии системы (vmstat, iostat, rsyslog ну и т.д.):
• System Logging with rsyslog on Oracle Linux;
• System Logging with logwatch on Oracle Linux;
• System Logging with journald on Oracle Linux;
• Using the sosreport Utility on Oracle Linux;
• Using the iostat Utility on Oracle Linux;
• Using the mpstat Utility on Oracle Linux;
• Using the vmstat Utility on Oracle Linux;
• Using the netstat Utility on Oracle Linux;
• Using the top Utility on Oracle Linux;
• Use Gprofng for Performance Profiling Applications;
• Linux Auditing System on Oracle Linux.
#Видео#Linux#Мониторинг