This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then | |
echo "Please run as root" | |
exit | |
fi | |
# From Saltstack documentation https://docs.saltstack.com/en/latest/topics/tutorials/quickstart.html | |
cd /tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
A script to list currently published GitLab Pages projects | |
(to be run by admin on GitLab server) | |
""" | |
import os | |
from pathlib import Path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Report security updates and reboot required using saltstack | |
""" | |
import argparse | |
from collections import OrderedDict | |
from email.mime.text import MIMEText | |
import smtplib | |
import socket |