Skip to content

Instantly share code, notes, and snippets.

View maborak's full-sized avatar
:octocat:
Benchmarking my internal AI

Wilmer A. maborak

:octocat:
Benchmarking my internal AI
View GitHub Profile
@maborak
maborak / tmux-cheats.md
Created April 6, 2018 22:31 — forked from Starefossen/tmux-cheats.md
My personal tmux cheat sheet for working with sessions, windows, and panes. `NB` I have remapped the command prefix to `ctrl` + `a`.

Sessions

New Session

  • tmux new [-s name] [cmd] (:new) - new session

Switch Session

  • tmux ls (:ls) - list sessions
  • tmux switch [-t name] (:switch) - switches to an existing session
#!/bin/bash
set -e
trap "rm -rf /var/tmp/pmtavmsetup*; exit" INT TERM EXIT
error_exit()
{
echo "[ERROR]$1" 1>&2
exit 1
@maborak
maborak / Step 1: Compile Zabbix 5.4 in Ubuntu 21.10.md
Last active November 22, 2021 17:30
Compile Zabbix 5.4 in Ubuntu 21.10

Install required packages

  1. apt-get update
  2. apt-get install git libpcre2-8-0 wget build-essential automake pkg-config autoconf autogen vim libmysqlclient-dev libxml2-dev libsnmp-dev libssh2-1-dev libopenipmi-dev libevent-dev libcurl4-openssl-dev libpcre3-dev unixodbc-dev golang-go openjdk-17-jdk libldap2-dev libgnutls28-dev libmodbus-dev libmysqlclient-dev net-tools

Compile Zabbix from source

  1. wget https://cdn.zabbix.com/zabbix/sources/stable/5.4/zabbix-5.4.7.tar.gz
  2. tar xvfz zabbix-5.4.7.tar.gz
  3. cd zabbix-5.4.7