https://realpython.com/blog/python/asynchronous-tasks-with-django-and-celery/
$ pip install celery
$ sudo apt-get install rabbitmq-server
https://realpython.com/blog/python/asynchronous-tasks-with-django-and-celery/
$ pip install celery
$ sudo apt-get install rabbitmq-server
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
/* en la metodología de ducks siempre vamos a tener 3 fases por app: Constantes, reducer y acciones*/ | |
import axios from "axios"; | |
import { act } from "react-dom/cjs/react-dom-test-utils.production.min"; | |
// Constantes | |
const dataInicial = { | |
array: [] | |
} |
import Vue from 'vue' | |
import './plugins/bootstrap-vue' | |
import App from './App.vue' | |
import router from './router' | |
import { | |
BootstrapVue, | |
IconsPlugin | |
} from 'bootstrap-vue' | |
import 'bootstrap/dist/css/bootstrap.css' |
// 1. Go to https://twitter.com/following. | |
// 2. Keep scrolling to the bottom repeatedly until all your followers are loaded. | |
// 3. Run this in your console. | |
[].slice.call(document.querySelectorAll('.unfollow-text')).forEach(function(button) { | |
button.click(); | |
}); |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
sudo cp nginx /etc/init.d/ | |
sudo update-rc.d nginx defaults | |
sudo chmod +x /etc/init.d/nginx | |
/etc/init.d/nginx start |
javascript: | |
var inputs = document.getElementsByClassName('button-text follow-text'); | |
for(var i=0; i<inputs.length;i++) { | |
inputs[i].click(); } |
import httplib | |
import urllib2 | |
from smtplib import SMTP | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEText import MIMEText | |
## defining email alert message | |
def email_alert(message, urldown): | |
toaddrs = ['[email protected]'] | |
msg = MIMEMultipart() |