Skip to content

Instantly share code, notes, and snippets.

@DeveloperMos
DeveloperMos / Readme.md
Created June 17, 2024 09:09 — forked from paskal/Readme.md
How to set up the Percona Monitoring and Management (PMM) v2 with docker-compose

Set up PMM Server v2

Let's start by creating entry for server in docker-compose.yaml:

version: '2'
# version 2 of docker-compose is not "old" version, it's the actual version,
# see below for explanation:
# https://stackoverflow.com/a/53636006/961092
services:
@DeveloperMos
DeveloperMos / install-docker.md
Created April 19, 2024 12:35 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@DeveloperMos
DeveloperMos / README.md
Created April 19, 2024 12:01 — forked from abelcallejo/README.md
Create bootable Linux USB using Mac

Creating bootable Linux USB using Mac

mac

CentOS, Ubuntu, Slackware, etc. Whatever Linux-based OS it is, you can create a bootable USB for it by using a Mac.

1. Prepare the .iso file

Download it, copy it, whatever it takes to prepare that Linux-based OS .iso file

2. Convert the .iso file into a .img.dmg

@DeveloperMos
DeveloperMos / rules.yaml
Created March 28, 2024 11:52 — forked from juan-rosero/rules.yaml
Awesome Prometheus Alerts
groups:
- name: Prometheus self-monitoring
rules:
# A Prometheus job has disappeared
- alert: PrometheusJobMissing
expr: absent(up{job="my-job"})
for: 5m
labels:
severity: warning
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
#!/bin/bash
# create mongodb_exporter.service
cat > /etc/systemd/system/mongodb_exporter.service <<END
[Unit]
Description=Prometheus MongoDB Exporter
Documentation=https://github.com/percona/mongodb_exporter
After=network.target
[Service]
@DeveloperMos
DeveloperMos / readme.md
Last active August 11, 2022 21:16
ASUS LAPTOP WI FI - Ubuntu 18-20-22 brocken bug fixing

Integrated Controller name RTL8821CE

802.11ac/abgn PCIe WLAN with Bluetooth 5.0 Single-Chip Controller

Disclaimer

TIt's targeting Linux > 4.14 kernel

check your kernel version

@DeveloperMos
DeveloperMos / list.text
Created March 23, 2022 13:58
role based emails
abuse@
accounting@
accounts@
adm@
admin@
administration@
administrator@
admissions@
ads@
all@
@DeveloperMos
DeveloperMos / postgres-kernel.md
Created March 7, 2022 11:44
postgres kernel resources

Get postgres pid number

$ pidof postgres

4170 . . . . etc.

start PostgreSQL without huge pages enabled and check the postmaster's VmPeak value

$ grep ^VmPeak /proc/4170/status

@DeveloperMos
DeveloperMos / install_or_update.sh
Created February 21, 2022 21:38
Ultimate Nginx bad bots and referrers blocker.
#!bin/bash
# Nothing superfluous just the necessary files
# Taken From:
# https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/blob/master/MANUAL-CONFIGURATION.md
# Add in your domain config and reload nginx
#
# server {