Skip to content

Instantly share code, notes, and snippets.

@Madic-
Madic- / ansible-lint.yml
Created March 28, 2023 19:49
Ansible Molecule with systemd in docker
---
parseable: true
skip_list:
- skip_ansible_lint
- "403"
- "204"
- no-handler
- empty-string-compare
- var-naming
- name[casing]
@Madic-
Madic- / mattermost-dl.py
Created January 9, 2023 12:40 — forked from RobertKrajewski/mattermost-dl.py
This script allows to export the content (text+files) of an interactively selected Mattermost channel (public, private, group, direct message) to files. Tested on Mattermost 5.27 using Python 3.7
import os
import sqlite3
from datetime import datetime, date
from typing import Tuple, Dict, List
import getpass
from mattermostdriver import Driver
import pathlib
import json
@Madic-
Madic- / config.json
Created September 6, 2019 09:56
Alerta with traefik
{"endpoint": "http://172.18.10.60/alerta/api"}
#!/usr/bin/env bash
# Requires the following log format in nginx:
# log_format tls_log '$ssl_protocol $ssl_cipher $http_host $request';
LOG=/var/log/nginx/tls.log
echo -e "TLS Protocol Usage"
awk '{print $1}' "$LOG" | sort | uniq -c | sort -rn
echo -e "\nHTTP Protocol Usage"
awk '{print $6}' "$LOG" | sort | uniq -c | sort -rn