Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/haproxy-systemd-wrapper.c b/src/haproxy-systemd-wrapper.c
index e588af9..bfce4e6 100644
--- a/src/haproxy-systemd-wrapper.c
+++ b/src/haproxy-systemd-wrapper.c
@@ -60,6 +60,8 @@ static void locate_haproxy(char *buffer, size_t buffer_size)
return;
}
+static int read_pids(char ***pid_strv);
+
$ cat ~/.ssh/config
Host *
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
Compression yes
ControlMaster auto
ControlPath /tmp/ssh_mux_%h_%p_%r
ControlPersist 4h
TCPKeepAlive no
docker_version=$(docker version 2>/dev/null | awk '
BEGIN {
version = 0
client_version = 0
server_version = 0
}
{
if($1 == "Server:") {
server = 1
client = 0
{% if grains['os_family'] == 'RedHat' and grains['osmajorrelease'][0] == '7' %}
include:
- .docker
/etc/sysconfig/selinux:
file.replace:
- pattern: SELINUX=enforcing
- repl: SELINUX=permissive
@lloesche
lloesche / plexscan.bash
Last active January 10, 2022 22:14
plexscan.bash
#!/bin/bash
set -o errexit -o nounset -o pipefail
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/var/lib/plexmediaserver/Library/Application Support"
export PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export PLEX_MEDIA_SERVER_TMPDIR=/tmp
export LD_LIBRARY_PATH="$PLEX_MEDIA_SERVER_HOME"
export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"