Skip to content

Instantly share code, notes, and snippets.

@coderanger
coderanger / README.md
Last active August 18, 2023 18:33
How to patch Ubuntu for Heartbleed

How to patch Ubuntu for Heartbleed

  1. sudo apt-get update
  2. sudo apt-get install -y libssl1.0.0 openssl
  3. openssl version -a and confirm the "built on" date is >= 2014-04-07
  4. sudo lsof -n | grep ssl | grep DEL and restart all listed services.

Repeat #4 until no results are returned.

id alias url
790669100971515 pegida https://www.facebook.com/pegidaevdresden
507642806040134 siegfried-daebritz https://www.facebook.com/pegida.daebritz
636833049762948 klotzsche-sagt-nein https://www.facebook.com/DRESDEN-Klotzsche-sagt-NEIN-zum-Heim-636833049762948/
1561506014089157 heimatschutz-meissen https://www.facebook.com/Ini.Heimatschutz/
594316897372117 orakel-debakel https://www.facebook.com/OrakelDebakel
880728778665642 widerstand-dresden https://www.facebook.com/Widerstand-Dresden-880728778665642/
603436016461261 nein-zu-johannstadt https://www.facebook.com/NEIN-zur-ZeltstadtContainerdorf-in-Johannstadt-603436016461261/
1701421860086089 freie-kameradschaft-dresden https://www.facebook.com/Freie-Kameradschaft-Dresden-1701421860086089/
1691946287705666 freie-aktivisten-dresden https://www.facebook.com/FreieAktivistenDresden/
@geerlingguy
geerlingguy / ansible-role-test.sh
Last active December 14, 2024 17:13
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - role_dir: the directory where the role exists (default = $PWD)
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)