ssmtp skript


#!/bin/bash

# Set the email address to use for sending emails
EMAIL_ADDRESS="user@example.com"

# Set the list of passwords to try when sending emails
PASSWORDS=(password1 password2 password3)

# Set the SMTP server and port to use for sending emails
SMTP_SERVER="smtp.example.com"
SMTP_PORT=587

# Set the recipients of the email
RECIPIENTS="recipient1@example.com recipient2@example.com"

# Set the subject and message body of the email
SUBJECT="Example Email"
MESSAGE="This is an example email sent using ssmtp"

# Loop through the list of passwords, trying each one until the email is successfully sent
for password in "${PASSWORDS[@]}"; do
# Set the password for the current iteration
echo "AuthUser=$EMAIL_ADDRESS" > ~/.ssmtp/ssmtp.conf
echo "AuthPass=$password" >> ~/.ssmtp/ssmtp.conf
echo "mailhub=$SMTP_SERVER:$SMTP_PORT" >> ~/.ssmtp/ssmtp.conf
echo "UseSTARTTLS=YES" >> ~/.ssmtp/ssmtp.conf

# Send the email and store the output in a variable
EMAIL_OUTPUT=$(echo -e "To: $RECIPIENTS\nSubject: $SUBJECT\n\n$MESSAGE" | ssmtp $RECIPIENTS)

# Check if the email was successfully sent
if [[ $EMAIL_OUTPUT == *"250 2.0.0 OK"* ]]; then
# Email was successfully sent
break
else
# Email was not successfully sent, try the next password
continue
fi
done

# Check if the email was successfully sent with any of the passwords
if [[ $EMAIL_OUTPUT != *"250 2.0.0 OK"* ]]; then
# Email was not successfully sent with any of the passwords
echo "Error: Failed to send email with any of the provided passwords"
else
# Email was successfully sent
echo "Success: Email was sent successfully"
fi

Veröffentlicht unter bash, Linux | Schreib einen Kommentar

Browser addons

ct.de/ybbb

Mailvelope

Firefox, Chrome

Besonders browsen

CrxMouse Gesture

Mausgesten für Chrome

Gesturefy

Mausgesten für Firefox

Tabliss

Neuer-Tab-Seite (Chrome, Firefox)

OneTab

Tabs schließen, Ressourcen schonen (Chrome, Firefox)

The Great Suspender

Schließt Tabs automatisch, spart Ressourcen (Chrome)

1PasswordX (Chrome)

1PasswordX (Firefox)

KeePassXC Browser (Firefox)

KeePassXC Browser (Chrome)

Passafari (Safari)

Save to Pocket (Chrome)

Pocket für Safari

Raindrop

Bookmark Manager (Chrome, Firefox, Safari)

Link zu Textfragment (Chrome)

Link to text fragment (Firefox)

Linkificator (Firefox)

GoFullPage

Screenshots kompletter Seiten machen (Chrome)

Chrome Remote Desktop

Treffender texten

Google Translate (Chrome)

To Google Translate (Firefox)

LeechBlock NG (Firefox)

LeechBlock NG (Chrome)

Duden Mentor Textprüfung (Chrome)

Duden Mentor Textprüfung (Firefox)

LanguageTool

Rechtschreib- und Grammatikprüfung (Firefox, Chrome)

HighlightAll (Firefox)

Highlight All Occurences (Chrome)

Form History Control (Firefox)

Form History Control (II)

Shoppen, sparen, spenden

Ciuvo (Firefox)

Ciuvo (Chrome)

The Camelizer (Chrome)

The Camelizer (Firefox)

Smile Always (Chrome)

AlwaysSmile (Firefox)

SmileAllDay (Safari)

Websites weiterbringen

Enhancer for YouTube

Chrome, Firefox

Wikiwand

Chrome, Firefox

Reddit Enhancement Suite

Chrome, Firefox

Social Fixer

Firefox, User Script

GreaseMonkey

Firefox

Tampermonkey

u.a. Chrome, Safari

Angriffe abwehren

uBlock Origin

Chrome, Firefox

Decentraleyes (Firefox)

Decentraleyes (Chrome)

First Party Isolation (Firefox)

NoScript

Chrome, Firefox

Smart Referer (Firefox)

Neat URL (Firefox)

Neat URL (Chrome)

Skip Redirect (Firefox)

Skip Redirect (Chrome)

uMatrix

Chrome, Firefox

Referer Privacy

Chrome

AdBlock Plus

Chrome, Firefox, Safari

I don’t care about cookies

HTTPS everywhere (Chrome)

HTTPS everywhere (Firefox)

News navigieren

Livemarks

Firefox

Get RSS Feed URL

Chrome

Emsig entwickeln

Change Geolocation (Location Guard) – Chrome

Change Geolocation (Location Guard) – Firefox

User agent switcher (Chrome)

User agent switcher (Firefox)

RESTED (Firefox)

RESTED (Chrome)

React Developer Tools (Chrome)

Veröffentlicht unter Windows | Schreib einen Kommentar

stretch to buster

sudo apt-get update && sudo apt-get upgrade -y
$ dpkg -C
$ apt-mark showhold
$ sudo sed -i ’s/stretch/buster/g‘ /etc/apt/sources.list
$ sudo sed -i ’s/stretch/buster/g‘ /etc/apt/sources.list.d/raspi.list
$ grep -lnr stretch /etc/apt
$ sudo apt-get remove apt-listchanges
$ sudo apt-get update && sudo apt-get upgrade -y
$ sudo apt-get autoremove -y && sudo apt-get autoclean
cat /etc/os-release

$ sudo rpi-update

sudo apt-get install python3.6
ln -s /usr/bin/python /usr/local/bin/python3.6

https://www.home-assistant.io/docs/installation/raspberry-pi/
https://www.home-assistant.io/docs/autostart/systemd/

Veröffentlicht unter Raspberry Pi, SmartHome | Schreib einen Kommentar

Home Assistant installieren

How to Install Home Assistant Supervised – OFFICIAL WAY

https://github.com/home-assistant/hassio-installer

[bash]
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | bash -s
[/bash]

Hassbian MQTT-Installieren:

[bash]
sudo hassbian-config install mosquitto

su 2 hassbian

vi configuration.yaml
mqtt:
broker: IP_RPi
port: 1883
username: user_name
password: password
[/bash]

Tasmato in HomeAssistant

Google Text to Speach

themeforest-csnwHaZ6-tempus-photography-wordpress-theme-file-and-license20191202-32451-1uhdbmm

Veröffentlicht unter SmartHome | Schreib einen Kommentar

FHEM deinstallieren

sudo dpkg --remove --force-remove-reinstreq fhem
sudo apt-get update -f
sudo apt-get purge fhem
sudo apt-get autoremove
Veröffentlicht unter SmartHome | Schreib einen Kommentar

Optima S Duschabtrennung

https://www.duschwelten.de/ersatzteile/duschdichtungen/?p=1

 

https://www.computinghistory.org.uk/det/40493/Home-Computer-Trump-Cards/

http://rockybergen.com/papercraft

Veröffentlicht unter Allgemein, Hardware | Schreib einen Kommentar