Skip to content

Instantly share code, notes, and snippets.

View LenzGr's full-sized avatar
🏠
Working from home

Lenz Grimmer LenzGr

🏠
Working from home
View GitHub Profile
@grugq
grugq / gist:03167bed45e774551155
Last active March 13, 2024 21:40
operational pgp - draft

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.

import os
import pprint
import fnmatch
import time
import subprocess
def find_services_needing_restart():
services = {}
pids = [ f for f in os.listdir('/proc') if f.isdigit() and os.path.isdir(os.path.join('/proc', f)) ]