Fork me on GitHub

Linux and Security snippets by fduran

Collection of Bash scripts and notes related to Linux server management and security.

List of snippets

Checking for Shellshock attempts in web server logs

Django Install - Nginx uwsgi

Django Install - Apache

Tail follow log file in browser

Check and alert if MySQL slave is not running

Calculate MySQL schema disk size

WordPress Error establishing database connection

MySQL Optimization

Linux Bash generate a number of files of random sizes in a range

Linux exclude a process from being killed by oom killer

Linux mini forensics on unknown running process

Django Celery

Postfix mail review

Run script detached from an SSH terminal

Linux Check SSL connection

rsync example

Linux Test cron

Linux renice many processes with the same name

PHP Send mail with Amazon AWS SES without extra library

Delete files in a folder older than a number of days

MySQL Master-Slave Replication

Create Java KeyStore from SSL certificate

Python script to test/monitor if a Django site using authentication is up

Linux "Too many files open" error

Apache2 optimization

Apache Redirect Subdomain to port

Linux find files opened for writing

Find Linux users that can log in with password

Apache security: installing mod_security

Linux Server Utilization

Linux disk/memory stress test

Linux honeypots

Linux remote syslog

Monitoring Plesk with Monit

Linux check DNS cache snooping

Linux shell here document on the fly

Heroku Python

Apache password protect directory

Linux making disk space

Mysql status, check & repair

Linux: Block IP with iptables

Replace relative to absolute URL in a file

Set permissions for web files & directories

Linux find IPs with most web connections

Linux monitor & react to event in log file

Defending against Spam using Linux Postfix

Apache optimization with Google's mod_pagespeed

Linux mail server for sending only

Linux Passwordless SSH

Linux better command history

Linux get email for SSH Logins

Linux SSH Filesystem

Linux cloning packages (Debian/Ubuntu)

Linux protecting critical directories

Linux file integrity with tripwire

Linux server monitoring with monit

Linux server stats with munin

Linux encryption and decryption

Linux Rootkit check

Linux disk space email alert


Contact

Fernando Duran