Skip to content

Instantly share code, notes, and snippets.

View Rotron's full-sized avatar

Federico Saccà Rotron

View GitHub Profile
@Rotron
Rotron / Gulp Se-tup
Last active February 14, 2020 12:51
Gulp 4.x Configuration Pack-js pack-css minify-html
npm install --save-dev gulp gulp-concat gulp-clean-css gulp-minify gulp-htmlmin gulp-html-replace
var gulp = require('gulp');
var concat = require('gulp-concat');
var minify = require('gulp-minify');
var cleanCss = require('gulp-clean-css');
var htmlmin = require('gulp-htmlmin');
var htmlreplace = require('gulp-html-replace');
@Rotron
Rotron / cleanup_ftp.sh
Created March 4, 2020 10:07 — forked from allanscullion/cleanup_ftp.sh
Bash script to remove old files from an FTP server
#!/bin/bash
PROGNAME=$(basename $0)
OUTFILE="/tmp/ftplist.$RANDOM.txt"
CMDFILE="/tmp/ftpcmd.$RANDOM.txt"
ndays=14
print_usage() {
echo ""
@Rotron
Rotron / cleanup_ftp.sh
Created March 4, 2020 10:07 — forked from allanscullion/cleanup_ftp.sh
Bash script to remove old files from an FTP server
#!/bin/bash
PROGNAME=$(basename $0)
OUTFILE="/tmp/ftplist.$RANDOM.txt"
CMDFILE="/tmp/ftpcmd.$RANDOM.txt"
ndays=14
print_usage() {
echo ""
@Rotron
Rotron / nginx-tuning.md
Created April 11, 2020 21:52 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

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.