Skip to content

Instantly share code, notes, and snippets.

@thyn
thyn / resticheat.md
Created October 23, 2021 18:19 — forked from perfecto25/resticheat.md
Restic cheatsheet

Restic backup application - commands cheatsheet

Installation & config

  1. add Retic repo
  2. yum install restic

add a Restic credential file to root

vim /root/.restic
@thyn
thyn / Haprox2.0 standalone
Last active July 25, 2022 22:15 — forked from ryzy/a.sh
Compile OpenSSL 1.0.2 and HAProxy from the source on CentOS 7
# Compile and install HAProxy
rm -rf /tmp/haproxy-current
git clone http://git.haproxy.org/git/haproxy-2.0.git /tmp/haproxy-current
cd /tmp/haproxy-current
make \
TARGET=linux-glibc USE_LINUX_TPROXY=1 USE_ZLIB=1 USE_REGPARM=1 USE_PCRE=1 USE_PCRE_JIT=1 \
USE_OPENSSL=1 SSL_INC=/usr/include SSL_LIB=/usr/lib ADDLIB=-lpthread USE_SYSTEMD=1
make install
# cp /tmp/haproxy-current/examples/haproxy.init /etc/init.d/haproxy