Skip to main content
Home
  • Home
  • Gateway
  • Print room manager
  • Glossary
  • Contact
  • Login

Search form

Popular tags

ansible apache apt apt-get archlinux ata attachment backup bash bind bluetooth bluetoothctl bond book boot bucket cd key centos certificate cmd command connection convert cron database dd ddos debian debug delete dependencies df disaster disks disks usage dkim dmesg dmi dmidecode dns DO docker dovecot dpkg drupal drush elasticsearch error es fail2ban file firewall folder format forwarding fsck ftp git git commit gitlab grep grub hciconfig hdd hostname html hw info i/o Icinga ifenslave image image resize imapcopy instalation install ip ipcalc ipsec iptables IP translation IPv6 iso journalctl kafka keyboard keygen kvm LDAP lets encrypt linux list locales logs LVM mail Megacli mount mysql Netmask netstat network network tools new window nextcloud NFS nginx occ oom killer open ports optimalization owncloud package page allocation failure parted partition password recovery patch pdf pfsense ping png ports postfix postgresql pvs qemu raid RDNS rdp recovery remote repair repmgr reset root password rsa rsa_key rsync running process s3 security sed show IO size ssh ssl stats status check swarm symlink systemctl systemd system monitoring tag tar.gz test ubuntu update upgrade vim virsh virt virtual vpn wifi windows wordpress X11

Apt recreate files

Reinstall package and recreate files
apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall PACKAGE_NAME

  • Read more about Apt recreate files

Ansible exclude hosts

ansible-playbook --limit '!hoost1:!host2' yourPlaybook.yml

  • Read more about Ansible exclude hosts

Elasticsearch cheat sheet

Move shards from one node to another
curl -XPOST 'http://localhost:9200/_cluster/reroute' -d '{"commands" : [{"move" :{"index" : "indexname", "shard" : 1,"from_node" : "nodename", "to_node" : "nodename"}}]}'

  • Read more about Elasticsearch cheat sheet

Get docker container ip addresses`

Get docker ip addresses
docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq)

  • Read more about Get docker container ip addresses`

Apt package download only

In order to download only package via apt, with a particular version

apt-get install --download-only metricbeat=7.6.1

.deb package you'll find at
ls -l /var/cache/apt/archives

  • Read more about Apt package download only

Lets encrypt certbot delete

Show cert names
certbot certificates

Delete standalone certificate with:
certbot delete --cert-name CERT_NAME

  • Read more about Lets encrypt certbot delete

Journalctl log retention

In order to clean up journalctl logs use

Set time retention
journalctl --vacuum-time=2d

Set size retention
journalctl --vacuum-size=500M

  • Read more about Journalctl log retention

DDOS mitigation nginx

Set rate limmiting

in nginx.conf http block set:
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s;

  • Read more about DDOS mitigation nginx

Docker swarm labels

Show docker swarm nodes labels
docker node ls -q | xargs docker node inspect -f '{{ .ID }} [{{ .Description.Hostname }}]: {{ .Spec.Labels }}'

Check node id
docker node ls

  • Read more about Docker swarm labels
  • «
  • ‹
  • 1
  • 2
  • 3
  • …
  • ›
  • »

Month archive

  • January 2021 (1)
  • December 2020 (1)
  • November 2020 (2)
  • October 2020 (4)
  • September 2020 (1)

Responsive image

Last 5 inputs

Elasticsearch allocation settings
ipsec
Bash set builtin -> bash debug
Tools
10 Pillars of IT security