Skip to content

Instantly share code, notes, and snippets.

View eliezerfot123's full-sized avatar

Eliezer Romero eliezerfot123

View GitHub Profile
@eliezerfot123
eliezerfot123 / README.md
Created July 25, 2022 21:10 — forked from mau21mau/README.md
Configure Celery + Supervisor With Django
@eliezerfot123
eliezerfot123 / nginx-tuning.md
Created July 8, 2022 15:37 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

NGINX Tuning For Best Performance

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();
});

Parar todos los contenedores

docker stop $(docker ps -a -q)

Eliminar todos los contenedores

docker rm $(docker ps -a -q)

Eliminar todas las imágenes

docker rmi $(docker images -q)

#! /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
@eliezerfot123
eliezerfot123 / nginx
Created January 19, 2017 19:28 — forked from hisea/nginx
ubuntu passenger nginx init.d script
sudo cp nginx /etc/init.d/
sudo update-rc.d nginx defaults
sudo chmod +x /etc/init.d/nginx
/etc/init.d/nginx start
@eliezerfot123
eliezerfot123 / twitterFollow
Created August 18, 2016 22:27 — forked from nachoal/twitterFollow
Script para seguir automáticamente a todas las cuentas de twitter en una pantalla
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()