Skip to content

Instantly share code, notes, and snippets.

View LadySmith's full-sized avatar
💭
I may be slow to respond.

LadySmith

💭
I may be slow to respond.
  • Istanbul
  • 17:59 (UTC +03:00)
View GitHub Profile
@LadySmith
LadySmith / ta-es_watermark.md
Created November 25, 2024 18:46
Elasticsearch watermark setting

Elasticserach Docs

  1. Check for existing persistent limits:
curl -X GET "http://archivist-es:9200/_cluster/settings" -u elastic:${ELASTIC_PASSWORD}

If limits are already set up, reset them first:

@LadySmith
LadySmith / free_ports.sh
Created August 17, 2021 23:23 — forked from hjbotha/free_ports.sh
Free ports 80 and 443 on Synology NAS
#! /bin/bash
# NEWLY ADDED BACKUP FUNCTIONALITY IS NOT FULLY TESTED YET, USE WITH CARE, ESPECIALLY DELETION
# Developed for DSM 6. Not tested on other versions.
# Steps to install
# Save this script in one of your shares
# Backup /usr/syno/share/nginx/ as follows:
# # cd /usr/syno/share/
# # tar cvf ~/nginx.tar nginx
# Run this script as root
@LadySmith
LadySmith / plex_ihd_remove.sh
Created May 6, 2021 20:38
Synology DS920+ Plex hw transcoding fix
#!/usr/bin/env bash
# Check Plex iHD driver. If exists, delete. Should fix buffering on HW Transcoding.
file="/volume1/@appstore/Plex Media Server/lib/dri/iHD_drv_video.so"
filebackup="/volume1/@appstore/Plex Media Server/lib/dri/iHD_drv_video.so.bak"
if [ -f "$file" ] ; then
echo "Stopping Plex"; echo;
synoservicectl --stop "pkgctl-Plex Media Server" ;
echo "Found iHD, deleting..."; echo;