Skip to content

Instantly share code, notes, and snippets.

View erral's full-sized avatar

Mikel Larreategi erral

View GitHub Profile
@erral
erral / Mailhog Bash Script (systemd)
Last active January 16, 2023 07:44 — forked from eliasby/Mailhog Bash Script (systemd)
Mailhog setup with systemd. Copy and paste this to a terminal in your computer. It will start a MailHog server listening on port 25 and a web based interface listening on port 8025
#!/usr/bin/env bash
echo ">>> Installing Mailhog"
# Download binary from github
sudo wget --quiet -O /usr/local/bin/mailhog https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64
# Make it executable
sudo chmod +x /usr/local/bin/mailhog
@erral
erral / tg.py
Last active July 6, 2021 21:56 — forked from juananpe/tg.py
Telegram notifier
# Twutter: https://twitter.com/juanan/status/1363860121676353537
# pip install python-telegram-bot
# Haria desagertzen bada ere, hemen azalpena:
# 1) Si no lo has creado aún, crea tu bot usando @BotFather en Telegram y copia tu APITOKEN
# 2) Obtén un webhook de usar y tirar aquí: https://webhook.site Te asignará una URL aleatoria, guárdala
# 3) Asigna el webhook a tu bot (la URL de http://webhook.site) https://api.telegram.org/botAPITOKEN/setWebhook?url=https://webhook.site...
# 4) Copia este mini script python a tu home directory https://gist.github.com/juananpe/edee47d41ed16c0a00eb820e0135bed3