Skip to content

Instantly share code, notes, and snippets.

---
- name: Rolling elasticsearch cluster restart
hosts: es
serial: 1
sudo: yes
vars:
uribody_true: '{"transient":{"cluster.routing.allocation.enable":"none"}}'
uribody_false: '{"transient":{"cluster.routing.allocation.enable":"all"}}'
es_http_port: 9200
#!/bin/bash
## Install ISPConfig3 on Ubuntu 14.04 64Bits
## Author: Nilton OS blog.linuxpro.com.br
## http://blog.linuxpro.com.br/posts/instalando-ispconfig3-no-ubuntu-1404.html
## http://www.howtoforge.com/perfect-server-ubuntu-14.04-apache2-php-mysql-pureftpd-bind-dovecot-ispconfig-3-p2
dpkg-reconfigure dash
service apparmor stop
#!/bin/bash
## Install ISPConfig3 on Ubuntu 14.04 64Bits
## Author: Nilton OS blog.linuxpro.com.br
## http://blog.linuxpro.com.br/posts/instalando-ispconfig3-no-ubuntu-1404.html
## http://www.howtoforge.com/the-perfect-server-ubuntu-14.04-nginx-bind-mysql-php-postfix-dovecot-and-ispconfig3-p2
dpkg-reconfigure dash
service apparmor stop
#!/usr/bin/env perl
## O original esta neste Link
## www.arschkrebs.de/postfix/scripts/mailqfmt.pl
## http://www.arschkrebs.de/postfix/scripts/
# Postfix mailq file reformatter, (C) 2003 by Matthias Andree
# This file is licensed to you under the conditions of the
# GNU General Public License v2.
## Install perl-HTTP-Date, perl-JSON
@jigante
jigante / hls.sh
Created November 24, 2024 20:31 — forked from stenuto/hls.sh
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then