Skip to content

Instantly share code, notes, and snippets.

View danniranderis's full-sized avatar

Danni Randeris danniranderis

View GitHub Profile
@alyleite
alyleite / wsl.md
Last active May 30, 2024 06:07
Failed to connect to bus: Host is down - WSL 2

» sudo systemctl daemon-reload

System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down

==============================================

Edit*

  1. Open /etc/wsl.conf with any editor:
@poizan42
poizan42 / get-undelivered-list.py
Created May 27, 2014 09:15
Script which generates a json formatted list of email adresses and reasons from bounce mails loaded from an imap account
#!/usr/bin/env python
import imaplib
import email
import json
import re
from getpass import getpass
label = "undelivered-mails"
username = "user@gmail.com"
addrfilename = 'failed-addresses.txt'