Skip to content

Instantly share code, notes, and snippets.

@vpnwall-services
vpnwall-services / python3_12_debian_bullseye_101.md
Created June 24, 2024 15:51
PYTHON 3.12 Debian Bullseye 101
find . ! -name 'file.txt' -type f -exec rm -f {} +

Disabled phony services

sudo systemctl --global mask tracker-miner-fs-3.service
sudo systemctl --global mask tracker-xdg-portal-3.service
sudo apt remove tracker tracker-extract tracker-miner-fs
@vpnwall-services
vpnwall-services / FILESHARE-101.md
Created February 20, 2024 09:27
[FILESHARE 101] Fileshare 101 #linux #debian #nfs #rpcbind #shareing #file #share

FILESHARE 101

  • Install packages
apt install nfs-common rpcbind nfs-kernel-server -y
  • Add share in /etc/exports
@vpnwall-services
vpnwall-services / TELEGRAM-BOT-101.md
Last active April 21, 2024 21:28
[Telegram Bot 101] Telegram Bot 101 #bash #telegram #bot #101
  • Install telegram on desktop
  • Message @botfather and then /newbot (give name, and other things)
  • Create new channel and add the bot
  • Get channel ID
curl -L https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getUpdates
  • Add to .bashrc
@vpnwall-services
vpnwall-services / FILEBEAT-101.md
Last active January 24, 2024 14:06
[FILEBEAT 101] Filebeat 101 #filebeat #linux #101
@vpnwall-services
vpnwall-services / LOGSTASH-101.md
Last active April 21, 2024 21:29
[LOGSTASH 101] Logstash 101 #logstash #linux #debian

LOGSTASH 101

  • Debug pipeline:
input {
  pipeline {
    address => apache2
 }
@vpnwall-services
vpnwall-services / INFLUXDB_101.md
Created October 13, 2023 08:27
[INFLUXDB 101] InfluxDB 101 #influxdb #101 #linux #metrics #tsdb

INFLUXDB 101

  • Delete data influx delete --bucket data --start '1970-01-01T00:00:00Z' --stop '2023-10-01T00:00:00Z'
@vpnwall-services
vpnwall-services / Centreon-Remote-Poller.md
Created September 21, 2023 16:03
[Centreon Remote Poller] Centreon Remote Poller #centreon #remote #poller #linux

docs.centreon.com À partir des paquets | Centreon Documentation 6-7 minutes

Centreon fournit des paquets RPM et DEB pour ses produits au travers de la solution Centreon Open Sources disponible gratuitement sur notre dépôt.

Les paquets peuvent être installés sur Alma/RHEL/Oracle Linux 8 et 9 ou Debian 11.

L'ensemble de la procédure d'installation doit être faite en tant qu'utilisateur privilégié.

@vpnwall-services
vpnwall-services / SWAP-101.md
Created September 12, 2023 08:24
[SWAP 101] Swap 101 #linux #swap #101

SWAP 101

  • Allocate swap sudo fallocate -l 1G /swapfile

  • Alternate allocation sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576

  • Perms