Skip to content

Instantly share code, notes, and snippets.

@aursu
aursu / api-error.md
Created February 21, 2022 22:05
ACPI Error: AE_NOT_EXIST, Evaluating _PMM (20190816/power_meter-325)

The same problem on an HP server and there is a smarter solution found here: https://www.novell.com/support/kb/doc.php?id=7010449

Instead of disabling sensors in netdata altogether, you can just disable the acpi_power_meter kernel module, which doesn't work anyway on affected HP servers due to a BIOS bug. This way netdata can still get the temperature readings.

This is how you can disable the module immediately:

sudo modprobe -r acpi_power_meter

And this is how you make it permanent:

@aursu
aursu / proxy.conf.md
Last active January 22, 2022 15:10
HP iLO (Integrated Lights-Out 3) Firmware Version 1.94 access through Nginx

iLO console IP address is 10.0.110.25.

Proxy server address is ilo.proxy.domain.com

stream {
  server {
    listen 17990;
    proxy_pass 10.0.110.25:17990;
  }
@aursu
aursu / gist:2ace2f1450f30df68146a1ef3a2a073a
Last active June 10, 2024 13:05
Install OpenResty on Raspberry Pi 4 managed by Ubuntu 20.10 (Groovy Gorilla)
### OpenResty installation
#### RPM package manager installation
apt install rpm
#### Packages installation
rpm -ivh https://openresty.org/package/centos/7/aarch64/openresty-zlib-1.2.11-3.el7.aarch64.rpm
rpm -ivh https://openresty.org/package/centos/7/aarch64/openresty-openssl111-1.1.1h-1.el7.aarch64.rpm
@aursu
aursu / openvpn-setup.md
Created May 27, 2020 23:59
How To Set Up an OpenVPN Server on Ubuntu 18.04
@aursu
aursu / openvpn-bug-ubuntu.md
Created May 27, 2020 23:49
ovpn-server[]: openvpn_execve: unable to fork: Resource temporarily unavailable (errno=11)
@aursu
aursu / mon.sh
Last active September 27, 2019 22:26
Linux process monitoring with bash (project fail)
#!/bin/bash
QSIZE=5
MINLIFE=20
start=$(/usr/bin/date +%s)
btime=$(/usr/bin/cat /proc/stat | /usr/bin/awk '/btime/ {print $2}')
while /usr/bin/sleep 5; do
queues=$(/usr/sbin/rabbitmqctl list_queues | /usr/bin/grep "create-user-")
@aursu
aursu / gitlab-webhook-to-jenkins.md
Last active August 1, 2019 16:49
java.lang.IllegalStateException: No credentials found for credentialsId

The issue

The issue apperes when send Test WebHook out from Gitlab to Jenkins project URL (Build trigger URL)

Console logs have next output:

Aug 01, 2019 4:20:50 PM org.eclipse.jetty.server.handler.ContextHandler$Context log
WARNING: Error while serving https://ci.crylan.com/project/netops
java.lang.reflect.InvocationTargetException
@aursu
aursu / gitlab-error-encryption.md
Last active September 21, 2024 23:54
GitLab error OpenSSL::Cipher::CipherError () in app/controllers/admin/application_settings_controller.rb:40:in `update'

The issue

It happened after secrets file was lost during GitLab upgrade.

The case described in documentation When the secrets file is lost

But not completely clear.

From log file /var/log/gitlab/gitlab-rails/production.log:

@aursu
aursu / modem.py
Last active June 7, 2024 19:27
ModemManager interface via Python 3 (Dbus, Modems, SMS)
#!/usr/bin/python3
# script created for reading SMS messages from 3G modem connected to PC
# 1) it looks for modem
# 2) reads all SMS messages from modem
# 3) prints all found SMS messages to stdout only if total messages count
# greater than SMS_STORE_COUNT (default is 3)
# 4) save all but SMS_STORE_COUNT messages to txt files and
# delete them from modem