Aplicativo com objetivo de fazer as pessoas aproveitarem mais a cidade de Porto Alegre
Ruby 2.6.3
Rails 5.2.1
conda create --name alegreme python=3
source activate alegreme
sudo docker run -p 8050:8050 -p 5023:5023 scrapinghub/splash
scrapy crawl event -s CLOSESPIDER_ITEMCOUNT=5
scrapy-do --pidfile -n scrapy-do --config scrapydo.conf
scrapy-do-cl --url http://159.89.84.18:7654 push-project
scrapy-do-cl schedule-job --url http://159.89.84.18:7654 --project alegreme --spider event --when 'every day at 01:00'
python ml/api/main.py
ENC | PROT | PORT | SERV |
---|---|---|---|
SSH | TCP | 22 | - |
HTTP | TCP | 80 | - |
HTTPS | TCP | 443 | - |
CUSTOM | TCP | 3000 | RAILS |
CUSTOM | TCP | 3030 | API (FLASK) |
CUSTOM | TCP | 8081 | CRONTAB UI |
apt install fail2ban
# make a copy of default config (this copy will overload default params according to manual)
sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
# restart after edit confs
sudo service fail2ban restart
# list rules
sudo iptables -L
# banned ips
sudo zgrep 'Ban' /var/log/fail2ban.log*
# List of all ssh access
last -F
docker-compose up -d --build <service_name>
Docker stop all
docker kill $(docker ps -q)
sudo ./init-letsencrypt.sh
-> https://medium.com/@pentacent/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71
- Verificar se arquivos do github estão atualizados
whenever --update-crontab --load-file /root/alegreme/schedule.rb
crontab -l
Get json with events:
https://www.alegreme.com/train.json?>e=9948
Run label studio front:
docker-compose up label-studio
Run ml label studio:
docker-compose up ls-ml-content-rules
- When create nem model, dont forget to rename class names
- To connect ML use http://service-name:9090
https://github.com/alseambusher/crontab-ui/ https://www.npmjs.com/package/pm2
HOST=159.89.84.18 PORT=8001 BASIC_AUTH_USER=jonataseduardo BASIC_AUTH_PWD=$$$$$$$$$ crontab-ui