Nifty.sh

install

alma8 deploy_cloudlinux.sh Install CloudLinux on CentOS / AlmaLinux.
percona_server_57.sh Install Percona Server 5.7 from Percona repository. AlmaLinux 8
alma9 docker.sh Install latest docker community engine
postgres.sh Install Percona Distribution for PostgreSQL
CentOS 8 convert_to_almalinux.sh Convert CentOS 8 to AlmaLinux
debian10 nginx_sury_php.sh Install nginx with PHP-FPM 7.4 from Sury repository
percona_server_57.sh Install Percona Server 5.7 from Percona repository. Debian 10
ubuntu install_tsm_v7.sh Install TSM on Ubuntu
Universal custombackup.php TSM Backupscript for MySQL database server
dbcloney.sh Install and configure DBCloney from internal repository
exporters.sh Detect services for exporters we support and attempt installs
haproxy.sh Install Haproxy.
lamp_remi_php.sh Install LAMP with PHP from Remi repository.
mysqlbackup.sh Install backupscript for MySQL database server
nginx_remi_php.sh Install nginx with PHP-FPM from Remi repository
percona_server_80.sh Install Percona Server 8.0 from Percona repository
pgbasebackup.sh Install pg_basebackup backupscript for PostgreSQL 17 server
plesk.sh Install Plesk with Percona and mysqlbackup
tsm_client_v8.sh Install or update TSM client version 8

lib

Universal niftylib.sh Library for use in other scripts

misc

CentOS 7 apache_newdomain.php Script for creating vhost config in Apache
fix_plesk.sh Fix Plesk PHP version and mail service.
shared_rm_olddata.sh Delete data from deleted customers not active in Apache
CentOS 8 nixfactory_extend_disk.sh Safely extend /var/www and / on NixFactory web servers
ubuntu hot_add.sh Detect new CPUs and/or RAM in OS
Universal bad_ip_blocker.sh Easily block bad reputation ip addresses
country_ip_blocker.sh Easily block IP of entire countries
expand_apache_conf.php Script to expand Apache conf with all includes
find_spammer_ips.sh Find all trigger IP's for mails in mail queue for a specific domain
gather_systeminfo.sh Perform iotests and gather basic system info
wp_malware_fixer.sh Fix all kinds of nasty WordPress backdoors on shared hosting
yara.sh Run yara scan with our ruleset on dir in param 1

puppet

Universal puppet_client_cleancert.sh Quick script to remove certs on puppet agents
puppet_client_stop.sh Quick script to stop on puppet agents

puppetcluster

Universal install_puppet.sh Installs puppet agent.
upgrade_puppet.sh Upgrades puppet and migrates to new cluster.
upgrade_puppet_noop.sh Upgrades puppet and migrates to new cluster. Runs puppet in nooop mode.

x-deprecated

CentOS 7 docker.sh Install latest docker community engine
exporter_mysqld.sh Install Prometheus MySQLd Exporter and set up MySQL
lamp_remi_php.sh Install LAMP with PHP 8.0 from Remi repository. CentOS 7
new_sharedweb.sh Setup new shared webserver!
nginx_phpfpm_remi.sh Install nginx with PHP-FPM 8.0 from Remi repository. CentOS 7
percona_server_57.sh Install Percona Server 5.7 from Percona repository. CentOS 7
percona_server_80.sh Install Percona Server 8.0 from Percona repository. CentOS 7
tsm_fix_dkchars.sh Fix TSM init script and dsmc alias to support DK charset
unoeuro old_installpuppet.sh LEGACY! Installs puppet agent for old puppet v3 master

x-docker-toolboxes

Universal elk-stack.sh N/A

elastic

standalone

Elastic Standalone

Tested on: 7.x

Creating a standalone elastic server requires some configs.

Read instruction in elasticsearch.yml

Files:
elasticsearch.yml
kibana.yml

varnish

wordpress-1

WordPress VCL

Tested on: 6.0

This VCL is tailored to work with:
https://wordpress.org/support/plugin/varnish-http-purge/


Files:
wordpress.vcl

weboptimize

webp-dual-delivery

WebP Image delivery with nginx/varnish

Tested on: x

This particular example is crafted for WordPress and the WebP Express plugin.
However it can easily be used with something else.

It will work regardless of Varnish.

Using this binary for compression is recommended:
https://developers.google.com/speed/webp/download

The idea is to look at the Accept header. Flow illustrated
by pseudo code here:

 if ( browser accepts webp ) {
if ( we do not already have a webp version ) {
generate webp version;
}
serve webp version;
} else {
serve jpg version;
}


It is implemented using maps in nginx rather than
conditions.

Files:
nginx.conf
varnish.vcl