This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
include C:/nginx/conf/sites-enabled/*.conf; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Full path: /etc/nginx/sites-enabled/novk.tk | |
upstream uWSGI { | |
server 127.0.0.1:8000; | |
} | |
server { | |
listen 80; | |
server_name novk.tk; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# these action should be run with sudo level | |
# activate management plugin first | |
rabbitmq-plugins enable rabbitmq_management | |
# restart the rabbitmq-server | |
service rabbitmq-server restart | |
# download the rabbitmqadmin script locally |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Просмотр: | |
rabbitmqadmin list queues --vhost=my_vhost -u my_admin_on_vhost -p admin_password | |
Очистка: | |
rabbitmqadmin purge queue name=queue_name --vhost=my_vhost -u my_admin_on_vhost -p admin_password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH="${HOME}/.local/bin:$PATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mount -t vboxsf share_name /home/your_user/Desktop/host |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deb [arch=amd64] https://download.docker.com/linux/debian stretch stable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
+ | |
export PATH="$HOME/.pyenv/bin:$PATH" | |
eval "$(pyenv init -)" | |
eval "$(pyenv virtualenv-init -)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
test: | |
image: debian:stable | |
env_file: | |
- ./vars | |
stdin_open: true # Аналог docker run -i. Это оставляет контэйнер запущенным в бэкграунде | |
tty: true # Аналог docker run -t. Это оставляет контэйнер запущенным в бэкграунде |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 7,12,17,21 * * * /home/workupdater/.pyenv/versions/workupdater/bin/python /home/workupdater/www/Zarplata_vacancies_update.py > /dev/null 2>&1 |
OlderNewer