Skip to content

Instantly share code, notes, and snippets.

@arukaen
arukaen / remove-subs.sh
Created January 22, 2016 23:50
Remove subtitles from MKVs using mkvtoolnix
#!/bin/bash
# Remove subtitles from MKVs
# If no directory is given, work in local dir
if [ "$1" = "" ]; then
DIR="."
else
DIR="$1"
fi
@arukaen
arukaen / rabbitmq_ubuntu.sh
Created December 14, 2017 20:29 — forked from davideicardi/rabbitmq_ubuntu.sh
Install rabbitmq on ubuntu and configure the cluster
Run the following script on each machine of the cluster:
sudo add-apt-repository 'deb http://www.rabbitmq.com/debian/ testing main'"
sudo apt-get update
sudo apt-get -q -y --force-yes install rabbitmq-server=3.4.1-1
sudo invoke-rc.d rabbitmq-server stop
echo 'MYCOOKIEVALUE' | sudo tee /var/lib/rabbitmq/.erlang.cookie
sudo chown rabbitmq:rabbitmq /var/lib/rabbitmq/.erlang.cookie
sudo chmod 400 /var/lib/rabbitmq/.erlang.cookie
@arukaen
arukaen / repository-s3-gov-cloud.md
Created November 23, 2021 17:58
Configuring repository-s3 for ElasticSearch/Kibana backups in GovCloud

Introduction

I hope this gist helps someone as it was a bit of a pain for me to get this working (I couldn't find any documentation on it). If you are using respository-s3 on an ElasticSearch cluster in AWS GovCloud, you will not be able to configure the repository because the Kibana UI does not show some of these options. The best way is to do it via cURL / elasticsearch api as follows:

curl -X PUT "localhost:9200/_snapshot/your_bucket_name?pretty" -H 'Content-Type: application/json' -d'
{
  "type": "s3",
  "settings": {
 "bucket": "your_bucket_name",